@huaweicloud/huaweicloud-sdk-cdn 3.1.77 → 3.1.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. package/package.json +2 -2
  2. package/v2/CdnClient.d.ts +356 -0
  3. package/v2/CdnClient.d.ts.map +1 -1
  4. package/v2/CdnClient.js +723 -0
  5. package/v2/CdnClient.js.map +1 -1
  6. package/v2/model/BatchDeleteTagsRequest.d.ts +7 -0
  7. package/v2/model/BatchDeleteTagsRequest.d.ts.map +1 -0
  8. package/v2/model/BatchDeleteTagsRequest.js +13 -0
  9. package/v2/model/BatchDeleteTagsRequest.js.map +1 -0
  10. package/v2/model/BatchDeleteTagsResponse.d.ts +5 -0
  11. package/v2/model/BatchDeleteTagsResponse.d.ts.map +1 -0
  12. package/v2/model/BatchDeleteTagsResponse.js +11 -0
  13. package/v2/model/BatchDeleteTagsResponse.js.map +1 -0
  14. package/v2/model/CdnIps.d.ts +14 -0
  15. package/v2/model/CdnIps.d.ts.map +1 -0
  16. package/v2/model/CdnIps.js +29 -0
  17. package/v2/model/CdnIps.js.map +1 -0
  18. package/v2/model/CreateDomainRequest.d.ts +7 -0
  19. package/v2/model/CreateDomainRequest.d.ts.map +1 -0
  20. package/v2/model/CreateDomainRequest.js +13 -0
  21. package/v2/model/CreateDomainRequest.js.map +1 -0
  22. package/v2/model/CreateDomainRequestBody.d.ts +7 -0
  23. package/v2/model/CreateDomainRequestBody.d.ts.map +1 -0
  24. package/v2/model/CreateDomainRequestBody.js +14 -0
  25. package/v2/model/CreateDomainRequestBody.js.map +1 -0
  26. package/v2/model/CreateDomainResponse.d.ts +8 -0
  27. package/v2/model/CreateDomainResponse.d.ts.map +1 -0
  28. package/v2/model/CreateDomainResponse.js +15 -0
  29. package/v2/model/CreateDomainResponse.js.map +1 -0
  30. package/v2/model/CreateDomainResponseBodyContent.d.ts +68 -0
  31. package/v2/model/CreateDomainResponseBodyContent.d.ts.map +1 -0
  32. package/v2/model/CreateDomainResponseBodyContent.js +159 -0
  33. package/v2/model/CreateDomainResponseBodyContent.js.map +1 -0
  34. package/v2/model/CreateTagsRequest.d.ts +7 -0
  35. package/v2/model/CreateTagsRequest.d.ts.map +1 -0
  36. package/v2/model/CreateTagsRequest.js +13 -0
  37. package/v2/model/CreateTagsRequest.js.map +1 -0
  38. package/v2/model/CreateTagsRequestBody.d.ts +11 -0
  39. package/v2/model/CreateTagsRequestBody.d.ts.map +1 -0
  40. package/v2/model/CreateTagsRequestBody.js +25 -0
  41. package/v2/model/CreateTagsRequestBody.js.map +1 -0
  42. package/v2/model/CreateTagsResponse.d.ts +5 -0
  43. package/v2/model/CreateTagsResponse.d.ts.map +1 -0
  44. package/v2/model/CreateTagsResponse.js +11 -0
  45. package/v2/model/CreateTagsResponse.js.map +1 -0
  46. package/v2/model/DeleteDomainRequest.d.ts +12 -0
  47. package/v2/model/DeleteDomainRequest.d.ts.map +1 -0
  48. package/v2/model/DeleteDomainRequest.js +30 -0
  49. package/v2/model/DeleteDomainRequest.js.map +1 -0
  50. package/v2/model/DeleteDomainResponse.d.ts +8 -0
  51. package/v2/model/DeleteDomainResponse.d.ts.map +1 -0
  52. package/v2/model/DeleteDomainResponse.js +15 -0
  53. package/v2/model/DeleteDomainResponse.js.map +1 -0
  54. package/v2/model/DeleteTagsRequestBody.d.ts +10 -0
  55. package/v2/model/DeleteTagsRequestBody.d.ts.map +1 -0
  56. package/v2/model/DeleteTagsRequestBody.js +25 -0
  57. package/v2/model/DeleteTagsRequestBody.js.map +1 -0
  58. package/v2/model/DisableDomainRequest.d.ts +12 -0
  59. package/v2/model/DisableDomainRequest.d.ts.map +1 -0
  60. package/v2/model/DisableDomainRequest.js +30 -0
  61. package/v2/model/DisableDomainRequest.js.map +1 -0
  62. package/v2/model/DisableDomainResponse.d.ts +8 -0
  63. package/v2/model/DisableDomainResponse.d.ts.map +1 -0
  64. package/v2/model/DisableDomainResponse.js +15 -0
  65. package/v2/model/DisableDomainResponse.js.map +1 -0
  66. package/v2/model/DomainBody.d.ts +42 -0
  67. package/v2/model/DomainBody.d.ts.map +1 -0
  68. package/v2/model/DomainBody.js +78 -0
  69. package/v2/model/DomainBody.js.map +1 -0
  70. package/v2/model/DomainsDetail.d.ts +52 -0
  71. package/v2/model/DomainsDetail.d.ts.map +1 -0
  72. package/v2/model/DomainsDetail.js +109 -0
  73. package/v2/model/DomainsDetail.js.map +1 -0
  74. package/v2/model/DomainsWithPort.d.ts +44 -7
  75. package/v2/model/DomainsWithPort.d.ts.map +1 -1
  76. package/v2/model/DomainsWithPort.js +96 -6
  77. package/v2/model/DomainsWithPort.js.map +1 -1
  78. package/v2/model/EnableDomainRequest.d.ts +12 -0
  79. package/v2/model/EnableDomainRequest.d.ts.map +1 -0
  80. package/v2/model/EnableDomainRequest.js +30 -0
  81. package/v2/model/EnableDomainRequest.js.map +1 -0
  82. package/v2/model/EnableDomainResponse.d.ts +8 -0
  83. package/v2/model/EnableDomainResponse.d.ts.map +1 -0
  84. package/v2/model/EnableDomainResponse.js +15 -0
  85. package/v2/model/EnableDomainResponse.js.map +1 -0
  86. package/v2/model/ForceRedirect.d.ts +12 -0
  87. package/v2/model/ForceRedirect.d.ts.map +1 -0
  88. package/v2/model/ForceRedirect.js +30 -0
  89. package/v2/model/ForceRedirect.js.map +1 -0
  90. package/v2/model/HttpsDetail.d.ts +45 -0
  91. package/v2/model/HttpsDetail.d.ts.map +1 -0
  92. package/v2/model/HttpsDetail.js +107 -0
  93. package/v2/model/HttpsDetail.js.map +1 -0
  94. package/v2/model/ShowCertificatesHttpsInfoRequest.d.ts +24 -0
  95. package/v2/model/ShowCertificatesHttpsInfoRequest.d.ts.map +1 -0
  96. package/v2/model/ShowCertificatesHttpsInfoRequest.js +59 -0
  97. package/v2/model/ShowCertificatesHttpsInfoRequest.js.map +1 -0
  98. package/v2/model/ShowCertificatesHttpsInfoResponse.d.ts +10 -0
  99. package/v2/model/ShowCertificatesHttpsInfoResponse.d.ts.map +1 -0
  100. package/v2/model/ShowCertificatesHttpsInfoResponse.js +19 -0
  101. package/v2/model/ShowCertificatesHttpsInfoResponse.js.map +1 -0
  102. package/v2/model/ShowDomainDetailByNameResponse.d.ts +3 -3
  103. package/v2/model/ShowDomainDetailByNameResponse.d.ts.map +1 -1
  104. package/v2/model/ShowDomainDetailByNameResponse.js.map +1 -1
  105. package/v2/model/ShowIpInfoRequest.d.ts +10 -0
  106. package/v2/model/ShowIpInfoRequest.d.ts.map +1 -0
  107. package/v2/model/ShowIpInfoRequest.js +24 -0
  108. package/v2/model/ShowIpInfoRequest.js.map +1 -0
  109. package/v2/model/ShowIpInfoResponse.d.ts +10 -0
  110. package/v2/model/ShowIpInfoResponse.d.ts.map +1 -0
  111. package/v2/model/ShowIpInfoResponse.js +21 -0
  112. package/v2/model/ShowIpInfoResponse.js.map +1 -0
  113. package/v2/model/ShowTagsRequest.d.ts +8 -0
  114. package/v2/model/ShowTagsRequest.d.ts.map +1 -0
  115. package/v2/model/ShowTagsRequest.js +20 -0
  116. package/v2/model/ShowTagsRequest.js.map +1 -0
  117. package/v2/model/ShowTagsResponse.d.ts +8 -0
  118. package/v2/model/ShowTagsResponse.d.ts.map +1 -0
  119. package/v2/model/ShowTagsResponse.js +15 -0
  120. package/v2/model/ShowTagsResponse.js.map +1 -0
  121. package/v2/model/ShowVerifyDomainOwnerInfoRequest.d.ts +8 -0
  122. package/v2/model/ShowVerifyDomainOwnerInfoRequest.d.ts.map +1 -0
  123. package/v2/model/ShowVerifyDomainOwnerInfoRequest.js +20 -0
  124. package/v2/model/ShowVerifyDomainOwnerInfoRequest.js.map +1 -0
  125. package/v2/model/ShowVerifyDomainOwnerInfoResponse.d.ts +33 -0
  126. package/v2/model/ShowVerifyDomainOwnerInfoResponse.d.ts.map +1 -0
  127. package/v2/model/ShowVerifyDomainOwnerInfoResponse.js +81 -0
  128. package/v2/model/ShowVerifyDomainOwnerInfoResponse.js.map +1 -0
  129. package/v2/model/SourceWithPort.d.ts +41 -0
  130. package/v2/model/SourceWithPort.d.ts.map +1 -0
  131. package/v2/model/SourceWithPort.js +92 -0
  132. package/v2/model/SourceWithPort.js.map +1 -0
  133. package/v2/model/TagMap.d.ts +8 -0
  134. package/v2/model/TagMap.d.ts.map +1 -0
  135. package/v2/model/TagMap.js +18 -0
  136. package/v2/model/TagMap.js.map +1 -0
  137. package/v2/model/UpdateDomainMultiCertificatesRequest.d.ts +11 -0
  138. package/v2/model/UpdateDomainMultiCertificatesRequest.d.ts.map +1 -0
  139. package/v2/model/UpdateDomainMultiCertificatesRequest.js +23 -0
  140. package/v2/model/UpdateDomainMultiCertificatesRequest.js.map +1 -0
  141. package/v2/model/UpdateDomainMultiCertificatesRequestBody.d.ts +7 -0
  142. package/v2/model/UpdateDomainMultiCertificatesRequestBody.d.ts.map +1 -0
  143. package/v2/model/UpdateDomainMultiCertificatesRequestBody.js +13 -0
  144. package/v2/model/UpdateDomainMultiCertificatesRequestBody.js.map +1 -0
  145. package/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts +41 -0
  146. package/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts.map +1 -0
  147. package/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.js +99 -0
  148. package/v2/model/UpdateDomainMultiCertificatesRequestBodyContent.js.map +1 -0
  149. package/v2/model/UpdateDomainMultiCertificatesResponse.d.ts +8 -0
  150. package/v2/model/UpdateDomainMultiCertificatesResponse.d.ts.map +1 -0
  151. package/v2/model/UpdateDomainMultiCertificatesResponse.js +15 -0
  152. package/v2/model/UpdateDomainMultiCertificatesResponse.js.map +1 -0
  153. package/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts +41 -0
  154. package/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts.map +1 -0
  155. package/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.js +98 -0
  156. package/v2/model/UpdateDomainMultiCertificatesResponseBodyContent.js.map +1 -0
  157. package/v2/model/UpdatePrivateBucketAccessBody.d.ts +6 -0
  158. package/v2/model/UpdatePrivateBucketAccessBody.d.ts.map +1 -0
  159. package/v2/model/UpdatePrivateBucketAccessBody.js +13 -0
  160. package/v2/model/UpdatePrivateBucketAccessBody.js.map +1 -0
  161. package/v2/model/UpdatePrivateBucketAccessRequest.d.ts +15 -0
  162. package/v2/model/UpdatePrivateBucketAccessRequest.d.ts.map +1 -0
  163. package/v2/model/UpdatePrivateBucketAccessRequest.js +34 -0
  164. package/v2/model/UpdatePrivateBucketAccessRequest.js.map +1 -0
  165. package/v2/model/UpdatePrivateBucketAccessResponse.d.ts +7 -0
  166. package/v2/model/UpdatePrivateBucketAccessResponse.d.ts.map +1 -0
  167. package/v2/model/UpdatePrivateBucketAccessResponse.js +15 -0
  168. package/v2/model/UpdatePrivateBucketAccessResponse.js.map +1 -0
  169. package/v2/model/UrlAuth.d.ts +1 -1
  170. package/v2/model/UrlAuth.d.ts.map +1 -1
  171. package/v2/model/UrlAuth.js +1 -4
  172. package/v2/model/UrlAuth.js.map +1 -1
  173. package/v2/model/VerifyDomainOwnerRequest.d.ts +11 -0
  174. package/v2/model/VerifyDomainOwnerRequest.d.ts.map +1 -0
  175. package/v2/model/VerifyDomainOwnerRequest.js +24 -0
  176. package/v2/model/VerifyDomainOwnerRequest.js.map +1 -0
  177. package/v2/model/VerifyDomainOwnerRequestBody.d.ts +8 -0
  178. package/v2/model/VerifyDomainOwnerRequestBody.d.ts.map +1 -0
  179. package/v2/model/VerifyDomainOwnerRequestBody.js +19 -0
  180. package/v2/model/VerifyDomainOwnerRequestBody.js.map +1 -0
  181. package/v2/model/VerifyDomainOwnerResponse.d.ts +7 -0
  182. package/v2/model/VerifyDomainOwnerResponse.d.ts.map +1 -0
  183. package/v2/model/VerifyDomainOwnerResponse.js +15 -0
  184. package/v2/model/VerifyDomainOwnerResponse.js.map +1 -0
  185. package/v2/public-api.d.ts +42 -0
  186. package/v2/public-api.d.ts.map +1 -1
  187. package/v2/public-api.js +42 -0
  188. package/v2/public-api.js.map +1 -1
