@alicloud/rdsai20250507 3.1.0 → 3.2.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.
Files changed (29) hide show
  1. package/dist/client.d.ts +15 -0
  2. package/dist/client.js +47 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeModelOperatorResponseBody.d.ts +1 -0
  5. package/dist/models/DescribeModelOperatorResponseBody.js +2 -0
  6. package/dist/models/DescribeModelOperatorResponseBody.js.map +1 -1
  7. package/dist/models/UpdateMoquotaAlertThresholdRequest.d.ts +47 -0
  8. package/dist/models/UpdateMoquotaAlertThresholdRequest.js +84 -0
  9. package/dist/models/UpdateMoquotaAlertThresholdRequest.js.map +1 -0
  10. package/dist/models/UpdateMoquotaAlertThresholdResponse.d.ts +19 -0
  11. package/dist/models/UpdateMoquotaAlertThresholdResponse.js +69 -0
  12. package/dist/models/UpdateMoquotaAlertThresholdResponse.js.map +1 -0
  13. package/dist/models/UpdateMoquotaAlertThresholdResponseBody.d.ts +63 -0
  14. package/dist/models/UpdateMoquotaAlertThresholdResponseBody.js +92 -0
  15. package/dist/models/UpdateMoquotaAlertThresholdResponseBody.js.map +1 -0
  16. package/dist/models/UpdateMoquotaAlertThresholdShrinkRequest.d.ts +26 -0
  17. package/dist/models/UpdateMoquotaAlertThresholdShrinkRequest.js +60 -0
  18. package/dist/models/UpdateMoquotaAlertThresholdShrinkRequest.js.map +1 -0
  19. package/dist/models/model.d.ts +6 -0
  20. package/dist/models/model.js +17 -5
  21. package/dist/models/model.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/client.ts +52 -0
  24. package/src/models/DescribeModelOperatorResponseBody.ts +3 -0
  25. package/src/models/UpdateMoquotaAlertThresholdRequest.ts +77 -0
  26. package/src/models/UpdateMoquotaAlertThresholdResponse.ts +40 -0
  27. package/src/models/UpdateMoquotaAlertThresholdResponseBody.ts +101 -0
  28. package/src/models/UpdateMoquotaAlertThresholdShrinkRequest.ts +41 -0
  29. package/src/models/model.ts +6 -0
package/src/client.ts CHANGED
@@ -3642,6 +3642,58 @@ export default class Client extends OpenApi {
3642
3642
  return await this.updateCustomAgentWithOptions(request, runtime);
3643
3643
  }
3644
3644
 
3645
+ /**
3646
+ * 更新 API key 的告警百分比阈值
3647
+ *
3648
+ * @param tmpReq - UpdateMOQuotaAlertThresholdRequest
3649
+ * @param runtime - runtime options for this request RuntimeOptions
3650
+ * @returns UpdateMOQuotaAlertThresholdResponse
3651
+ */
3652
+ async updateMOQuotaAlertThresholdWithOptions(tmpReq: $_model.UpdateMOQuotaAlertThresholdRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMOQuotaAlertThresholdResponse> {
3653
+ tmpReq.validate();
3654
+ let request = new $_model.UpdateMOQuotaAlertThresholdShrinkRequest({ });
3655
+ OpenApiUtil.convert(tmpReq, request);
3656
+ if (!$dara.isNull(tmpReq.apikey)) {
3657
+ request.apikeyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.apikey, "Apikey", "json");
3658
+ }
3659
+
3660
+ let query = { };
3661
+ if (!$dara.isNull(request.apikeyShrink)) {
3662
+ query["Apikey"] = request.apikeyShrink;
3663
+ }
3664
+
3665
+ if (!$dara.isNull(request.instanceId)) {
3666
+ query["InstanceId"] = request.instanceId;
3667
+ }
3668
+
3669
+ let req = new $OpenApiUtil.OpenApiRequest({
3670
+ query: OpenApiUtil.query(query),
3671
+ });
3672
+ let params = new $OpenApiUtil.Params({
3673
+ action: "UpdateMOQuotaAlertThreshold",
3674
+ version: "2025-05-07",
3675
+ protocol: "HTTPS",
3676
+ pathname: "/",
3677
+ method: "POST",
3678
+ authType: "AK",
3679
+ style: "RPC",
3680
+ reqBodyType: "formData",
3681
+ bodyType: "json",
3682
+ });
3683
+ return $dara.cast<$_model.UpdateMOQuotaAlertThresholdResponse>(await this.callApi(params, req, runtime), new $_model.UpdateMOQuotaAlertThresholdResponse({}));
3684
+ }
3685
+
3686
+ /**
3687
+ * 更新 API key 的告警百分比阈值
3688
+ *
3689
+ * @param request - UpdateMOQuotaAlertThresholdRequest
3690
+ * @returns UpdateMOQuotaAlertThresholdResponse
3691
+ */
3692
+ async updateMOQuotaAlertThreshold(request: $_model.UpdateMOQuotaAlertThresholdRequest): Promise<$_model.UpdateMOQuotaAlertThresholdResponse> {
3693
+ let runtime = new $dara.RuntimeOptions({ });
3694
+ return await this.updateMOQuotaAlertThresholdWithOptions(request, runtime);
3695
+ }
3696
+
3645
3697
  /**
3646
3698
  * Updates the information about a specified skill.
3647
3699
  *
@@ -179,6 +179,7 @@ export class DescribeModelOperatorResponseBodyData extends $dara.Model {
179
179
  */
