@alicloud/websitebuild20250429 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +135 -0
- package/dist/client.js +420 -0
- package/dist/client.js.map +1 -1
- package/dist/models/BindAppDomainRequest.d.ts +29 -0
- package/dist/models/BindAppDomainRequest.js +64 -0
- package/dist/models/BindAppDomainRequest.js.map +1 -0
- package/dist/models/BindAppDomainResponse.d.ts +19 -0
- package/dist/models/BindAppDomainResponse.js +69 -0
- package/dist/models/BindAppDomainResponse.js.map +1 -0
- package/dist/models/BindAppDomainResponseBody.d.ts +78 -0
- package/dist/models/BindAppDomainResponseBody.js +105 -0
- package/dist/models/BindAppDomainResponseBody.js.map +1 -0
- package/dist/models/DeleteAppDomainCertificateRequest.d.ts +23 -0
- package/dist/models/DeleteAppDomainCertificateRequest.js +60 -0
- package/dist/models/DeleteAppDomainCertificateRequest.js.map +1 -0
- package/dist/models/DeleteAppDomainCertificateResponse.d.ts +19 -0
- package/dist/models/DeleteAppDomainCertificateResponse.js +69 -0
- package/dist/models/DeleteAppDomainCertificateResponse.js.map +1 -0
- package/dist/models/DeleteAppDomainCertificateResponseBody.d.ts +76 -0
- package/dist/models/DeleteAppDomainCertificateResponseBody.js +103 -0
- package/dist/models/DeleteAppDomainCertificateResponseBody.js.map +1 -0
- package/dist/models/DeleteAppDomainRedirectRequest.d.ts +23 -0
- package/dist/models/DeleteAppDomainRedirectRequest.js +60 -0
- package/dist/models/DeleteAppDomainRedirectRequest.js.map +1 -0
- package/dist/models/DeleteAppDomainRedirectResponse.d.ts +19 -0
- package/dist/models/DeleteAppDomainRedirectResponse.js +69 -0
- package/dist/models/DeleteAppDomainRedirectResponse.js.map +1 -0
- package/dist/models/DeleteAppDomainRedirectResponseBody.d.ts +76 -0
- package/dist/models/DeleteAppDomainRedirectResponseBody.js +103 -0
- package/dist/models/DeleteAppDomainRedirectResponseBody.js.map +1 -0
- package/dist/models/DescribeAppDomainDnsRecordRequest.d.ts +28 -0
- package/dist/models/DescribeAppDomainDnsRecordRequest.js +62 -0
- package/dist/models/DescribeAppDomainDnsRecordRequest.js.map +1 -0
- package/dist/models/DescribeAppDomainDnsRecordResponse.d.ts +19 -0
- package/dist/models/DescribeAppDomainDnsRecordResponse.js +69 -0
- package/dist/models/DescribeAppDomainDnsRecordResponse.js.map +1 -0
- package/dist/models/DescribeAppDomainDnsRecordResponseBody.d.ts +86 -0
- package/dist/models/DescribeAppDomainDnsRecordResponseBody.js +107 -0
- package/dist/models/DescribeAppDomainDnsRecordResponseBody.js.map +1 -0
- package/dist/models/GetCreateLogoTaskResponseBody.d.ts +0 -2
- package/dist/models/GetCreateLogoTaskResponseBody.js +0 -2
- package/dist/models/GetCreateLogoTaskResponseBody.js.map +1 -1
- package/dist/models/GetDomainInfoForPartnerRequest.d.ts +37 -0
- package/dist/models/GetDomainInfoForPartnerRequest.js +62 -0
- package/dist/models/GetDomainInfoForPartnerRequest.js.map +1 -0
- package/dist/models/GetDomainInfoForPartnerResponse.d.ts +19 -0
- package/dist/models/GetDomainInfoForPartnerResponse.js +69 -0
- package/dist/models/GetDomainInfoForPartnerResponse.js.map +1 -0
- package/dist/models/GetDomainInfoForPartnerResponseBody.d.ts +72 -0
- package/dist/models/GetDomainInfoForPartnerResponseBody.js +112 -0
- package/dist/models/GetDomainInfoForPartnerResponseBody.js.map +1 -0
- package/dist/models/ListAppDomainRedirectRecordsRequest.d.ts +28 -0
- package/dist/models/ListAppDomainRedirectRecordsRequest.js +62 -0
- package/dist/models/ListAppDomainRedirectRecordsRequest.js.map +1 -0
- package/dist/models/ListAppDomainRedirectRecordsResponse.d.ts +19 -0
- package/dist/models/ListAppDomainRedirectRecordsResponse.js +69 -0
- package/dist/models/ListAppDomainRedirectRecordsResponse.js.map +1 -0
- package/dist/models/ListAppDomainRedirectRecordsResponseBody.d.ts +160 -0
- package/dist/models/ListAppDomainRedirectRecordsResponseBody.js +175 -0
- package/dist/models/ListAppDomainRedirectRecordsResponseBody.js.map +1 -0
- package/dist/models/ListAppInstanceDomainsRequest.d.ts +48 -0
- package/dist/models/ListAppInstanceDomainsRequest.js +70 -0
- package/dist/models/ListAppInstanceDomainsRequest.js.map +1 -0
- package/dist/models/ListAppInstanceDomainsResponse.d.ts +19 -0
- package/dist/models/ListAppInstanceDomainsResponse.js +69 -0
- package/dist/models/ListAppInstanceDomainsResponse.js.map +1 -0
- package/dist/models/ListAppInstanceDomainsResponseBody.d.ts +482 -0
- package/dist/models/ListAppInstanceDomainsResponseBody.js +507 -0
- package/dist/models/ListAppInstanceDomainsResponseBody.js.map +1 -0
- package/dist/models/SetAppDomainCertificateRequest.d.ts +43 -0
- package/dist/models/SetAppDomainCertificateRequest.js +68 -0
- package/dist/models/SetAppDomainCertificateRequest.js.map +1 -0
- package/dist/models/SetAppDomainCertificateResponse.d.ts +19 -0
- package/dist/models/SetAppDomainCertificateResponse.js +69 -0
- package/dist/models/SetAppDomainCertificateResponse.js.map +1 -0
- package/dist/models/SetAppDomainCertificateResponseBody.d.ts +76 -0
- package/dist/models/SetAppDomainCertificateResponseBody.js +103 -0
- package/dist/models/SetAppDomainCertificateResponseBody.js.map +1 -0
- package/dist/models/UnbindAppDomainRequest.d.ts +23 -0
- package/dist/models/UnbindAppDomainRequest.js +60 -0
- package/dist/models/UnbindAppDomainRequest.js.map +1 -0
- package/dist/models/UnbindAppDomainResponse.d.ts +19 -0
- package/dist/models/UnbindAppDomainResponse.js +69 -0
- package/dist/models/UnbindAppDomainResponse.js.map +1 -0
- package/dist/models/UnbindAppDomainResponseBody.d.ts +76 -0
- package/dist/models/UnbindAppDomainResponseBody.js +103 -0
- package/dist/models/UnbindAppDomainResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +53 -0
- package/dist/models/model.js +108 -1
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +470 -0
- package/src/models/BindAppDomainRequest.ts +48 -0
- package/src/models/BindAppDomainResponse.ts +40 -0
- package/src/models/BindAppDomainResponseBody.ts +127 -0
- package/src/models/DeleteAppDomainCertificateRequest.ts +38 -0
- package/src/models/DeleteAppDomainCertificateResponse.ts +40 -0
- package/src/models/DeleteAppDomainCertificateResponseBody.ts +125 -0
- package/src/models/DeleteAppDomainRedirectRequest.ts +38 -0
- package/src/models/DeleteAppDomainRedirectResponse.ts +40 -0
- package/src/models/DeleteAppDomainRedirectResponseBody.ts +125 -0
- package/src/models/DescribeAppDomainDnsRecordRequest.ts +45 -0
- package/src/models/DescribeAppDomainDnsRecordResponse.ts +40 -0
- package/src/models/DescribeAppDomainDnsRecordResponseBody.ts +139 -0
- package/src/models/GetCreateLogoTaskResponseBody.ts +0 -2
- package/src/models/GetDomainInfoForPartnerRequest.ts +54 -0
- package/src/models/GetDomainInfoForPartnerResponse.ts +40 -0
- package/src/models/GetDomainInfoForPartnerResponseBody.ts +121 -0
- package/src/models/ListAppDomainRedirectRecordsRequest.ts +45 -0
- package/src/models/ListAppDomainRedirectRecordsResponse.ts +40 -0
- package/src/models/ListAppDomainRedirectRecordsResponseBody.ts +263 -0
- package/src/models/ListAppInstanceDomainsRequest.ts +73 -0
- package/src/models/ListAppInstanceDomainsResponse.ts +40 -0
- package/src/models/ListAppInstanceDomainsResponseBody.ts +809 -0
- package/src/models/SetAppDomainCertificateRequest.ts +66 -0
- package/src/models/SetAppDomainCertificateResponse.ts +40 -0
- package/src/models/SetAppDomainCertificateResponseBody.ts +125 -0
- package/src/models/UnbindAppDomainRequest.ts +38 -0
- package/src/models/UnbindAppDomainResponse.ts +40 -0
- package/src/models/UnbindAppDomainResponseBody.ts +125 -0
- package/src/models/model.ts +53 -0
package/src/client.ts
CHANGED
|
@@ -29,6 +29,60 @@ export default class Client extends OpenApi {
|
|
|
29
29
|
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 绑定应用域名
|
|
34
|
+
*
|
|
35
|
+
* @param request - BindAppDomainRequest
|
|
36
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
37
|
+
* @returns BindAppDomainResponse
|
|
38
|
+
*/
|
|
39
|
+
async bindAppDomainWithOptions(request: $_model.BindAppDomainRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BindAppDomainResponse> {
|
|
40
|
+
request.validate();
|
|
41
|
+
let query = { };
|
|
42
|
+
if (!$dara.isNull(request.bizId)) {
|
|
43
|
+
query["BizId"] = request.bizId;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (!$dara.isNull(request.domainName)) {
|
|
47
|
+
query["DomainName"] = request.domainName;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (!$dara.isNull(request.extend)) {
|
|
51
|
+
query["Extend"] = request.extend;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (!$dara.isNull(request.operateType)) {
|
|
55
|
+
query["OperateType"] = request.operateType;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
59
|
+
query: OpenApiUtil.query(query),
|
|
60
|
+
});
|
|
61
|
+
let params = new $OpenApiUtil.Params({
|
|
62
|
+
action: "BindAppDomain",
|
|
63
|
+
version: "2025-04-29",
|
|
64
|
+
protocol: "HTTPS",
|
|
65
|
+
pathname: "/",
|
|
66
|
+
method: "POST",
|
|
67
|
+
authType: "AK",
|
|
68
|
+
style: "RPC",
|
|
69
|
+
reqBodyType: "formData",
|
|
70
|
+
bodyType: "json",
|
|
71
|
+
});
|
|
72
|
+
return $dara.cast<$_model.BindAppDomainResponse>(await this.callApi(params, req, runtime), new $_model.BindAppDomainResponse({}));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 绑定应用域名
|
|
77
|
+
*
|
|
78
|
+
* @param request - BindAppDomainRequest
|
|
79
|
+
* @returns BindAppDomainResponse
|
|
80
|
+
*/
|
|
81
|
+
async bindAppDomain(request: $_model.BindAppDomainRequest): Promise<$_model.BindAppDomainResponse> {
|
|
82
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
83
|
+
return await this.bindAppDomainWithOptions(request, runtime);
|
|
84
|
+
}
|
|
85
|
+
|
|
32
86
|
/**
|
|
33
87
|
* 提交创建Logo任务
|
|
34
88
|
*
|
|
@@ -83,6 +137,148 @@ export default class Client extends OpenApi {
|
|
|
83
137
|
return await this.createLogoTaskWithOptions(request, runtime);
|
|
84
138
|
}
|
|
85
139
|
|
|
140
|
+
/**
|
|
141
|
+
* 删除域名的SSL证书
|
|
142
|
+
*
|
|
143
|
+
* @param request - DeleteAppDomainCertificateRequest
|
|
144
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
145
|
+
* @returns DeleteAppDomainCertificateResponse
|
|
146
|
+
*/
|
|
147
|
+
async deleteAppDomainCertificateWithOptions(request: $_model.DeleteAppDomainCertificateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAppDomainCertificateResponse> {
|
|
148
|
+
request.validate();
|
|
149
|
+
let query = { };
|
|
150
|
+
if (!$dara.isNull(request.bizId)) {
|
|
151
|
+
query["BizId"] = request.bizId;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (!$dara.isNull(request.domainName)) {
|
|
155
|
+
query["DomainName"] = request.domainName;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
159
|
+
query: OpenApiUtil.query(query),
|
|
160
|
+
});
|
|
161
|
+
let params = new $OpenApiUtil.Params({
|
|
162
|
+
action: "DeleteAppDomainCertificate",
|
|
163
|
+
version: "2025-04-29",
|
|
164
|
+
protocol: "HTTPS",
|
|
165
|
+
pathname: "/",
|
|
166
|
+
method: "POST",
|
|
167
|
+
authType: "AK",
|
|
168
|
+
style: "RPC",
|
|
169
|
+
reqBodyType: "formData",
|
|
170
|
+
bodyType: "json",
|
|
171
|
+
});
|
|
172
|
+
return $dara.cast<$_model.DeleteAppDomainCertificateResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAppDomainCertificateResponse({}));
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* 删除域名的SSL证书
|
|
177
|
+
*
|
|
178
|
+
* @param request - DeleteAppDomainCertificateRequest
|
|
179
|
+
* @returns DeleteAppDomainCertificateResponse
|
|
180
|
+
*/
|
|
181
|
+
async deleteAppDomainCertificate(request: $_model.DeleteAppDomainCertificateRequest): Promise<$_model.DeleteAppDomainCertificateResponse> {
|
|
182
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
183
|
+
return await this.deleteAppDomainCertificateWithOptions(request, runtime);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 删除域名的跳转规则
|
|
188
|
+
*
|
|
189
|
+
* @param request - DeleteAppDomainRedirectRequest
|
|
190
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
191
|
+
* @returns DeleteAppDomainRedirectResponse
|
|
192
|
+
*/
|
|
193
|
+
async deleteAppDomainRedirectWithOptions(request: $_model.DeleteAppDomainRedirectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAppDomainRedirectResponse> {
|
|
194
|
+
request.validate();
|
|
195
|
+
let query = { };
|
|
196
|
+
if (!$dara.isNull(request.bizId)) {
|
|
197
|
+
query["BizId"] = request.bizId;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (!$dara.isNull(request.recordId)) {
|
|
201
|
+
query["RecordId"] = request.recordId;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
205
|
+
query: OpenApiUtil.query(query),
|
|
206
|
+
});
|
|
207
|
+
let params = new $OpenApiUtil.Params({
|
|
208
|
+
action: "DeleteAppDomainRedirect",
|
|
209
|
+
version: "2025-04-29",
|
|
210
|
+
protocol: "HTTPS",
|
|
211
|
+
pathname: "/",
|
|
212
|
+
method: "POST",
|
|
213
|
+
authType: "AK",
|
|
214
|
+
style: "RPC",
|
|
215
|
+
reqBodyType: "formData",
|
|
216
|
+
bodyType: "json",
|
|
217
|
+
});
|
|
218
|
+
return $dara.cast<$_model.DeleteAppDomainRedirectResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAppDomainRedirectResponse({}));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* 删除域名的跳转规则
|
|
223
|
+
*
|
|
224
|
+
* @param request - DeleteAppDomainRedirectRequest
|
|
225
|
+
* @returns DeleteAppDomainRedirectResponse
|
|
226
|
+
*/
|
|
227
|
+
async deleteAppDomainRedirect(request: $_model.DeleteAppDomainRedirectRequest): Promise<$_model.DeleteAppDomainRedirectResponse> {
|
|
228
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
229
|
+
return await this.deleteAppDomainRedirectWithOptions(request, runtime);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* 查询域名的DNS解析记录
|
|
234
|
+
*
|
|
235
|
+
* @param request - DescribeAppDomainDnsRecordRequest
|
|
236
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
237
|
+
* @returns DescribeAppDomainDnsRecordResponse
|
|
238
|
+
*/
|
|
239
|
+
async describeAppDomainDnsRecordWithOptions(request: $_model.DescribeAppDomainDnsRecordRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAppDomainDnsRecordResponse> {
|
|
240
|
+
request.validate();
|
|
241
|
+
let query = { };
|
|
242
|
+
if (!$dara.isNull(request.bizId)) {
|
|
243
|
+
query["BizId"] = request.bizId;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (!$dara.isNull(request.domainName)) {
|
|
247
|
+
query["DomainName"] = request.domainName;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (!$dara.isNull(request.purpose)) {
|
|
251
|
+
query["Purpose"] = request.purpose;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
255
|
+
query: OpenApiUtil.query(query),
|
|
256
|
+
});
|
|
257
|
+
let params = new $OpenApiUtil.Params({
|
|
258
|
+
action: "DescribeAppDomainDnsRecord",
|
|
259
|
+
version: "2025-04-29",
|
|
260
|
+
protocol: "HTTPS",
|
|
261
|
+
pathname: "/",
|
|
262
|
+
method: "POST",
|
|
263
|
+
authType: "AK",
|
|
264
|
+
style: "RPC",
|
|
265
|
+
reqBodyType: "formData",
|
|
266
|
+
bodyType: "json",
|
|
267
|
+
});
|
|
268
|
+
return $dara.cast<$_model.DescribeAppDomainDnsRecordResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAppDomainDnsRecordResponse({}));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* 查询域名的DNS解析记录
|
|
273
|
+
*
|
|
274
|
+
* @param request - DescribeAppDomainDnsRecordRequest
|
|
275
|
+
* @returns DescribeAppDomainDnsRecordResponse
|
|
276
|
+
*/
|
|
277
|
+
async describeAppDomainDnsRecord(request: $_model.DescribeAppDomainDnsRecordRequest): Promise<$_model.DescribeAppDomainDnsRecordResponse> {
|
|
278
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
279
|
+
return await this.describeAppDomainDnsRecordWithOptions(request, runtime);
|
|
280
|
+
}
|
|
281
|
+
|
|
86
282
|
/**
|
|
87
283
|
* 查询Logo创建任务
|
|
88
284
|
*
|
|
@@ -125,6 +321,56 @@ export default class Client extends OpenApi {
|
|
|
125
321
|
return await this.getCreateLogoTaskWithOptions(request, runtime);
|
|
126
322
|
}
|
|
127
323
|
|
|
324
|
+
/**
|
|
325
|
+
* 提供给服务商的域名查询接口
|
|
326
|
+
*
|
|
327
|
+
* @param request - GetDomainInfoForPartnerRequest
|
|
328
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
329
|
+
* @returns GetDomainInfoForPartnerResponse
|
|
330
|
+
*/
|
|
331
|
+
async getDomainInfoForPartnerWithOptions(request: $_model.GetDomainInfoForPartnerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDomainInfoForPartnerResponse> {
|
|
332
|
+
request.validate();
|
|
333
|
+
let query = { };
|
|
334
|
+
if (!$dara.isNull(request.bizId)) {
|
|
335
|
+
query["BizId"] = request.bizId;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (!$dara.isNull(request.domainName)) {
|
|
339
|
+
query["DomainName"] = request.domainName;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (!$dara.isNull(request.userId)) {
|
|
343
|
+
query["UserId"] = request.userId;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
347
|
+
query: OpenApiUtil.query(query),
|
|
348
|
+
});
|
|
349
|
+
let params = new $OpenApiUtil.Params({
|
|
350
|
+
action: "GetDomainInfoForPartner",
|
|
351
|
+
version: "2025-04-29",
|
|
352
|
+
protocol: "HTTPS",
|
|
353
|
+
pathname: "/",
|
|
354
|
+
method: "POST",
|
|
355
|
+
authType: "AK",
|
|
356
|
+
style: "RPC",
|
|
357
|
+
reqBodyType: "formData",
|
|
358
|
+
bodyType: "json",
|
|
359
|
+
});
|
|
360
|
+
return $dara.cast<$_model.GetDomainInfoForPartnerResponse>(await this.callApi(params, req, runtime), new $_model.GetDomainInfoForPartnerResponse({}));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* 提供给服务商的域名查询接口
|
|
365
|
+
*
|
|
366
|
+
* @param request - GetDomainInfoForPartnerRequest
|
|
367
|
+
* @returns GetDomainInfoForPartnerResponse
|
|
368
|
+
*/
|
|
369
|
+
async getDomainInfoForPartner(request: $_model.GetDomainInfoForPartnerRequest): Promise<$_model.GetDomainInfoForPartnerResponse> {
|
|
370
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
371
|
+
return await this.getDomainInfoForPartnerWithOptions(request, runtime);
|
|
372
|
+
}
|
|
373
|
+
|
|
128
374
|
/**
|
|
129
375
|
* 查询域名备案信息
|
|
130
376
|
*
|
|
@@ -229,6 +475,122 @@ export default class Client extends OpenApi {
|
|
|
229
475
|
return await this.getUserTmpIdentityForPartnerWithOptions(request, runtime);
|
|
230
476
|
}
|
|
231
477
|
|
|
478
|
+
/**
|
|
479
|
+
* 查询域名的跳转规则列表
|
|
480
|
+
*
|
|
481
|
+
* @param request - ListAppDomainRedirectRecordsRequest
|
|
482
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
483
|
+
* @returns ListAppDomainRedirectRecordsResponse
|
|
484
|
+
*/
|
|
485
|
+
async listAppDomainRedirectRecordsWithOptions(request: $_model.ListAppDomainRedirectRecordsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAppDomainRedirectRecordsResponse> {
|
|
486
|
+
request.validate();
|
|
487
|
+
let query = { };
|
|
488
|
+
if (!$dara.isNull(request.bizId)) {
|
|
489
|
+
query["BizId"] = request.bizId;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
493
|
+
query["MaxResults"] = request.maxResults;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
497
|
+
query["NextToken"] = request.nextToken;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
501
|
+
query: OpenApiUtil.query(query),
|
|
502
|
+
});
|
|
503
|
+
let params = new $OpenApiUtil.Params({
|
|
504
|
+
action: "ListAppDomainRedirectRecords",
|
|
505
|
+
version: "2025-04-29",
|
|
506
|
+
protocol: "HTTPS",
|
|
507
|
+
pathname: "/",
|
|
508
|
+
method: "POST",
|
|
509
|
+
authType: "AK",
|
|
510
|
+
style: "RPC",
|
|
511
|
+
reqBodyType: "formData",
|
|
512
|
+
bodyType: "json",
|
|
513
|
+
});
|
|
514
|
+
return $dara.cast<$_model.ListAppDomainRedirectRecordsResponse>(await this.callApi(params, req, runtime), new $_model.ListAppDomainRedirectRecordsResponse({}));
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* 查询域名的跳转规则列表
|
|
519
|
+
*
|
|
520
|
+
* @param request - ListAppDomainRedirectRecordsRequest
|
|
521
|
+
* @returns ListAppDomainRedirectRecordsResponse
|
|
522
|
+
*/
|
|
523
|
+
async listAppDomainRedirectRecords(request: $_model.ListAppDomainRedirectRecordsRequest): Promise<$_model.ListAppDomainRedirectRecordsResponse> {
|
|
524
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
525
|
+
return await this.listAppDomainRedirectRecordsWithOptions(request, runtime);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* 查询应用实例下的所有域名列表
|
|
530
|
+
*
|
|
531
|
+
* @param request - ListAppInstanceDomainsRequest
|
|
532
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
533
|
+
* @returns ListAppInstanceDomainsResponse
|
|
534
|
+
*/
|
|
535
|
+
async listAppInstanceDomainsWithOptions(request: $_model.ListAppInstanceDomainsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAppInstanceDomainsResponse> {
|
|
536
|
+
request.validate();
|
|
537
|
+
let query = { };
|
|
538
|
+
if (!$dara.isNull(request.bizId)) {
|
|
539
|
+
query["BizId"] = request.bizId;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
543
|
+
query["MaxResults"] = request.maxResults;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
547
|
+
query["NextToken"] = request.nextToken;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
if (!$dara.isNull(request.orderColumn)) {
|
|
551
|
+
query["OrderColumn"] = request.orderColumn;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
if (!$dara.isNull(request.orderType)) {
|
|
555
|
+
query["OrderType"] = request.orderType;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
if (!$dara.isNull(request.pageNum)) {
|
|
559
|
+
query["PageNum"] = request.pageNum;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
563
|
+
query["PageSize"] = request.pageSize;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
567
|
+
query: OpenApiUtil.query(query),
|
|
568
|
+
});
|
|
569
|
+
let params = new $OpenApiUtil.Params({
|
|
570
|
+
action: "ListAppInstanceDomains",
|
|
571
|
+
version: "2025-04-29",
|
|
572
|
+
protocol: "HTTPS",
|
|
573
|
+
pathname: "/",
|
|
574
|
+
method: "POST",
|
|
575
|
+
authType: "AK",
|
|
576
|
+
style: "RPC",
|
|
577
|
+
reqBodyType: "formData",
|
|
578
|
+
bodyType: "json",
|
|
579
|
+
});
|
|
580
|
+
return $dara.cast<$_model.ListAppInstanceDomainsResponse>(await this.callApi(params, req, runtime), new $_model.ListAppInstanceDomainsResponse({}));
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* 查询应用实例下的所有域名列表
|
|
585
|
+
*
|
|
586
|
+
* @param request - ListAppInstanceDomainsRequest
|
|
587
|
+
* @returns ListAppInstanceDomainsResponse
|
|
588
|
+
*/
|
|
589
|
+
async listAppInstanceDomains(request: $_model.ListAppInstanceDomainsRequest): Promise<$_model.ListAppInstanceDomainsResponse> {
|
|
590
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
591
|
+
return await this.listAppInstanceDomainsWithOptions(request, runtime);
|
|
592
|
+
}
|
|
593
|
+
|
|
232
594
|
/**
|
|
233
595
|
* 合作伙伴操作应用
|
|
234
596
|
*
|
|
@@ -433,6 +795,68 @@ export default class Client extends OpenApi {
|
|
|
433
795
|
return await this.searchImageWithOptions(request, runtime);
|
|
434
796
|
}
|
|
435
797
|
|
|
798
|
+
/**
|
|
799
|
+
* 设置域名的SSL证书
|
|
800
|
+
*
|
|
801
|
+
* @param request - SetAppDomainCertificateRequest
|
|
802
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
803
|
+
* @returns SetAppDomainCertificateResponse
|
|
804
|
+
*/
|
|
805
|
+
async setAppDomainCertificateWithOptions(request: $_model.SetAppDomainCertificateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetAppDomainCertificateResponse> {
|
|
806
|
+
request.validate();
|
|
807
|
+
let query = { };
|
|
808
|
+
if (!$dara.isNull(request.bizId)) {
|
|
809
|
+
query["BizId"] = request.bizId;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if (!$dara.isNull(request.certificateName)) {
|
|
813
|
+
query["CertificateName"] = request.certificateName;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
if (!$dara.isNull(request.certificateType)) {
|
|
817
|
+
query["CertificateType"] = request.certificateType;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
if (!$dara.isNull(request.domainName)) {
|
|
821
|
+
query["DomainName"] = request.domainName;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
if (!$dara.isNull(request.privateKey)) {
|
|
825
|
+
query["PrivateKey"] = request.privateKey;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
if (!$dara.isNull(request.publicKey)) {
|
|
829
|
+
query["PublicKey"] = request.publicKey;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
833
|
+
query: OpenApiUtil.query(query),
|
|
834
|
+
});
|
|
835
|
+
let params = new $OpenApiUtil.Params({
|
|
836
|
+
action: "SetAppDomainCertificate",
|
|
837
|
+
version: "2025-04-29",
|
|
838
|
+
protocol: "HTTPS",
|
|
839
|
+
pathname: "/",
|
|
840
|
+
method: "POST",
|
|
841
|
+
authType: "AK",
|
|
842
|
+
style: "RPC",
|
|
843
|
+
reqBodyType: "formData",
|
|
844
|
+
bodyType: "json",
|
|
845
|
+
});
|
|
846
|
+
return $dara.cast<$_model.SetAppDomainCertificateResponse>(await this.callApi(params, req, runtime), new $_model.SetAppDomainCertificateResponse({}));
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* 设置域名的SSL证书
|
|
851
|
+
*
|
|
852
|
+
* @param request - SetAppDomainCertificateRequest
|
|
853
|
+
* @returns SetAppDomainCertificateResponse
|
|
854
|
+
*/
|
|
855
|
+
async setAppDomainCertificate(request: $_model.SetAppDomainCertificateRequest): Promise<$_model.SetAppDomainCertificateResponse> {
|
|
856
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
857
|
+
return await this.setAppDomainCertificateWithOptions(request, runtime);
|
|
858
|
+
}
|
|
859
|
+
|
|
436
860
|
/**
|
|
437
861
|
* 合作伙伴同步应用实例
|
|
438
862
|
*
|
|
@@ -497,4 +921,50 @@ export default class Client extends OpenApi {
|
|
|
497
921
|
return await this.syncAppInstanceForPartnerWithOptions(request, runtime);
|
|
498
922
|
}
|
|
499
923
|
|
|
924
|
+
/**
|
|
925
|
+
* 解绑应用域名
|
|
926
|
+
*
|
|
927
|
+
* @param request - UnbindAppDomainRequest
|
|
928
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
929
|
+
* @returns UnbindAppDomainResponse
|
|
930
|
+
*/
|
|
931
|
+
async unbindAppDomainWithOptions(request: $_model.UnbindAppDomainRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UnbindAppDomainResponse> {
|
|
932
|
+
request.validate();
|
|
933
|
+
let query = { };
|
|
934
|
+
if (!$dara.isNull(request.bizId)) {
|
|
935
|
+
query["BizId"] = request.bizId;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
if (!$dara.isNull(request.domainName)) {
|
|
939
|
+
query["DomainName"] = request.domainName;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
943
|
+
query: OpenApiUtil.query(query),
|
|
944
|
+
});
|
|
945
|
+
let params = new $OpenApiUtil.Params({
|
|
946
|
+
action: "UnbindAppDomain",
|
|
947
|
+
version: "2025-04-29",
|
|
948
|
+
protocol: "HTTPS",
|
|
949
|
+
pathname: "/",
|
|
950
|
+
method: "POST",
|
|
951
|
+
authType: "AK",
|
|
952
|
+
style: "RPC",
|
|
953
|
+
reqBodyType: "formData",
|
|
954
|
+
bodyType: "json",
|
|
955
|
+
});
|
|
956
|
+
return $dara.cast<$_model.UnbindAppDomainResponse>(await this.callApi(params, req, runtime), new $_model.UnbindAppDomainResponse({}));
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* 解绑应用域名
|
|
961
|
+
*
|
|
962
|
+
* @param request - UnbindAppDomainRequest
|
|
963
|
+
* @returns UnbindAppDomainResponse
|
|
964
|
+
*/
|
|
965
|
+
async unbindAppDomain(request: $_model.UnbindAppDomainRequest): Promise<$_model.UnbindAppDomainResponse> {
|
|
966
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
967
|
+
return await this.unbindAppDomainWithOptions(request, runtime);
|
|
968
|
+
}
|
|
969
|
+
|
|
500
970
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class BindAppDomainRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* WD20250820143531000001
|
|
9
|
+
*/
|
|
10
|
+
bizId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* xiaoniu.link
|
|
14
|
+
*/
|
|
15
|
+
domainName?: string;
|
|
16
|
+
extend?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* vul_fix
|
|
20
|
+
*/
|
|
21
|
+
operateType?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
bizId: 'BizId',
|
|
25
|
+
domainName: 'DomainName',
|
|
26
|
+
extend: 'Extend',
|
|
27
|
+
operateType: 'OperateType',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
bizId: 'string',
|
|
34
|
+
domainName: 'string',
|
|
35
|
+
extend: 'string',
|
|
36
|
+
operateType: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { BindAppDomainResponseBody } from "./BindAppDomainResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class BindAppDomainResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: BindAppDomainResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: BindAppDomainResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|