package/v2/CdnClient.js CHANGED
@@ -3,14 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RequiredError = exports.ParamCreater = exports.CdnClient = void 0;
4
4
  const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
5
5
  const BatchCopyDomainRequest_1 = require("./model/BatchCopyDomainRequest");
6
+ const BatchDeleteTagsRequest_1 = require("./model/BatchDeleteTagsRequest");
7
+ const CreateDomainRequest_1 = require("./model/CreateDomainRequest");
6
8
  const CreatePreheatingTasksRequest_1 = require("./model/CreatePreheatingTasksRequest");
7
9
  const CreateRefreshTasksRequest_1 = require("./model/CreateRefreshTasksRequest");
10
+ const CreateTagsRequest_1 = require("./model/CreateTagsRequest");
11
+ const DeleteDomainRequest_1 = require("./model/DeleteDomainRequest");
12
+ const DisableDomainRequest_1 = require("./model/DisableDomainRequest");
8
13
  const DownloadRegionCarrierExcelRequest_1 = require("./model/DownloadRegionCarrierExcelRequest");
9
14
  const DownloadStatisticsExcelRequest_1 = require("./model/DownloadStatisticsExcelRequest");
15
+ const EnableDomainRequest_1 = require("./model/EnableDomainRequest");
10
16
  const ListCdnDomainTopRefersRequest_1 = require("./model/ListCdnDomainTopRefersRequest");