180
180
  instanceId?: string;
181
181
  keyUsageList?: DescribeModelOperatorResponseBodyDataKeyUsageList[];
182
+ prefixCacheEnabled?: boolean;
182
183
  /**
183
184
  * @example
184
185
  * 1772439028000
@@ -210,6 +211,7 @@ export class DescribeModelOperatorResponseBodyData extends $dara.Model {
210
211
  instanceClass: 'InstanceClass',
211
212
  instanceId: 'InstanceId',
212
213
  keyUsageList: 'KeyUsageList',
214
+ prefixCacheEnabled: 'PrefixCacheEnabled',
213
215
  startTime: 'StartTime',
214
216
  status: 'Status',
215
217
  totalQuota: 'TotalQuota',
@@ -228,6 +230,7 @@ export class DescribeModelOperatorResponseBodyData extends $dara.Model {
228
230
  instanceClass: 'string',
229
231
  instanceId: 'string',
230
232
  keyUsageList: { 'type': 'array', 'itemType': DescribeModelOperatorResponseBodyDataKeyUsageList },
233
+ prefixCacheEnabled: 'boolean',
231
234
  startTime: 'number',
232
235
  status: 'string',
233
236
  totalQuota: 'number',
@@ -0,0 +1,77 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateMOQuotaAlertThresholdRequestApikey extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * ApiKey
9
+ *
10
+ * @example
11
+ * sk-rds-*****
12
+ */
13
+ apikey?: string;
14
+ thresholdPercent?: number;
15
+ static names(): { [key: string]: string } {
16
+ return {
17
+ apikey: 'Apikey',
18
+ thresholdPercent: 'ThresholdPercent',
19
+ };
20
+ }
21
+
22
+ static types(): { [key: string]: any } {
23
+ return {
24
+ apikey: 'string',
25
+ thresholdPercent: 'number',
26
+ };
27
+ }
28
+
29
+ validate() {
30
+ super.validate();
31
+ }
32
+
33
+ constructor(map?: { [key: string]: any }) {
34
+ super(map);
35
+ }
36
+ }
37
+
38
+ export class UpdateMOQuotaAlertThresholdRequest extends $dara.Model {
39
+ /**
40
+ * @remarks
41
+ * This parameter is required.
42
+ */
43
+ apikey?: UpdateMOQuotaAlertThresholdRequestApikey[];
44
+ /**
45
+ * @remarks
46
+ * This parameter is required.
47
+ *
48
+ * @example
49
+ * rds_copilot***_public_cn-*********6
50
+ */
51
+ instanceId?: string;
52
+ static names(): { [key: string]: string } {
53
+ return {
54
+ apikey: 'Apikey',
55
+ instanceId: 'InstanceId',
56
+ };
57
+ }
58
+
59
+ static types(): { [key: string]: any } {
60
+ return {
61
+ apikey: { 'type': 'array', 'itemType': UpdateMOQuotaAlertThresholdRequestApikey },
62
+ instanceId: 'string',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ if(Array.isArray(this.apikey)) {
68
+ $dara.Model.validateArray(this.apikey);
69
+ }
70
+ super.validate();
71
+ }
72
+
73
+ constructor(map?: { [key: string]: any }) {
74
+ super(map);
75
+ }
76
+ }
77
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateMOQuotaAlertThresholdResponseBody } from "./UpdateMoquotaAlertThresholdResponseBody";
4
+
5
+
6
+ export class UpdateMOQuotaAlertThresholdResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateMOQuotaAlertThresholdResponseBody;
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: UpdateMOQuotaAlertThresholdResponseBody,
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,0 +1,101 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateMOQuotaAlertThresholdResponseBodyResults extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * API Key
9
+ *
10
+ * @example
11
+ * sk-rds-*****
12
+ */
13
+ apikey?: string;
14
+ /**
15
+ * @example
16
+ * rds_copilot***_public_cn-o*****1
17
+ */
18
+ instanceId?: string;
19
+ /**
20
+ * @example
21
+ * api-*****
22
+ */
23
+ keyName?: string;
24
+ /**
25
+ * @example
26
+ * system / custom
27
+ */
28
+ keyType?: string;
29
+ thresholdPercent?: number;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ apikey: 'Apikey',
33
+ instanceId: 'InstanceId',
34
+ keyName: 'KeyName',
35
+ keyType: 'KeyType',
36
+ thresholdPercent: 'ThresholdPercent',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ apikey: 'string',
43
+ instanceId: 'string',
44
+ keyName: 'string',
45
+ keyType: 'string',
46
+ thresholdPercent: 'number',
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ super.validate();
52
+ }
53
+
54
+ constructor(map?: { [key: string]: any }) {
55
+ super(map);
56
+ }
57
+ }
58
+
59
+ export class UpdateMOQuotaAlertThresholdResponseBody extends $dara.Model {
60
+ /**
61
+ * @remarks
62
+ * Id of the request
63
+ *
64
+ * @example
65
+ * FE9C65D7-930F-57A5-A207-8C396329****
66
+ */
67
+ requestId?: string;
68
+ results?: UpdateMOQuotaAlertThresholdResponseBodyResults[];
69
+ /**
70
+ * @example
71
+ * true
72
+ */
73
+ success?: boolean;
74
+ static names(): { [key: string]: string } {
75
+ return {
76
+ requestId: 'RequestId',
77
+ results: 'Results',
78
+ success: 'Success',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ requestId: 'string',
85
+ results: { 'type': 'array', 'itemType': UpdateMOQuotaAlertThresholdResponseBodyResults },
86
+ success: 'boolean',
87
+ };
88
+ }
89
+
90
+ validate() {
91
+ if(Array.isArray(this.results)) {
92
+ $dara.Model.validateArray(this.results);
93
+ }
94
+ super.validate();
95
+ }
96
+
97
+ constructor(map?: { [key: string]: any }) {
98
+ super(map);
99
+ }
100
+ }
101
+
@@ -0,0 +1,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateMOQuotaAlertThresholdShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ apikeyShrink?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * rds_copilot***_public_cn-*********6
17
+ */
18
+ instanceId?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ apikeyShrink: 'Apikey',
22
+ instanceId: 'InstanceId',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ apikeyShrink: 'string',
29
+ instanceId: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
@@ -55,6 +55,8 @@ export { UpdateApiKeyQuotaRequestKeys } from './UpdateApiKeyQuotaRequest';
55
55
  export { UpdateApiKeyQuotaResponseBodyDataCustomKeyList } from './UpdateApiKeyQuotaResponseBody';
