Skip to content

Commit ef75e76

Browse files
committed
Support API DispatchConsoleAPIForPartner.
1 parent 494d071 commit ef75e76

9 files changed

+449
-1
lines changed

websitebuild-20250429/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/websitebuild20250429",
3-
"version": "2.5.0",
3+
"version": "2.6.0",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

websitebuild-20250429/src/client.ts

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,64 @@ export default class Client extends OpenApi {
279279
return await this.describeAppDomainDnsRecordWithOptions(request, runtime);
280280
}
281281

282+
/**
283+
* DispatchConsoleAPIForPartner
284+
*
285+
* @param request - DispatchConsoleAPIForPartnerRequest
286+
* @param runtime - runtime options for this request RuntimeOptions
287+
* @returns DispatchConsoleAPIForPartnerResponse
288+
*/
289+
async dispatchConsoleAPIForPartnerWithOptions(request: $_model.DispatchConsoleAPIForPartnerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DispatchConsoleAPIForPartnerResponse> {
290+
request.validate();
291+
let query = { };
292+
if (!$dara.isNull(request.liveToken)) {
293+
query["LiveToken"] = request.liveToken;
294+
}
295+
296+
if (!$dara.isNull(request.operation)) {
297+
query["Operation"] = request.operation;
298+
}
299+
300+
if (!$dara.isNull(request.params)) {
301+
query["Params"] = request.params;
302+
}
303+
304+
if (!$dara.isNull(request.product)) {
305+
query["Product"] = request.product;
306+
}
307+
308+
if (!$dara.isNull(request.siteHost)) {
309+
query["SiteHost"] = request.siteHost;
310+
}
311+
312+
let req = new $OpenApiUtil.OpenApiRequest({
313+
query: OpenApiUtil.query(query),
314+
});
315+
let params = new $OpenApiUtil.Params({
316+
action: "DispatchConsoleAPIForPartner",
317+
version: "2025-04-29",
318+
protocol: "HTTPS",
319+
pathname: "/",
320+
method: "POST",
321+
authType: "AK",
322+
style: "RPC",
323+
reqBodyType: "formData",
324+
bodyType: "json",
325+
});
326+
return $dara.cast<$_model.DispatchConsoleAPIForPartnerResponse>(await this.callApi(params, req, runtime), new $_model.DispatchConsoleAPIForPartnerResponse({}));
327+
}
328+
329+
/**
330+
* DispatchConsoleAPIForPartner
331+
*
332+
* @param request - DispatchConsoleAPIForPartnerRequest
333+
* @returns DispatchConsoleAPIForPartnerResponse
334+
*/
335+
async dispatchConsoleAPIForPartner(request: $_model.DispatchConsoleAPIForPartnerRequest): Promise<$_model.DispatchConsoleAPIForPartnerResponse> {
336+
let runtime = new $dara.RuntimeOptions({ });
337+
return await this.dispatchConsoleAPIForPartnerWithOptions(request, runtime);
338+
}
339+
282340
/**
283341
* 查询Logo创建任务
284342
*
@@ -417,6 +475,52 @@ export default class Client extends OpenApi {
417475
return await this.getIcpFilingInfoForPartnerWithOptions(request, runtime);
418476
}
419477

478+
/**
479+
* 通过授权码得到accessToken
480+
*
481+
* @param request - GetUserAccessTokenForPartnerRequest
482+
* @param runtime - runtime options for this request RuntimeOptions
483+
* @returns GetUserAccessTokenForPartnerResponse
484+
*/
485+
async getUserAccessTokenForPartnerWithOptions(request: $_model.GetUserAccessTokenForPartnerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetUserAccessTokenForPartnerResponse> {
486+
request.validate();
487+
let query = { };
488+
if (!$dara.isNull(request.siteHost)) {
489+
query["SiteHost"] = request.siteHost;
490+
}
491+
492+
if (!$dara.isNull(request.ticket)) {
493+
query["Ticket"] = request.ticket;
494+
}
495+
496+
let req = new $OpenApiUtil.OpenApiRequest({
497+
query: OpenApiUtil.query(query),
498+
});
499+
let params = new $OpenApiUtil.Params({
500+
action: "GetUserAccessTokenForPartner",
501+
version: "2025-04-29",
502+
protocol: "HTTPS",
503+
pathname: "/",
504+
method: "POST",
505+
authType: "AK",
506+
style: "RPC",
507+
reqBodyType: "formData",
508+
bodyType: "json",
509+
});
510+
return $dara.cast<$_model.GetUserAccessTokenForPartnerResponse>(await this.callApi(params, req, runtime), new $_model.GetUserAccessTokenForPartnerResponse({}));
511+
}
512+
513+
/**
514+
* 通过授权码得到accessToken
515+
*
516+
* @param request - GetUserAccessTokenForPartnerRequest
517+
* @returns GetUserAccessTokenForPartnerResponse
518+
*/
519+
async getUserAccessTokenForPartner(request: $_model.GetUserAccessTokenForPartnerRequest): Promise<$_model.GetUserAccessTokenForPartnerResponse> {
520+
let runtime = new $dara.RuntimeOptions({ });
521+
return await this.getUserAccessTokenForPartnerWithOptions(request, runtime);
522+
}
523+
420524
/**
421525
* 合作伙伴获取用户SLR角色授权临时凭证
422526
*
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class DispatchConsoleAPIForPartnerRequest extends $dara.Model {
6+
/**
7+
* @remarks
8+
* This parameter is required.
9+
*/
10+
liveToken?: string;
11+
/**
12+
* @remarks
13+
* This parameter is required.
14+
*
15+
* @example
16+
* disable
17+
*/
18+
operation?: string;
19+
/**
20+
* @example
21+
* [\\"\\"]
22+
*/
23+
params?: string;
24+
/**
25+
* @remarks
26+
* This parameter is required.
27+
*
28+
* @example
29+
* hbaseue
30+
*/
31+
product?: string;
32+
siteHost?: string;
33+
static names(): { [key: string]: string } {
34+
return {
35+
liveToken: 'LiveToken',
36+
operation: 'Operation',
37+
params: 'Params',
38+
product: 'Product',
39+
siteHost: 'SiteHost',
40+
};
41+
}
42+
43+
static types(): { [key: string]: any } {
44+
return {
45+
liveToken: 'string',
46+
operation: 'string',
47+
params: 'string',
48+
product: 'string',
49+
siteHost: 'string',
50+
};
51+
}
52+
53+
validate() {
54+
super.validate();
55+
}
56+
57+
constructor(map?: { [key: string]: any }) {
58+
super(map);
59+
}
60+
}
61+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { DispatchConsoleAPIForPartnerResponseBody } from "./DispatchConsoleApiforPartnerResponseBody";
4+
5+
6+
export class DispatchConsoleAPIForPartnerResponse extends $dara.Model {
7+
headers?: { [key: string]: string };
8+
statusCode?: number;
9+
body?: DispatchConsoleAPIForPartnerResponseBody;
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: DispatchConsoleAPIForPartnerResponseBody,
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+
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class DispatchConsoleAPIForPartnerResponseBodyModule extends $dara.Model {
6+
/**
7+
* @example
8+
* {\\"HasCustomRoleAuth\\": False}
9+
*/
10+
data?: string;
11+
static names(): { [key: string]: string } {
12+
return {
13+
data: 'Data',
14+
};
15+
}
16+
17+
static types(): { [key: string]: any } {
18+
return {
19+
data: 'string',
20+
};
21+
}
22+
23+
validate() {
24+
super.validate();
25+
}
26+
27+
constructor(map?: { [key: string]: any }) {
28+
super(map);
29+
}
30+
}
31+
32+
export class DispatchConsoleAPIForPartnerResponseBody extends $dara.Model {
33+
/**
34+
* @example
35+
* 0
36+
*/
37+
errorCode?: string;
38+
module?: DispatchConsoleAPIForPartnerResponseBodyModule;
39+
/**
40+
* @remarks
41+
* Id of the request
42+
*
43+
* @example
44+
* 6C6B99AC-39EC-5350-874C-204128C905E6
45+
*/
46+
requestId?: string;
47+
/**
48+
* @example
49+
* true
50+
*/
51+
success?: string;
52+
static names(): { [key: string]: string } {
53+
return {
54+
errorCode: 'ErrorCode',
55+
module: 'Module',
56+
requestId: 'RequestId',
57+
success: 'Success',
58+
};
59+
}
60+
61+
static types(): { [key: string]: any } {
62+
return {
63+
errorCode: 'string',
64+
module: DispatchConsoleAPIForPartnerResponseBodyModule,
65+
requestId: 'string',
66+
success: 'string',
67+
};
68+
}
69+
70+
validate() {
71+
if(this.module && typeof (this.module as any).validate === 'function') {
72+
(this.module as any).validate();
73+
}
74+
super.validate();
75+
}
76+
77+
constructor(map?: { [key: string]: any }) {
78+
super(map);
79+
}
80+
}
81+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class GetUserAccessTokenForPartnerRequest extends $dara.Model {
6+
siteHost?: string;
7+
/**
8+
* @remarks
9+
* This parameter is required.
10+
*
11+
* @example
12+
* 2f68fe1e-d9d5-4803-94d0-2fc81032e91d
13+
*/
14+
ticket?: string;
15+
static names(): { [key: string]: string } {
16+
return {
17+
siteHost: 'SiteHost',
18+
ticket: 'Ticket',
19+
};
20+
}
21+
22+
static types(): { [key: string]: any } {
23+
return {
24+
siteHost: 'string',
25+
ticket: 'string',
26+
};
27+
}
28+
29+
validate() {
30+
super.validate();
31+
}
32+
33+
constructor(map?: { [key: string]: any }) {
34+
super(map);
35+
}
36+
}
37+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { GetUserAccessTokenForPartnerResponseBody } from "./GetUserAccessTokenForPartnerResponseBody";
4+
5+
6+
export class GetUserAccessTokenForPartnerResponse extends $dara.Model {
7+
headers?: { [key: string]: string };
8+
statusCode?: number;
9+
body?: GetUserAccessTokenForPartnerResponseBody;
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: GetUserAccessTokenForPartnerResponseBody,
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+

0 commit comments

Comments
 (0)