11
17
  const ListDomainsRequest_1 = require("./model/ListDomainsRequest");
12
18
  const SetChargeModesRequest_1 = require("./model/SetChargeModesRequest");
13
19
  const ShowBandwidthCalcRequest_1 = require("./model/ShowBandwidthCalcRequest");
20
+ const ShowCertificatesHttpsInfoRequest_1 = require("./model/ShowCertificatesHttpsInfoRequest");
14
21
  const ShowChargeModesRequest_1 = require("./model/ShowChargeModesRequest");
15
22
  const ShowDomainDetailByNameRequest_1 = require("./model/ShowDomainDetailByNameRequest");
16
23
  const ShowDomainFullConfigRequest_1 = require("./model/ShowDomainFullConfigRequest");
@@ -18,11 +25,17 @@ const ShowDomainLocationStatsRequest_1 = require("./model/ShowDomainLocationStat
18
25
  const ShowDomainStatsRequest_1 = require("./model/ShowDomainStatsRequest");
19
26
  const ShowHistoryTaskDetailsRequest_1 = require("./model/ShowHistoryTaskDetailsRequest");
20
27
  const ShowHistoryTasksRequest_1 = require("./model/ShowHistoryTasksRequest");
28
+ const ShowIpInfoRequest_1 = require("./model/ShowIpInfoRequest");
21
29
  const ShowLogsRequest_1 = require("./model/ShowLogsRequest");
30
+ const ShowTagsRequest_1 = require("./model/ShowTagsRequest");
22
31
  const ShowTopDomainNamesRequest_1 = require("./model/ShowTopDomainNamesRequest");
23
32
  const ShowTopUrlRequest_1 = require("./model/ShowTopUrlRequest");
24
33
  const ShowUrlTaskInfoRequest_1 = require("./model/ShowUrlTaskInfoRequest");
34
+ const ShowVerifyDomainOwnerInfoRequest_1 = require("./model/ShowVerifyDomainOwnerInfoRequest");
25
35
  const UpdateDomainFullConfigRequest_1 = require("./model/UpdateDomainFullConfigRequest");
36
+ const UpdateDomainMultiCertificatesRequest_1 = require("./model/UpdateDomainMultiCertificatesRequest");
37
+ const UpdatePrivateBucketAccessRequest_1 = require("./model/UpdatePrivateBucketAccessRequest");
38
+ const VerifyDomainOwnerRequest_1 = require("./model/VerifyDomainOwnerRequest");
26
39
  class CdnClient {
27
40
  static newBuilder() {
28
41
  return new ClientBuilder_1.ClientBuilder(newClient);
@@ -50,6 +63,38 @@ class CdnClient {
50
63
  options['responseHeaders'] = [''];
51
64
  return this.hcClient.sendRequest(options);
52
65
  }
66
+ /**
67
+ * 用于删除资源标签。
68
+ *
69
+ * Please refer to HUAWEI cloud API Explorer for details.
70
+ *
71
+ * @summary 删除资源标签配置接口
72
+ * @param {DeleteTagsRequestBody} [deleteTagsRequestBody] DeleteTags对象。
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ batchDeleteTags(batchDeleteTagsRequest) {
77
+ const options = (0, exports.ParamCreater)().batchDeleteTags(batchDeleteTagsRequest);
78
+ // @ts-ignore
79
+ options['responseHeaders'] = [''];
80
+ return this.hcClient.sendRequest(options);
81
+ }
82
+ /**
83
+ * 创建加速域名。
84
+ *
85
+ * Please refer to HUAWEI cloud API Explorer for details.
86
+ *
87
+ * @summary 创建加速域名
88
+ * @param {CreateDomainRequestBody} [createDomainRequestBody] This is a auto create Body Object
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ createDomain(createDomainRequest) {
93
+ const options = (0, exports.ParamCreater)().createDomain(createDomainRequest);
94
+ // @ts-ignore
95
+ options['responseHeaders'] = [''];
96
+ return this.hcClient.sendRequest(options);
97
+ }
53
98
  /**
54
99
  * 创建预热任务。
55
100
  *
@@ -84,6 +129,56 @@ class CdnClient {
84
129
  options['responseHeaders'] = [''];
85
130
  return this.hcClient.sendRequest(options);
86
131
  }
132
+ /**
133
+ * 用于创建资源标签。
134
+ *
135
+ * Please refer to HUAWEI cloud API Explorer for details.
136
+ *
137
+ * @summary 创建资源标签配置接口
138
+ * @param {CreateTagsRequestBody} [createTagsRequestBody] CreateTags对象。
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ createTags(createTagsRequest) {
143
+ const options = (0, exports.ParamCreater)().createTags(createTagsRequest);
144
+ // @ts-ignore
145
+ options['responseHeaders'] = [''];
146
+ return this.hcClient.sendRequest(options);
147
+ }
148
+ /**
149
+ * 删除加速域名。
150
+ *
151
+ * Please refer to HUAWEI cloud API Explorer for details.
152
+ *
153
+ * @summary 删除加速域名
154
+ * @param {string} domainId 加速域名ID。
155
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ deleteDomain(deleteDomainRequest) {
160
+ const options = (0, exports.ParamCreater)().deleteDomain(deleteDomainRequest);
161
+ // @ts-ignore
162
+ options['responseHeaders'] = [''];
163
+ return this.hcClient.sendRequest(options);
164
+ }
165
+ /**
166
+ * 停用加速域名。
167
+ *
168
+ * Please refer to HUAWEI cloud API Explorer for details.
169
+ *
170
+ * @summary 停用加速域名
171
+ * @param {string} domainId 加速域名ID。
172
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ disableDomain(disableDomainRequest) {
177
+ const options = (0, exports.ParamCreater)().disableDomain(disableDomainRequest);
178
+ // @ts-ignore
179
+ options['responseHeaders'] = [''];
180
+ return this.hcClient.sendRequest(options);
181
+ }
87
182
  /**
88
183
  * - 下载区域运营商指标数据表格文件。
89
184
  *
@@ -152,6 +247,23 @@ class CdnClient {
152
247
  options['responseHeaders'] = [''];
153
248
  return this.hcClient.sendRequest(options);
154
249
  }
250
+ /**
251
+ * 启用加速域名。
252
+ *
253
+ * Please refer to HUAWEI cloud API Explorer for details.
254
+ *
255
+ * @summary 启用加速域名
256
+ * @param {string} domainId 加速域名ID。
257
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ enableDomain(enableDomainRequest) {
262
+ const options = (0, exports.ParamCreater)().enableDomain(enableDomainRequest);
263
+ // @ts-ignore
264
+ options['responseHeaders'] = [''];
265
+ return this.hcClient.sendRequest(options);
266
+ }
155
267
  /**
156
268
  * - 查询TOP100 referer数据。
157
269
  *
@@ -261,6 +373,26 @@ class CdnClient {
261
373
  options['responseHeaders'] = [''];
262
374
  return this.hcClient.sendRequest(options);
263
375
  }
376
+ /**
377
+ * 查询所有绑定HTTPS证书的域名信息
378
+ *
379
+ * Please refer to HUAWEI cloud API Explorer for details.
380
+ *
381
+ * @summary 查询所有绑定HTTPS证书的域名信息
382
+ * @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
383
+ * @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
384
+ * @param {string} [domainName] 加速域名。
385
+ * @param {string} [userDomainId] 域名所属用户的domain_id。
386
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest) {
391
+ const options = (0, exports.ParamCreater)().showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest);
392
+ // @ts-ignore
393
+ options['responseHeaders'] = [''];
394
+ return this.hcClient.sendRequest(options);
395
+ }
264
396
  /**
265
397
  * - 查询用户计费模式。
266
398
  *
@@ -443,6 +575,23 @@ class CdnClient {
443
575
  options['responseHeaders'] = [''];
444
576
  return this.hcClient.sendRequest(options);
445
577
  }
578
+ /**
579
+ * 查询IP归属信息。
580
+ *
581
+ * Please refer to HUAWEI cloud API Explorer for details.
582
+ *
583
+ * @summary 查询IP归属信息
584
+ * @param {string} ips IP地址列表,以“,”分割,最多20个。
585
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ showIpInfo(showIpInfoRequest) {
590
+ const options = (0, exports.ParamCreater)().showIpInfo(showIpInfoRequest);
591
+ // @ts-ignore
592
+ options['responseHeaders'] = [''];
593
+ return this.hcClient.sendRequest(options);
594
+ }
446
595
  /**
447
596
  * 查询日志下载链接,支持查询30天内的日志信息。
448
597
  *
@@ -464,6 +613,22 @@ class CdnClient {
464
613
  options['responseHeaders'] = [''];
465
614
  return this.hcClient.sendRequest(options);
466
615
  }
616
+ /**
617
+ * 用于查询资源标签列表。
618
+ *
619
+ * Please refer to HUAWEI cloud API Explorer for details.
620
+ *
621
+ * @summary 查询资源标签列表配置接口
622
+ * @param {string} resourceId 资源id。 > 域名ID
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ showTags(showTagsRequest) {
627
+ const options = (0, exports.ParamCreater)().showTags(showTagsRequest);
628
+ // @ts-ignore
629
+ options['responseHeaders'] = [''];
630
+ return this.hcClient.sendRequest(options);
631
+ }
467
632
  /**
468
633
  * - 查询TOP域名。
469
634
  *
@@ -553,6 +718,22 @@ class CdnClient {
553
718
  options['responseHeaders'] = ['X-request-id'];
554
719
  return this.hcClient.sendRequest(options);
555
720
  }
721
+ /**
722
+ * 用于查询域名归属校验信息
723
+ *
724
+ * Please refer to HUAWEI cloud API Explorer for details.
725
+ *
726
+ * @summary 查询域名归属校验信息
727
+ * @param {string} domainName 域名
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ showVerifyDomainOwnerInfo(showVerifyDomainOwnerInfoRequest) {
732
+ const options = (0, exports.ParamCreater)().showVerifyDomainOwnerInfo(showVerifyDomainOwnerInfoRequest);
733
+ // @ts-ignore
734
+ options['responseHeaders'] = [''];
735
+ return this.hcClient.sendRequest(options);
736
+ }
556
737
  /**
557
738
  * 修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。
558
739
  *
@@ -571,6 +752,58 @@ class CdnClient {
571
752
  options['responseHeaders'] = [''];
572
753
  return this.hcClient.sendRequest(options);
573
754
  }
755
+ /**
756
+ * 一个证书配置多个域名,设置域名强制https回源参数。
757
+ *
758
+ * Please refer to HUAWEI cloud API Explorer for details.
759
+ *
760
+ * @summary 一个证书批量设置多个域名
761
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
762
+ * @param {UpdateDomainMultiCertificatesRequestBody} [updateDomainMultiCertificatesRequestBody] https配置。
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ */
766
+ updateDomainMultiCertificates(updateDomainMultiCertificatesRequest) {
767
+ const options = (0, exports.ParamCreater)().updateDomainMultiCertificates(updateDomainMultiCertificatesRequest);
768
+ // @ts-ignore
769
+ options['responseHeaders'] = [''];
770
+ return this.hcClient.sendRequest(options);
771
+ }
772
+ /**
773
+ * 修改私有桶开启关闭状态。
774
+ *
775
+ * Please refer to HUAWEI cloud API Explorer for details.
776
+ *
777
+ * @summary 修改私有桶开启关闭状态
778
+ * @param {string} domainId 加速域名id。
779
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
780
+ * @param {UpdatePrivateBucketAccessBody} [updatePrivateBucketAccessBody] 桶开启关闭状态(true:开启;false:关闭),默认为关闭
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ updatePrivateBucketAccess(updatePrivateBucketAccessRequest) {
785
+ const options = (0, exports.ParamCreater)().updatePrivateBucketAccess(updatePrivateBucketAccessRequest);
786
+ // @ts-ignore
787
+ options['responseHeaders'] = [''];
788
+ return this.hcClient.sendRequest(options);
789
+ }
790
+ /**
791
+ * 用于域名归属校验
792
+ *
793
+ * Please refer to HUAWEI cloud API Explorer for details.
794
+ *
795
+ * @summary 域名归属校验
796
+ * @param {string} domainName 域名
797
+ * @param {VerifyDomainOwnerRequestBody} [verifyDomainOwnerRequestBody] todo
798
+ * @param {*} [options] Override http request option.
799
+ * @throws {RequiredError}
800
+ */
801
+ verifyDomainOwner(verifyDomainOwnerRequest) {
802
+ const options = (0, exports.ParamCreater)().verifyDomainOwner(verifyDomainOwnerRequest);
803
+ // @ts-ignore
804
+ options['responseHeaders'] = [''];
805
+ return this.hcClient.sendRequest(options);
806
+ }
574
807
  }
575
808
  exports.CdnClient = CdnClient;
576
809
  const ParamCreater = function () {
@@ -609,6 +842,66 @@ const ParamCreater = function () {
609
842
  options.headers = localVarHeaderParameter;
610
843
  return options;
611
844
  },
845
+ /**
846
+ * 用于删除资源标签。
847
+ *
848
+ * Please refer to HUAWEI cloud API Explorer for details.
849
+ */
850
+ batchDeleteTags(batchDeleteTagsRequest) {
851
+ const options = {
852
+ method: "POST",
853
+ url: "/v1.0/cdn/configuration/tags/batch-delete",
854
+ contentType: "application/json",
855
+ queryParams: {},
856
+ pathParams: {},
857
+ headers: {},
858
+ data: {}
859
+ };
860
+ const localVarHeaderParameter = {};
861
+ let body;
862
+ if (batchDeleteTagsRequest !== null && batchDeleteTagsRequest !== undefined) {
863
+ if (batchDeleteTagsRequest instanceof BatchDeleteTagsRequest_1.BatchDeleteTagsRequest) {
864
+ body = batchDeleteTagsRequest.body;
865
+ }
866
+ else {
867
+ body = batchDeleteTagsRequest['body'];
868
+ }
869
+ }
870
+ localVarHeaderParameter['Content-Type'] = 'application/json';
871
+ options.data = body !== undefined ? body : {};
872
+ options.headers = localVarHeaderParameter;
873
+ return options;
874
+ },
875
+ /**
876
+ * 创建加速域名。
877
+ *
878
+ * Please refer to HUAWEI cloud API Explorer for details.
879
+ */
880
+ createDomain(createDomainRequest) {
881
+ const options = {
882
+ method: "POST",
883
+ url: "/v1.0/cdn/domains",
884
+ contentType: "application/json",
885
+ queryParams: {},
886
+ pathParams: {},
887
+ headers: {},
888
+ data: {}
889
+ };
890
+ const localVarHeaderParameter = {};
891
+ let body;
892
+ if (createDomainRequest !== null && createDomainRequest !== undefined) {
893
+ if (createDomainRequest instanceof CreateDomainRequest_1.CreateDomainRequest) {
894
+ body = createDomainRequest.body;
895
+ }
896
+ else {
897
+ body = createDomainRequest['body'];
898
+ }
899
+ }
900
+ localVarHeaderParameter['Content-Type'] = 'application/json';
901
+ options.data = body !== undefined ? body : {};
902
+ options.headers = localVarHeaderParameter;
903
+ return options;
904
+ },
612
905
  /**
613
906
  * 创建预热任务。
614
907
  *
@@ -691,6 +984,114 @@ const ParamCreater = function () {
691
984
  options.headers = localVarHeaderParameter;
692
985
  return options;
693
986
  },
987
+ /**
988
+ * 用于创建资源标签。
989
+ *
990
+ * Please refer to HUAWEI cloud API Explorer for details.
991
+ */
992
+ createTags(createTagsRequest) {
993
+ const options = {
994
+ method: "POST",
995
+ url: "/v1.0/cdn/configuration/tags",
996
+ contentType: "application/json",
997
+ queryParams: {},
998
+ pathParams: {},
999
+ headers: {},
1000
+ data: {}
1001
+ };
1002
+ const localVarHeaderParameter = {};
1003
+ let body;
1004
+ if (createTagsRequest !== null && createTagsRequest !== undefined) {
1005
+ if (createTagsRequest instanceof CreateTagsRequest_1.CreateTagsRequest) {
1006
+ body = createTagsRequest.body;
1007
+ }
1008
+ else {
1009
+ body = createTagsRequest['body'];
1010
+ }
1011
+ }
1012
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1013
+ options.data = body !== undefined ? body : {};
1014
+ options.headers = localVarHeaderParameter;
1015
+ return options;
1016
+ },
1017
+ /**
1018
+ * 删除加速域名。
1019
+ *
1020
+ * Please refer to HUAWEI cloud API Explorer for details.
1021
+ */
1022
+ deleteDomain(deleteDomainRequest) {
1023
+ const options = {
1024
+ method: "DELETE",
1025
+ url: "/v1.0/cdn/domains/{domain_id}",
1026
+ contentType: "application/json",
1027
+ queryParams: {},
1028
+ pathParams: {},
1029
+ headers: {}
1030
+ };
1031
+ const localVarHeaderParameter = {};
1032
+ const localVarQueryParameter = {};
1033
+ let domainId;
1034
+ let enterpriseProjectId;
1035
+ if (deleteDomainRequest !== null && deleteDomainRequest !== undefined) {
1036
+ if (deleteDomainRequest instanceof DeleteDomainRequest_1.DeleteDomainRequest) {
1037
+ domainId = deleteDomainRequest.domainId;
1038
+ enterpriseProjectId = deleteDomainRequest.enterpriseProjectId;
1039
+ }
1040
+ else {
1041
+ domainId = deleteDomainRequest['domain_id'];
1042
+ enterpriseProjectId = deleteDomainRequest['enterprise_project_id'];
1043
+ }
1044
+ }
1045
+ if (domainId === null || domainId === undefined) {
1046
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling deleteDomain.');
1047
+ }
1048
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1049
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1050
+ }
1051
+ options.queryParams = localVarQueryParameter;
1052
+ options.pathParams = { 'domain_id': domainId, };
1053
+ options.headers = localVarHeaderParameter;
1054
+ return options;
1055
+ },
1056
+ /**
1057
+ * 停用加速域名。
1058
+ *
1059
+ * Please refer to HUAWEI cloud API Explorer for details.
1060
+ */
1061
+ disableDomain(disableDomainRequest) {
1062
+ const options = {
1063
+ method: "PUT",
1064
+ url: "/v1.0/cdn/domains/{domain_id}/disable",
1065
+ contentType: "application/json",
1066
+ queryParams: {},
1067
+ pathParams: {},
1068
+ headers: {}
1069
+ };
1070
+ const localVarHeaderParameter = {};
1071
+ const localVarQueryParameter = {};
1072
+ let domainId;
1073
+ let enterpriseProjectId;
1074
+ if (disableDomainRequest !== null && disableDomainRequest !== undefined) {
1075
+ if (disableDomainRequest instanceof DisableDomainRequest_1.DisableDomainRequest) {
1076
+ domainId = disableDomainRequest.domainId;
1077
+ enterpriseProjectId = disableDomainRequest.enterpriseProjectId;
1078
+ }
1079
+ else {
1080
+ domainId = disableDomainRequest['domain_id'];
1081
+ enterpriseProjectId = disableDomainRequest['enterprise_project_id'];
1082
+ }
1083
+ }
1084
+ if (domainId === null || domainId === undefined) {
1085
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling disableDomain.');
1086
+ }
1087
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1088
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1089
+ }
1090
+ options.queryParams = localVarQueryParameter;
1091
+ options.pathParams = { 'domain_id': domainId, };
1092
+ options.headers = localVarHeaderParameter;
1093
+ return options;
1094
+ },
694
1095
  /**
695
1096
  * - 下载区域运营商指标数据表格文件。
696
1097
  *
@@ -895,6 +1296,45 @@ const ParamCreater = function () {
895
1296
  options.headers = localVarHeaderParameter;
896
1297
  return options;
897
1298
  },
1299
+ /**
1300
+ * 启用加速域名。
1301
+ *
1302
+ * Please refer to HUAWEI cloud API Explorer for details.
1303
+ */
1304
+ enableDomain(enableDomainRequest) {
1305
+ const options = {
1306
+ method: "PUT",
1307
+ url: "/v1.0/cdn/domains/{domain_id}/enable",
1308
+ contentType: "application/json",
1309
+ queryParams: {},
1310
+ pathParams: {},
1311
+ headers: {}
1312
+ };
1313
+ const localVarHeaderParameter = {};
1314
+ const localVarQueryParameter = {};
1315
+ let domainId;
1316
+ let enterpriseProjectId;
1317
+ if (enableDomainRequest !== null && enableDomainRequest !== undefined) {
1318
+ if (enableDomainRequest instanceof EnableDomainRequest_1.EnableDomainRequest) {
1319
+ domainId = enableDomainRequest.domainId;
1320
+ enterpriseProjectId = enableDomainRequest.enterpriseProjectId;
1321
+ }
1322
+ else {
1323
+ domainId = enableDomainRequest['domain_id'];
1324
+ enterpriseProjectId = enableDomainRequest['enterprise_project_id'];
1325
+ }
1326
+ }
1327
+ if (domainId === null || domainId === undefined) {
1328
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling enableDomain.');
1329
+ }
1330
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1331
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1332
+ }
1333
+ options.queryParams = localVarQueryParameter;
1334
+ options.pathParams = { 'domain_id': domainId, };
1335
+ options.headers = localVarHeaderParameter;
1336
+ return options;
1337
+ },
898
1338
  /**
899
1339
  * - 查询TOP100 referer数据。
900
1340
  *
@@ -1188,6 +1628,62 @@ const ParamCreater = function () {
1188
1628
  options.headers = localVarHeaderParameter;
1189
1629
  return options;
1190
1630
  },
1631
+ /**
1632
+ * 查询所有绑定HTTPS证书的域名信息
1633
+ *
1634
+ * Please refer to HUAWEI cloud API Explorer for details.
1635
+ */
1636
+ showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest) {
1637
+ const options = {
1638
+ method: "GET",
1639
+ url: "/v1.0/cdn/domains/https-certificate-info",
1640
+ contentType: "application/json",
1641
+ queryParams: {},
1642
+ pathParams: {},
1643
+ headers: {}
1644
+ };
1645
+ const localVarHeaderParameter = {};
1646
+ const localVarQueryParameter = {};
1647
+ let pageSize;
1648
+ let pageNumber;
1649
+ let domainName;
1650
+ let userDomainId;
1651
+ let enterpriseProjectId;
1652
+ if (showCertificatesHttpsInfoRequest !== null && showCertificatesHttpsInfoRequest !== undefined) {
1653
+ if (showCertificatesHttpsInfoRequest instanceof ShowCertificatesHttpsInfoRequest_1.ShowCertificatesHttpsInfoRequest) {
1654
+ pageSize = showCertificatesHttpsInfoRequest.pageSize;
1655
+ pageNumber = showCertificatesHttpsInfoRequest.pageNumber;
1656
+ domainName = showCertificatesHttpsInfoRequest.domainName;
1657
+ userDomainId = showCertificatesHttpsInfoRequest.userDomainId;
1658
+ enterpriseProjectId = showCertificatesHttpsInfoRequest.enterpriseProjectId;
1659
+ }
1660
+ else {
1661
+ pageSize = showCertificatesHttpsInfoRequest['page_size'];
1662
+ pageNumber = showCertificatesHttpsInfoRequest['page_number'];
1663
+ domainName = showCertificatesHttpsInfoRequest['domain_name'];
1664
+ userDomainId = showCertificatesHttpsInfoRequest['user_domain_id'];
1665
+ enterpriseProjectId = showCertificatesHttpsInfoRequest['enterprise_project_id'];
1666
+ }
1667
+ }
1668
+ if (pageSize !== null && pageSize !== undefined) {
1669
+ localVarQueryParameter['page_size'] = pageSize;
1670
+ }
1671
+ if (pageNumber !== null && pageNumber !== undefined) {
1672
+ localVarQueryParameter['page_number'] = pageNumber;
1673
+ }
1674
+ if (domainName !== null && domainName !== undefined) {
1675
+ localVarQueryParameter['domain_name'] = domainName;
1676
+ }
1677
+ if (userDomainId !== null && userDomainId !== undefined) {
1678
+ localVarQueryParameter['user_domain_id'] = userDomainId;
1679
+ }
1680
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1681
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1682
+ }
1683
+ options.queryParams = localVarQueryParameter;
1684
+ options.headers = localVarHeaderParameter;
1685
+ return options;
1686
+ },
1191
1687
  /**
1192
1688
  * - 查询用户计费模式。
1193
1689
  *
@@ -1708,6 +2204,47 @@ const ParamCreater = function () {
1708
2204
  options.headers = localVarHeaderParameter;
1709
2205
  return options;
1710
2206
  },
2207
+ /**
2208
+ * 查询IP归属信息。
2209
+ *
2210
+ * Please refer to HUAWEI cloud API Explorer for details.
2211
+ */
2212
+ showIpInfo(showIpInfoRequest) {
2213
+ const options = {
2214
+ method: "GET",
2215
+ url: "/v1.0/cdn/ip-info",
2216
+ contentType: "application/json",
2217
+ queryParams: {},
2218
+ pathParams: {},
2219
+ headers: {}
2220
+ };
2221
+ const localVarHeaderParameter = {};
2222
+ const localVarQueryParameter = {};
2223
+ let ips;
2224
+ let enterpriseProjectId;
2225
+ if (showIpInfoRequest !== null && showIpInfoRequest !== undefined) {
2226
+ if (showIpInfoRequest instanceof ShowIpInfoRequest_1.ShowIpInfoRequest) {
2227
+ ips = showIpInfoRequest.ips;
2228
+ enterpriseProjectId = showIpInfoRequest.enterpriseProjectId;
2229
+ }
2230
+ else {
2231
+ ips = showIpInfoRequest['ips'];
2232
+ enterpriseProjectId = showIpInfoRequest['enterprise_project_id'];
2233
+ }
2234
+ }
2235
+ if (ips === null || ips === undefined) {
2236
+ throw new RequiredError('ips', 'Required parameter ips was null or undefined when calling showIpInfo.');
2237
+ }
2238
+ if (ips !== null && ips !== undefined) {
2239
+ localVarQueryParameter['ips'] = ips;
2240
+ }
2241
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2242
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
2243
+ }
2244
+ options.queryParams = localVarQueryParameter;
2245
+ options.headers = localVarHeaderParameter;
2246
+ return options;
2247
+ },
1711
2248
  /**
1712
2249
  * 查询日志下载链接,支持查询30天内的日志信息。
1713
2250
  *
@@ -1773,6 +2310,41 @@ const ParamCreater = function () {
1773
2310
  options.headers = localVarHeaderParameter;
1774
2311
  return options;
1775
2312
  },
2313
+ /**
2314
+ * 用于查询资源标签列表。
2315
+ *
2316
+ * Please refer to HUAWEI cloud API Explorer for details.
2317
+ */
2318
+ showTags(showTagsRequest) {
2319
+ const options = {
2320
+ method: "GET",
2321
+ url: "/v1.0/cdn/configuration/tags",
2322
+ contentType: "application/json",
2323
+ queryParams: {},
2324
+ pathParams: {},
2325
+ headers: {}
2326
+ };
2327
+ const localVarHeaderParameter = {};
2328
+ const localVarQueryParameter = {};
2329
+ let resourceId;
2330
+ if (showTagsRequest !== null && showTagsRequest !== undefined) {
2331
+ if (showTagsRequest instanceof ShowTagsRequest_1.ShowTagsRequest) {
2332
+ resourceId = showTagsRequest.resourceId;
2333
+ }
2334
+ else {
2335
+ resourceId = showTagsRequest['resource_id'];
2336
+ }
2337
+ }
2338
+ if (resourceId === null || resourceId === undefined) {
2339
+ throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling showTags.');
2340
+ }
2341
+ if (resourceId !== null && resourceId !== undefined) {
2342
+ localVarQueryParameter['resource_id'] = resourceId;
2343
+ }
2344
+ options.queryParams = localVarQueryParameter;
2345
+ options.headers = localVarHeaderParameter;
2346
+ return options;
2347
+ },
1776
2348
  /**
1777
2349
  * - 查询TOP域名。
1778
2350
  *
@@ -2016,6 +2588,37 @@ const ParamCreater = function () {
2016
2588
  options.headers = localVarHeaderParameter;
2017
2589
  return options;
2018
2590
  },
2591
+ /**
2592
+ * 用于查询域名归属校验信息
2593
+ *
2594
+ * Please refer to HUAWEI cloud API Explorer for details.
2595
+ */
2596
+ showVerifyDomainOwnerInfo(showVerifyDomainOwnerInfoRequest) {
2597
+ const options = {
2598
+ method: "GET",
2599
+ url: "/v1.0/cdn/configuration/domains/{domain_name}/domain-verifies",
2600
+ contentType: "application/json",
2601
+ queryParams: {},
2602
+ pathParams: {},
2603
+ headers: {}
2604
+ };
2605
+ const localVarHeaderParameter = {};
2606
+ let domainName;
2607
+ if (showVerifyDomainOwnerInfoRequest !== null && showVerifyDomainOwnerInfoRequest !== undefined) {
2608
+ if (showVerifyDomainOwnerInfoRequest instanceof ShowVerifyDomainOwnerInfoRequest_1.ShowVerifyDomainOwnerInfoRequest) {
2609
+ domainName = showVerifyDomainOwnerInfoRequest.domainName;
2610
+ }
2611
+ else {
2612
+ domainName = showVerifyDomainOwnerInfoRequest['domain_name'];
2613
+ }
2614
+ }
2615
+ if (domainName === null || domainName === undefined) {
2616
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showVerifyDomainOwnerInfo.');
2617
+ }
2618
+ options.pathParams = { 'domain_name': domainName, };
2619
+ options.headers = localVarHeaderParameter;
2620
+ return options;
2621
+ },
2019
2622
  /**
2020
2623
  * 修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。
2021
2624
  *
@@ -2061,6 +2664,126 @@ const ParamCreater = function () {
2061
2664
  options.headers = localVarHeaderParameter;
2062
2665
  return options;
2063
2666
  },
2667
+ /**
2668
+ * 一个证书配置多个域名,设置域名强制https回源参数。
2669
+ *
2670
+ * Please refer to HUAWEI cloud API Explorer for details.
2671
+ */
2672
+ updateDomainMultiCertificates(updateDomainMultiCertificatesRequest) {
2673
+ const options = {
2674
+ method: "PUT",
2675
+ url: "/v1.0/cdn/domains/config-https-info",
2676
+ contentType: "application/json",
2677
+ queryParams: {},
2678
+ pathParams: {},
2679
+ headers: {},
2680
+ data: {}
2681
+ };
2682
+ const localVarHeaderParameter = {};
2683
+ const localVarQueryParameter = {};
2684
+ let body;
2685
+ let enterpriseProjectId;
2686
+ if (updateDomainMultiCertificatesRequest !== null && updateDomainMultiCertificatesRequest !== undefined) {
2687
+ if (updateDomainMultiCertificatesRequest instanceof UpdateDomainMultiCertificatesRequest_1.UpdateDomainMultiCertificatesRequest) {
2688
+ enterpriseProjectId = updateDomainMultiCertificatesRequest.enterpriseProjectId;
2689
+ body = updateDomainMultiCertificatesRequest.body;
2690
+ }
2691
+ else {
2692
+ enterpriseProjectId = updateDomainMultiCertificatesRequest['enterprise_project_id'];
2693
+ body = updateDomainMultiCertificatesRequest['body'];
2694
+ }
2695
+ }
2696
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2697
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
2698
+ }
2699
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2700
+ options.data = body !== undefined ? body : {};
2701
+ options.queryParams = localVarQueryParameter;
2702
+ options.headers = localVarHeaderParameter;
2703
+ return options;
2704
+ },
2705
+ /**
2706
+ * 修改私有桶开启关闭状态。
2707
+ *
2708
+ * Please refer to HUAWEI cloud API Explorer for details.
2709
+ */
2710
+ updatePrivateBucketAccess(updatePrivateBucketAccessRequest) {
2711
+ const options = {
2712
+ method: "PUT",
2713
+ url: "/v1.0/cdn/domains/{domain_id}/private-bucket-access",
2714
+ contentType: "application/json",
2715
+ queryParams: {},
2716
+ pathParams: {},
2717
+ headers: {},
2718
+ data: {}
2719
+ };
2720
+ const localVarHeaderParameter = {};
2721
+ const localVarQueryParameter = {};
2722
+ let body;
2723
+ let domainId;
2724
+ let enterpriseProjectId;
2725
+ if (updatePrivateBucketAccessRequest !== null && updatePrivateBucketAccessRequest !== undefined) {
2726
+ if (updatePrivateBucketAccessRequest instanceof UpdatePrivateBucketAccessRequest_1.UpdatePrivateBucketAccessRequest) {
2727
+ domainId = updatePrivateBucketAccessRequest.domainId;
2728
+ enterpriseProjectId = updatePrivateBucketAccessRequest.enterpriseProjectId;
2729
+ body = updatePrivateBucketAccessRequest.body;
2730
+ }
2731
+ else {
2732
+ domainId = updatePrivateBucketAccessRequest['domain_id'];
2733
+ enterpriseProjectId = updatePrivateBucketAccessRequest['enterprise_project_id'];
2734
+ body = updatePrivateBucketAccessRequest['body'];
2735
+ }
2736
+ }
2737
+ if (domainId === null || domainId === undefined) {
2738
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updatePrivateBucketAccess.');
2739
+ }
2740
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2741
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
2742
+ }
2743
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2744
+ options.data = body !== undefined ? body : {};
2745
+ options.queryParams = localVarQueryParameter;
2746
+ options.pathParams = { 'domain_id': domainId, };
2747
+ options.headers = localVarHeaderParameter;
2748
+ return options;
2749
+ },
2750
+ /**
2751
+ * 用于域名归属校验
2752
+ *
2753
+ * Please refer to HUAWEI cloud API Explorer for details.
2754
+ */
2755
+ verifyDomainOwner(verifyDomainOwnerRequest) {
2756
+ const options = {
2757
+ method: "POST",
2758
+ url: "/v1.0/cdn/configuration/domains/{domain_name}/verify-owner",
2759
+ contentType: "application/json",
2760
+ queryParams: {},
2761
+ pathParams: {},
2762
+ headers: {},
2763
+ data: {}
2764
+ };
2765
+ const localVarHeaderParameter = {};
2766
+ let body;
2767
+ let domainName;
2768
+ if (verifyDomainOwnerRequest !== null && verifyDomainOwnerRequest !== undefined) {
2769
+ if (verifyDomainOwnerRequest instanceof VerifyDomainOwnerRequest_1.VerifyDomainOwnerRequest) {
2770
+ domainName = verifyDomainOwnerRequest.domainName;
2771
+ body = verifyDomainOwnerRequest.body;
2772
+ }
2773
+ else {
2774
+ domainName = verifyDomainOwnerRequest['domain_name'];
2775
+ body = verifyDomainOwnerRequest['body'];
2776
+ }
2777
+ }
2778
+ if (domainName === null || domainName === undefined) {
2779
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling verifyDomainOwner.');
2780
+ }
2781
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2782
+ options.data = body !== undefined ? body : {};
2783
+ options.pathParams = { 'domain_name': domainName, };
2784
+ options.headers = localVarHeaderParameter;
2785
+ return options;
2786
+ },
2064
2787
  };
2065
2788
  };
2066
2789
  exports.ParamCreater = ParamCreater;