56
56
  export { UpdateApiKeyQuotaResponseBodyData } from './UpdateApiKeyQuotaResponseBody';
57
57
  export { UpdateCustomAgentResponseBodySkills } from './UpdateCustomAgentResponseBody';
58
+ export { UpdateMOQuotaAlertThresholdRequestApikey } from './UpdateMoquotaAlertThresholdRequest';
59
+ export { UpdateMOQuotaAlertThresholdResponseBodyResults } from './UpdateMoquotaAlertThresholdResponseBody';
58
60
  export { ChatMessagesRequest } from './ChatMessagesRequest';
59
61
  export { ChatMessagesShrinkRequest } from './ChatMessagesShrinkRequest';
60
62
  export { ChatMessagesResponseBody } from './ChatMessagesResponseBody';
@@ -248,6 +250,10 @@ export { UpdateCustomAgentRequest } from './UpdateCustomAgentRequest';
248
250
  export { UpdateCustomAgentShrinkRequest } from './UpdateCustomAgentShrinkRequest';
249
251
  export { UpdateCustomAgentResponseBody } from './UpdateCustomAgentResponseBody';
250
252
  export { UpdateCustomAgentResponse } from './UpdateCustomAgentResponse';
253
+ export { UpdateMOQuotaAlertThresholdRequest } from './UpdateMoquotaAlertThresholdRequest';
254
+ export { UpdateMOQuotaAlertThresholdShrinkRequest } from './UpdateMoquotaAlertThresholdShrinkRequest';
255
+ export { UpdateMOQuotaAlertThresholdResponseBody } from './UpdateMoquotaAlertThresholdResponseBody';
256
+ export { UpdateMOQuotaAlertThresholdResponse } from './UpdateMoquotaAlertThresholdResponse';
251
257
  export { UpdateSkillRequest } from './UpdateSkillRequest';
252
258
  export { UpdateSkillShrinkRequest } from './UpdateSkillShrinkRequest';
253
259
  export { UpdateSkillResponseBody } from './UpdateSkillResponseBody';