@alicloud/emr-serverless-spark20230808 1.22.0 → 1.23.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 +36 -0
- package/dist/client.js +74 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ActivateAicenterRequest.d.ts +13 -0
- package/dist/models/ActivateAicenterRequest.js +54 -0
- package/dist/models/ActivateAicenterRequest.js.map +1 -0
- package/dist/models/ActivateAicenterResponse.d.ts +19 -0
- package/dist/models/ActivateAicenterResponse.js +69 -0
- package/dist/models/ActivateAicenterResponse.js.map +1 -0
- package/dist/models/ActivateAicenterResponseBody.d.ts +18 -0
- package/dist/models/ActivateAicenterResponseBody.js +58 -0
- package/dist/models/ActivateAicenterResponseBody.js.map +1 -0
- package/dist/models/GetAicenterStateRequest.d.ts +13 -0
- package/dist/models/GetAicenterStateRequest.js +54 -0
- package/dist/models/GetAicenterStateRequest.js.map +1 -0
- package/dist/models/GetAicenterStateResponse.d.ts +19 -0
- package/dist/models/GetAicenterStateResponse.js +69 -0
- package/dist/models/GetAicenterStateResponse.js.map +1 -0
- package/dist/models/GetAicenterStateResponseBody.d.ts +23 -0
- package/dist/models/GetAicenterStateResponseBody.js +60 -0
- package/dist/models/GetAicenterStateResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +18 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +78 -0
- package/src/models/ActivateAicenterRequest.ts +24 -0
- package/src/models/ActivateAicenterResponse.ts +40 -0
- package/src/models/ActivateAicenterResponseBody.ts +31 -0
- package/src/models/GetAicenterStateRequest.ts +24 -0
- package/src/models/GetAicenterStateResponse.ts +40 -0
- package/src/models/GetAicenterStateResponseBody.ts +38 -0
- package/src/models/model.ts +6 -0
package/dist/client.d.ts
CHANGED
|
@@ -8,6 +8,24 @@ export default class Client extends OpenApi {
|
|
|
8
8
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
9
9
|
[key: string]: string;
|
|
10
10
|
}, endpoint: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* 激活AI中心
|
|
13
|
+
*
|
|
14
|
+
* @param request - ActivateAICenterRequest
|
|
15
|
+
* @param headers - map
|
|
16
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17
|
+
* @returns ActivateAICenterResponse
|
|
18
|
+
*/
|
|
19
|
+
activateAICenterWithOptions(workspaceId: string, request: $_model.ActivateAICenterRequest, headers: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ActivateAICenterResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* 激活AI中心
|
|
24
|
+
*
|
|
25
|
+
* @param request - ActivateAICenterRequest
|
|
26
|
+
* @returns ActivateAICenterResponse
|
|
27
|
+
*/
|
|
28
|
+
activateAICenter(workspaceId: string, request: $_model.ActivateAICenterRequest): Promise<$_model.ActivateAICenterResponse>;
|
|
11
29
|
/**
|
|
12
30
|
* Adds a RAM user or RAM role to a workspace as a member.
|
|
13
31
|
*
|
|
@@ -380,6 +398,24 @@ export default class Client extends OpenApi {
|
|
|
380
398
|
* @returns GenerateTaskCodesResponse
|
|
381
399
|
*/
|
|
382
400
|
generateTaskCodes(bizId: string, request: $_model.GenerateTaskCodesRequest): Promise<$_model.GenerateTaskCodesResponse>;
|
|
401
|
+
/**
|
|
402
|
+
* 获取AI中心状态
|
|
403
|
+
*
|
|
404
|
+
* @param request - GetAICenterStateRequest
|
|
405
|
+
* @param headers - map
|
|
406
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
407
|
+
* @returns GetAICenterStateResponse
|
|
408
|
+
*/
|
|
409
|
+
getAICenterStateWithOptions(workspaceId: string, request: $_model.GetAICenterStateRequest, headers: {
|
|
410
|
+
[key: string]: string;
|
|
411
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAICenterStateResponse>;
|
|
412
|
+
/**
|
|
413
|
+
* 获取AI中心状态
|
|
414
|
+
*
|
|
415
|
+
* @param request - GetAICenterStateRequest
|
|
416
|
+
* @returns GetAICenterStateResponse
|
|
417
|
+
*/
|
|
418
|
+
getAICenterState(workspaceId: string, request: $_model.GetAICenterStateRequest): Promise<$_model.GetAICenterStateResponse>;
|
|
383
419
|
/**
|
|
384
420
|
* Queries the number of CU-hours consumed by a queue during a specified cycle.
|
|
385
421
|
*
|
package/dist/client.js
CHANGED
|
@@ -61,6 +61,43 @@ class Client extends openapi_core_1.default {
|
|
|
61
61
|
}
|
|
62
62
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* 激活AI中心
|
|
66
|
+
*
|
|
67
|
+
* @param request - ActivateAICenterRequest
|
|
68
|
+
* @param headers - map
|
|
69
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
70
|
+
* @returns ActivateAICenterResponse
|
|
71
|
+
*/
|
|
72
|
+
async activateAICenterWithOptions(workspaceId, request, headers, runtime) {
|
|
73
|
+
request.validate();
|
|
74
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
75
|
+
headers: headers,
|
|
76
|
+
});
|
|
77
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
78
|
+
action: "ActivateAICenter",
|
|
79
|
+
version: "2023-08-08",
|
|
80
|
+
protocol: "HTTPS",
|
|
81
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/activateaicenter`,
|
|
82
|
+
method: "POST",
|
|
83
|
+
authType: "AK",
|
|
84
|
+
style: "ROA",
|
|
85
|
+
reqBodyType: "json",
|
|
86
|
+
bodyType: "json",
|
|
87
|
+
});
|
|
88
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ActivateAICenterResponse({}));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 激活AI中心
|
|
92
|
+
*
|
|
93
|
+
* @param request - ActivateAICenterRequest
|
|
94
|
+
* @returns ActivateAICenterResponse
|
|
95
|
+
*/
|
|
96
|
+
async activateAICenter(workspaceId, request) {
|
|
97
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
98
|
+
let headers = {};
|
|
99
|
+
return await this.activateAICenterWithOptions(workspaceId, request, headers, runtime);
|
|
100
|
+
}
|
|
64
101
|
/**
|
|
65
102
|
* Adds a RAM user or RAM role to a workspace as a member.
|
|
66
103
|
*
|
|
@@ -1284,6 +1321,43 @@ class Client extends openapi_core_1.default {
|
|
|
1284
1321
|
let headers = {};
|
|
1285
1322
|
return await this.generateTaskCodesWithOptions(bizId, request, headers, runtime);
|
|
1286
1323
|
}
|
|
1324
|
+
/**
|
|
1325
|
+
* 获取AI中心状态
|
|
1326
|
+
*
|
|
1327
|
+
* @param request - GetAICenterStateRequest
|
|
1328
|
+
* @param headers - map
|
|
1329
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1330
|
+
* @returns GetAICenterStateResponse
|
|
1331
|
+
*/
|
|
1332
|
+
async getAICenterStateWithOptions(workspaceId, request, headers, runtime) {
|
|
1333
|
+
request.validate();
|
|
1334
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1335
|
+
headers: headers,
|
|
1336
|
+
});
|
|
1337
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1338
|
+
action: "GetAICenterState",
|
|
1339
|
+
version: "2023-08-08",
|
|
1340
|
+
protocol: "HTTPS",
|
|
1341
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/aicenter`,
|
|
1342
|
+
method: "GET",
|
|
1343
|
+
authType: "AK",
|
|
1344
|
+
style: "ROA",
|
|
1345
|
+
reqBodyType: "json",
|
|
1346
|
+
bodyType: "json",
|
|
1347
|
+
});
|
|
1348
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAICenterStateResponse({}));
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* 获取AI中心状态
|
|
1352
|
+
*
|
|
1353
|
+
* @param request - GetAICenterStateRequest
|
|
1354
|
+
* @returns GetAICenterStateResponse
|
|
1355
|
+
*/
|
|
1356
|
+
async getAICenterState(workspaceId, request) {
|
|
1357
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1358
|
+
let headers = {};
|
|
1359
|
+
return await this.getAICenterStateWithOptions(workspaceId, request, headers, runtime);
|
|
1360
|
+
}
|
|
1287
1361
|
/**
|
|
1288
1362
|
* Queries the number of CU-hours consumed by a queue during a specified cycle.
|
|
1289
1363
|
*
|