@alicloud/agentcore20260804 1.0.0 → 1.1.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 +218 -2
- package/dist/client.js +487 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateManagedAgentRequest.d.ts +501 -0
- package/dist/models/CreateManagedAgentRequest.js +452 -0
- package/dist/models/CreateManagedAgentRequest.js.map +1 -0
- package/dist/models/CreateManagedAgentResponse.d.ts +19 -0
- package/dist/models/CreateManagedAgentResponse.js +69 -0
- package/dist/models/CreateManagedAgentResponse.js.map +1 -0
- package/dist/models/CreateManagedAgentResponseBody.d.ts +607 -0
- package/dist/models/CreateManagedAgentResponseBody.js +480 -0
- package/dist/models/CreateManagedAgentResponseBody.js.map +1 -0
- package/dist/models/CreateManagedAgentShrinkRequest.d.ts +26 -0
- package/dist/models/CreateManagedAgentShrinkRequest.js +60 -0
- package/dist/models/CreateManagedAgentShrinkRequest.js.map +1 -0
- package/dist/models/CreateWorkspaceRequest.d.ts +105 -0
- package/dist/models/CreateWorkspaceRequest.js +135 -0
- package/dist/models/CreateWorkspaceRequest.js.map +1 -0
- package/dist/models/CreateWorkspaceResponse.d.ts +19 -0
- package/dist/models/CreateWorkspaceResponse.js +69 -0
- package/dist/models/CreateWorkspaceResponse.js.map +1 -0
- package/dist/models/CreateWorkspaceResponseBody.d.ts +165 -0
- package/dist/models/CreateWorkspaceResponseBody.js +151 -0
- package/dist/models/CreateWorkspaceResponseBody.js.map +1 -0
- package/dist/models/CreateWorkspaceShrinkRequest.d.ts +26 -0
- package/dist/models/CreateWorkspaceShrinkRequest.js +60 -0
- package/dist/models/CreateWorkspaceShrinkRequest.js.map +1 -0
- package/dist/models/DeleteManagedAgentRequest.d.ts +13 -0
- package/dist/models/DeleteManagedAgentRequest.js +54 -0
- package/dist/models/DeleteManagedAgentRequest.js.map +1 -0
- package/dist/models/DeleteManagedAgentResponse.d.ts +19 -0
- package/dist/models/DeleteManagedAgentResponse.js +69 -0
- package/dist/models/DeleteManagedAgentResponse.js.map +1 -0
- package/dist/models/DeleteManagedAgentResponseBody.d.ts +166 -0
- package/dist/models/DeleteManagedAgentResponseBody.js +112 -0
- package/dist/models/DeleteManagedAgentResponseBody.js.map +1 -0
- package/dist/models/DeleteWorkspaceRequest.d.ts +13 -0
- package/dist/models/DeleteWorkspaceRequest.js +54 -0
- package/dist/models/DeleteWorkspaceRequest.js.map +1 -0
- package/dist/models/DeleteWorkspaceResponse.d.ts +19 -0
- package/dist/models/DeleteWorkspaceResponse.js +69 -0
- package/dist/models/DeleteWorkspaceResponse.js.map +1 -0
- package/dist/models/DeleteWorkspaceResponseBody.d.ts +78 -0
- package/dist/models/DeleteWorkspaceResponseBody.js +90 -0
- package/dist/models/DeleteWorkspaceResponseBody.js.map +1 -0
- package/dist/models/GetManagedAgentRequest.d.ts +13 -0
- package/dist/models/GetManagedAgentRequest.js +54 -0
- package/dist/models/GetManagedAgentRequest.js.map +1 -0
- package/dist/models/GetManagedAgentResponse.d.ts +19 -0
- package/dist/models/GetManagedAgentResponse.js +69 -0
- package/dist/models/GetManagedAgentResponse.js.map +1 -0
- package/dist/models/GetManagedAgentResponseBody.d.ts +607 -0
- package/dist/models/GetManagedAgentResponseBody.js +480 -0
- package/dist/models/GetManagedAgentResponseBody.js.map +1 -0
- package/dist/models/GetWorkspaceRequest.d.ts +13 -0
- package/dist/models/GetWorkspaceRequest.js +54 -0
- package/dist/models/GetWorkspaceRequest.js.map +1 -0
- package/dist/models/GetWorkspaceResponse.d.ts +19 -0
- package/dist/models/GetWorkspaceResponse.js +69 -0
- package/dist/models/GetWorkspaceResponse.js.map +1 -0
- package/dist/models/GetWorkspaceResponseBody.d.ts +181 -0
- package/dist/models/GetWorkspaceResponseBody.js +155 -0
- package/dist/models/GetWorkspaceResponseBody.js.map +1 -0
- package/dist/models/ListManagedAgentsRequest.d.ts +29 -0
- package/dist/models/ListManagedAgentsRequest.js +60 -0
- package/dist/models/ListManagedAgentsRequest.js.map +1 -0
- package/dist/models/ListManagedAgentsResponse.d.ts +19 -0
- package/dist/models/ListManagedAgentsResponse.js +69 -0
- package/dist/models/ListManagedAgentsResponse.js.map +1 -0
- package/dist/models/ListManagedAgentsResponseBody.d.ts +193 -0
- package/dist/models/ListManagedAgentsResponseBody.js +118 -0
- package/dist/models/ListManagedAgentsResponseBody.js.map +1 -0
- package/dist/models/ListWorkspacesRequest.d.ts +37 -0
- package/dist/models/ListWorkspacesRequest.js +62 -0
- package/dist/models/ListWorkspacesRequest.js.map +1 -0
- package/dist/models/ListWorkspacesResponse.d.ts +19 -0
- package/dist/models/ListWorkspacesResponse.js +69 -0
- package/dist/models/ListWorkspacesResponse.js.map +1 -0
- package/dist/models/ListWorkspacesResponseBody.d.ts +201 -0
- package/dist/models/ListWorkspacesResponseBody.js +159 -0
- package/dist/models/ListWorkspacesResponseBody.js.map +1 -0
- package/dist/models/UpdateManagedAgentRequest.d.ts +495 -0
- package/dist/models/UpdateManagedAgentRequest.js +452 -0
- package/dist/models/UpdateManagedAgentRequest.js.map +1 -0
- package/dist/models/UpdateManagedAgentResponse.d.ts +19 -0
- package/dist/models/UpdateManagedAgentResponse.js +69 -0
- package/dist/models/UpdateManagedAgentResponse.js.map +1 -0
- package/dist/models/UpdateManagedAgentResponseBody.d.ts +607 -0
- package/dist/models/UpdateManagedAgentResponseBody.js +480 -0
- package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -0
- package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +26 -0
- package/dist/models/UpdateManagedAgentShrinkRequest.js +60 -0
- package/dist/models/UpdateManagedAgentShrinkRequest.js.map +1 -0
- package/dist/models/UpdateModelRequest.d.ts +9 -0
- package/dist/models/UpdateModelRequest.js.map +1 -1
- package/dist/models/UpdateModelResponseBody.d.ts +83 -0
- package/dist/models/UpdateModelResponseBody.js.map +1 -1
- package/dist/models/UpdateModelShrinkRequest.d.ts +7 -0
- package/dist/models/UpdateModelShrinkRequest.js.map +1 -1
- package/dist/models/UpdateWorkspaceRequest.d.ts +103 -0
- package/dist/models/UpdateWorkspaceRequest.js +135 -0
- package/dist/models/UpdateWorkspaceRequest.js.map +1 -0
- package/dist/models/UpdateWorkspaceResponse.d.ts +19 -0
- package/dist/models/UpdateWorkspaceResponse.js +69 -0
- package/dist/models/UpdateWorkspaceResponse.js.map +1 -0
- package/dist/models/UpdateWorkspaceResponseBody.d.ts +165 -0
- package/dist/models/UpdateWorkspaceResponseBody.js +151 -0
- package/dist/models/UpdateWorkspaceResponseBody.js.map +1 -0
- package/dist/models/UpdateWorkspaceShrinkRequest.d.ts +26 -0
- package/dist/models/UpdateWorkspaceShrinkRequest.js +60 -0
- package/dist/models/UpdateWorkspaceShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +135 -0
- package/dist/models/model.js +277 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +524 -2
- package/src/models/CreateManagedAgentRequest.ts +764 -0
- package/src/models/CreateManagedAgentResponse.ts +40 -0
- package/src/models/CreateManagedAgentResponseBody.ts +898 -0
- package/src/models/CreateManagedAgentShrinkRequest.ts +41 -0
- package/src/models/CreateWorkspaceRequest.ts +168 -0
- package/src/models/CreateWorkspaceResponse.ts +40 -0
- package/src/models/CreateWorkspaceResponseBody.ts +244 -0
- package/src/models/CreateWorkspaceShrinkRequest.ts +41 -0
- package/src/models/DeleteManagedAgentRequest.ts +24 -0
- package/src/models/DeleteManagedAgentResponse.ts +40 -0
- package/src/models/DeleteManagedAgentResponseBody.ts +224 -0
- package/src/models/DeleteWorkspaceRequest.ts +24 -0
- package/src/models/DeleteWorkspaceResponse.ts +40 -0
- package/src/models/DeleteWorkspaceResponseBody.ts +114 -0
- package/src/models/GetManagedAgentRequest.ts +24 -0
- package/src/models/GetManagedAgentResponse.ts +40 -0
- package/src/models/GetManagedAgentResponseBody.ts +898 -0
- package/src/models/GetWorkspaceRequest.ts +24 -0
- package/src/models/GetWorkspaceResponse.ts +40 -0
- package/src/models/GetWorkspaceResponseBody.ts +264 -0
- package/src/models/ListManagedAgentsRequest.ts +44 -0
- package/src/models/ListManagedAgentsResponse.ts +40 -0
- package/src/models/ListManagedAgentsResponseBody.ts +257 -0
- package/src/models/ListWorkspacesRequest.ts +54 -0
- package/src/models/ListWorkspacesResponse.ts +40 -0
- package/src/models/ListWorkspacesResponseBody.ts +288 -0
- package/src/models/UpdateManagedAgentRequest.ts +758 -0
- package/src/models/UpdateManagedAgentResponse.ts +40 -0
- package/src/models/UpdateManagedAgentResponseBody.ts +898 -0
- package/src/models/UpdateManagedAgentShrinkRequest.ts +41 -0
- package/src/models/UpdateModelRequest.ts +9 -0
- package/src/models/UpdateModelResponseBody.ts +83 -0
- package/src/models/UpdateModelShrinkRequest.ts +7 -0
- package/src/models/UpdateWorkspaceRequest.ts +166 -0
- package/src/models/UpdateWorkspaceResponse.ts +40 -0
- package/src/models/UpdateWorkspaceResponseBody.ts +244 -0
- package/src/models/UpdateWorkspaceShrinkRequest.ts +41 -0
- package/src/models/model.ts +135 -0
|
@@ -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 UpdateManagedAgentShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The request body.
|
|
9
|
+
*/
|
|
10
|
+
bodyShrink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The reserved idempotency token. The backend does not provide idempotency guarantees in the current version.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* client-token-1
|
|
17
|
+
*/
|
|
18
|
+
clientToken?: string;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
bodyShrink: 'body',
|
|
22
|
+
clientToken: 'clientToken',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
bodyShrink: 'string',
|
|
29
|
+
clientToken: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpdateModelRequestBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The model description. Maximum length: 255 characters.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
@@ -33,8 +35,15 @@ export class UpdateModelRequestBody extends $dara.Model {
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export class UpdateModelRequest extends $dara.Model {
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The request body.
|
|
41
|
+
*/
|
|
36
42
|
body?: UpdateModelRequestBody;
|
|
37
43
|
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The client token for idempotence. Not currently supported.
|
|
46
|
+
*
|
|
38
47
|
* @example
|
|
39
48
|
* client-token-1
|
|
40
49
|
*/
|
|
@@ -3,13 +3,45 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class UpdateModelResponseBodyDataCapabilities extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Indicates whether the model supports audio input or output.
|
|
9
|
+
*/
|
|
6
10
|
audio?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* Indicates whether the model supports document input.
|
|
14
|
+
*/
|
|
7
15
|
document?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* Indicates whether the model is able to invoke multiple tool calling requests in a single response.
|
|
19
|
+
*/
|
|
8
20
|
multiToolCall?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* Indicates whether the model supports reasoning capabilities.
|
|
24
|
+
*/
|
|
9
25
|
reasoning?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Indicates whether the model supports streaming tool calling.
|
|
29
|
+
*/
|
|
10
30
|
streamToolCall?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* Indicates whether the model supports tool calling.
|
|
34
|
+
*/
|
|
11
35
|
toolCall?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* Indicates whether the model supports video input.
|
|
39
|
+
*/
|
|
12
40
|
video?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @remarks
|
|
43
|
+
* Indicates whether the model supports image input.
|
|
44
|
+
*/
|
|
13
45
|
vision?: boolean;
|
|
14
46
|
static names(): { [key: string]: string } {
|
|
15
47
|
return {
|
|
@@ -47,48 +79,79 @@ export class UpdateModelResponseBodyDataCapabilities extends $dara.Model {
|
|
|
47
79
|
}
|
|
48
80
|
|
|
49
81
|
export class UpdateModelResponseBodyData extends $dara.Model {
|
|
82
|
+
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* The model capability configurations.
|
|
85
|
+
*/
|
|
50
86
|
capabilities?: UpdateModelResponseBodyDataCapabilities;
|
|
51
87
|
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* The model connection ID.
|
|
90
|
+
*
|
|
52
91
|
* @example
|
|
53
92
|
* mc-1
|
|
54
93
|
*/
|
|
55
94
|
connectionId?: string;
|
|
56
95
|
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* The model context window size, in tokens. Must be a positive integer.
|
|
98
|
+
*
|
|
57
99
|
* @example
|
|
58
100
|
* 128000
|
|
59
101
|
*/
|
|
60
102
|
contextSize?: number;
|
|
61
103
|
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* The time when the resource was created, in RFC 3339 UTC format.
|
|
106
|
+
*
|
|
62
107
|
* @example
|
|
63
108
|
* 2026-08-09T00:00:00Z
|
|
64
109
|
*/
|
|
65
110
|
createdAt?: string;
|
|
66
111
|
/**
|
|
112
|
+
* @remarks
|
|
113
|
+
* The model description. Maximum length: 255 characters.
|
|
114
|
+
*
|
|
67
115
|
* @example
|
|
68
116
|
* description
|
|
69
117
|
*/
|
|
70
118
|
description?: string;
|
|
71
119
|
/**
|
|
120
|
+
* @remarks
|
|
121
|
+
* The maximum number of output tokens supported per model generation.
|
|
122
|
+
*
|
|
72
123
|
* @example
|
|
73
124
|
* 131072
|
|
74
125
|
*/
|
|
75
126
|
maxTokens?: number;
|
|
76
127
|
/**
|
|
128
|
+
* @remarks
|
|
129
|
+
* The model ID.
|
|
130
|
+
*
|
|
77
131
|
* @example
|
|
78
132
|
* model-1
|
|
79
133
|
*/
|
|
80
134
|
modelId?: string;
|
|
81
135
|
/**
|
|
136
|
+
* @remarks
|
|
137
|
+
* The upstream model name.
|
|
138
|
+
*
|
|
82
139
|
* @example
|
|
83
140
|
* qwen-max
|
|
84
141
|
*/
|
|
85
142
|
modelName?: string;
|
|
86
143
|
/**
|
|
144
|
+
* @remarks
|
|
145
|
+
* The time when the resource was last updated, in RFC 3339 UTC format.
|
|
146
|
+
*
|
|
87
147
|
* @example
|
|
88
148
|
* 2026-08-09T00:00:00Z
|
|
89
149
|
*/
|
|
90
150
|
updatedAt?: string;
|
|
91
151
|
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* The workspace ID.
|
|
154
|
+
*
|
|
92
155
|
* @example
|
|
93
156
|
* ws-1
|
|
94
157
|
*/
|
|
@@ -137,26 +200,46 @@ export class UpdateModelResponseBodyData extends $dara.Model {
|
|
|
137
200
|
|
|
138
201
|
export class UpdateModelResponseBody extends $dara.Model {
|
|
139
202
|
/**
|
|
203
|
+
* @remarks
|
|
204
|
+
* The business status code. The value SUCCESS indicates success.
|
|
205
|
+
*
|
|
140
206
|
* @example
|
|
141
207
|
* SUCCESS
|
|
142
208
|
*/
|
|
143
209
|
code?: string;
|
|
210
|
+
/**
|
|
211
|
+
* @remarks
|
|
212
|
+
* The updated model information.
|
|
213
|
+
*/
|
|
144
214
|
data?: UpdateModelResponseBodyData;
|
|
145
215
|
/**
|
|
216
|
+
* @remarks
|
|
217
|
+
* The HTTP status code. The value 200 indicates success.
|
|
218
|
+
*
|
|
146
219
|
* @example
|
|
147
220
|
* 200
|
|
148
221
|
*/
|
|
149
222
|
httpStatusCode?: number;
|
|
150
223
|
/**
|
|
224
|
+
* @remarks
|
|
225
|
+
* The message of the request processing result.
|
|
226
|
+
*
|
|
151
227
|
* @example
|
|
152
228
|
* success
|
|
153
229
|
*/
|
|
154
230
|
message?: string;
|
|
155
231
|
/**
|
|
232
|
+
* @remarks
|
|
233
|
+
* The request ID.
|
|
234
|
+
*
|
|
156
235
|
* @example
|
|
157
236
|
* request-1
|
|
158
237
|
*/
|
|
159
238
|
requestId?: string;
|
|
239
|
+
/**
|
|
240
|
+
* @remarks
|
|
241
|
+
* Indicates whether the request was successful.
|
|
242
|
+
*/
|
|
160
243
|
success?: boolean;
|
|
161
244
|
static names(): { [key: string]: string } {
|
|
162
245
|
return {
|
|
@@ -3,8 +3,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class UpdateModelShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The request body.
|
|
9
|
+
*/
|
|
6
10
|
bodyShrink?: string;
|
|
7
11
|
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The client token for idempotence. Not currently supported.
|
|
14
|
+
*
|
|
8
15
|
* @example
|
|
9
16
|
* client-token-1
|
|
10
17
|
*/
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateWorkspaceRequestBodyNetworkConfigurationVpc extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to enable VPC networking.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* true
|
|
12
|
+
*/
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The list of vSwitch IDs. When VPC networking is enabled, at least one vSwitch must be included, and all vSwitches must belong to the VPC specified by VpcId.
|
|
17
|
+
*/
|
|
18
|
+
vSwitchIds?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The ID of the user VPC.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* vpc-bp1234567890
|
|
25
|
+
*/
|
|
26
|
+
vpcId?: string;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
enabled: 'enabled',
|
|
30
|
+
vSwitchIds: 'vSwitchIds',
|
|
31
|
+
vpcId: 'vpcId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
enabled: 'boolean',
|
|
38
|
+
vSwitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
39
|
+
vpcId: 'string',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(Array.isArray(this.vSwitchIds)) {
|
|
45
|
+
$dara.Model.validateArray(this.vSwitchIds);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class UpdateWorkspaceRequestBodyNetworkConfiguration extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The user VPC network configuration.
|
|
59
|
+
*
|
|
60
|
+
* This parameter is required.
|
|
61
|
+
*/
|
|
62
|
+
vpc?: UpdateWorkspaceRequestBodyNetworkConfigurationVpc;
|
|
63
|
+
static names(): { [key: string]: string } {
|
|
64
|
+
return {
|
|
65
|
+
vpc: 'vpc',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static types(): { [key: string]: any } {
|
|
70
|
+
return {
|
|
71
|
+
vpc: UpdateWorkspaceRequestBodyNetworkConfigurationVpc,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
validate() {
|
|
76
|
+
if(this.vpc && typeof (this.vpc as any).validate === 'function') {
|
|
77
|
+
(this.vpc as any).validate();
|
|
78
|
+
}
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class UpdateWorkspaceRequestBody extends $dara.Model {
|
|
88
|
+
/**
|
|
89
|
+
* @remarks
|
|
90
|
+
* The updated workspace name.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* production-agents-v2
|
|
94
|
+
*/
|
|
95
|
+
name?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @remarks
|
|
98
|
+
* The updated workspace network configuration.
|
|
99
|
+
*/
|
|
100
|
+
networkConfiguration?: UpdateWorkspaceRequestBodyNetworkConfiguration;
|
|
101
|
+
static names(): { [key: string]: string } {
|
|
102
|
+
return {
|
|
103
|
+
name: 'name',
|
|
104
|
+
networkConfiguration: 'networkConfiguration',
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static types(): { [key: string]: any } {
|
|
109
|
+
return {
|
|
110
|
+
name: 'string',
|
|
111
|
+
networkConfiguration: UpdateWorkspaceRequestBodyNetworkConfiguration,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
validate() {
|
|
116
|
+
if(this.networkConfiguration && typeof (this.networkConfiguration as any).validate === 'function') {
|
|
117
|
+
(this.networkConfiguration as any).validate();
|
|
118
|
+
}
|
|
119
|
+
super.validate();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
constructor(map?: { [key: string]: any }) {
|
|
123
|
+
super(map);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export class UpdateWorkspaceRequest extends $dara.Model {
|
|
128
|
+
/**
|
|
129
|
+
* @remarks
|
|
130
|
+
* The request body for updating a workspace.
|
|
131
|
+
*/
|
|
132
|
+
body?: UpdateWorkspaceRequestBody;
|
|
133
|
+
/**
|
|
134
|
+
* @remarks
|
|
135
|
+
* The client idempotency token.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* workspace-update-20260805-001
|
|
139
|
+
*/
|
|
140
|
+
clientToken?: string;
|
|
141
|
+
static names(): { [key: string]: string } {
|
|
142
|
+
return {
|
|
143
|
+
body: 'body',
|
|
144
|
+
clientToken: 'clientToken',
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static types(): { [key: string]: any } {
|
|
149
|
+
return {
|
|
150
|
+
body: UpdateWorkspaceRequestBody,
|
|
151
|
+
clientToken: 'string',
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
validate() {
|
|
156
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
157
|
+
(this.body as any).validate();
|
|
158
|
+
}
|
|
159
|
+
super.validate();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
constructor(map?: { [key: string]: any }) {
|
|
163
|
+
super(map);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { UpdateWorkspaceResponseBody } from "./UpdateWorkspaceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class UpdateWorkspaceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: UpdateWorkspaceResponseBody;
|
|
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: UpdateWorkspaceResponseBody,
|
|
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,244 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateWorkspaceResponseBodyDataNetworkConfigurationVpc extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to enable VPC networking.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* true
|
|
12
|
+
*/
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The list of vSwitch IDs.
|
|
17
|
+
*/
|
|
18
|
+
vSwitchIds?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The ID of the user VPC.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* vpc-bp1234567890
|
|
25
|
+
*/
|
|
26
|
+
vpcId?: string;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
enabled: 'enabled',
|
|
30
|
+
vSwitchIds: 'vSwitchIds',
|
|
31
|
+
vpcId: 'vpcId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
enabled: 'boolean',
|
|
38
|
+
vSwitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
39
|
+
vpcId: 'string',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(Array.isArray(this.vSwitchIds)) {
|
|
45
|
+
$dara.Model.validateArray(this.vSwitchIds);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class UpdateWorkspaceResponseBodyDataNetworkConfiguration extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The user VPC network configuration.
|
|
59
|
+
*/
|
|
60
|
+
vpc?: UpdateWorkspaceResponseBodyDataNetworkConfigurationVpc;
|
|
61
|
+
static names(): { [key: string]: string } {
|
|
62
|
+
return {
|
|
63
|
+
vpc: 'vpc',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
vpc: UpdateWorkspaceResponseBodyDataNetworkConfigurationVpc,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
validate() {
|
|
74
|
+
if(this.vpc && typeof (this.vpc as any).validate === 'function') {
|
|
75
|
+
(this.vpc as any).validate();
|
|
76
|
+
}
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class UpdateWorkspaceResponseBodyData extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The workspace name.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* production-agents-v2
|
|
92
|
+
*/
|
|
93
|
+
name?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The workspace network configuration.
|
|
97
|
+
*/
|
|
98
|
+
networkConfiguration?: UpdateWorkspaceResponseBodyDataNetworkConfiguration;
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* The region ID of the workspace.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* cn-hangzhou
|
|
105
|
+
*/
|
|
106
|
+
regionId?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* The workspace status. Valid values: Initializing, Initialized, Deleting, Deleted.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* Initialized
|
|
113
|
+
*/
|
|
114
|
+
status?: string;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The ID of the tenant to which the workspace belongs.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* tenant-123456
|
|
121
|
+
*/
|
|
122
|
+
tenantId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* The workspace ID.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ws-123456
|
|
129
|
+
*/
|
|
130
|
+
workspaceId?: string;
|
|
131
|
+
static names(): { [key: string]: string } {
|
|
132
|
+
return {
|
|
133
|
+
name: 'name',
|
|
134
|
+
networkConfiguration: 'networkConfiguration',
|
|
135
|
+
regionId: 'regionId',
|
|
136
|
+
status: 'status',
|
|
137
|
+
tenantId: 'tenantId',
|
|
138
|
+
workspaceId: 'workspaceId',
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
static types(): { [key: string]: any } {
|
|
143
|
+
return {
|
|
144
|
+
name: 'string',
|
|
145
|
+
networkConfiguration: UpdateWorkspaceResponseBodyDataNetworkConfiguration,
|
|
146
|
+
regionId: 'string',
|
|
147
|
+
status: 'string',
|
|
148
|
+
tenantId: 'string',
|
|
149
|
+
workspaceId: 'string',
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
validate() {
|
|
154
|
+
if(this.networkConfiguration && typeof (this.networkConfiguration as any).validate === 'function') {
|
|
155
|
+
(this.networkConfiguration as any).validate();
|
|
156
|
+
}
|
|
157
|
+
super.validate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
constructor(map?: { [key: string]: any }) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export class UpdateWorkspaceResponseBody extends $dara.Model {
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* The business status code.
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* SUCCESS
|
|
172
|
+
*/
|
|
173
|
+
code?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @remarks
|
|
176
|
+
* The details of the updated workspace.
|
|
177
|
+
*/
|
|
178
|
+
data?: UpdateWorkspaceResponseBodyData;
|
|
179
|
+
/**
|
|
180
|
+
* @remarks
|
|
181
|
+
* The HTTP status code.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* 200
|
|
185
|
+
*/
|
|
186
|
+
httpStatusCode?: number;
|
|
187
|
+
/**
|
|
188
|
+
* @remarks
|
|
189
|
+
* The response message.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* success
|
|
193
|
+
*/
|
|
194
|
+
message?: string;
|
|
195
|
+
/**
|
|
196
|
+
* @remarks
|
|
197
|
+
* The request ID.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* request-123456
|
|
201
|
+
*/
|
|
202
|
+
requestId?: string;
|
|
203
|
+
/**
|
|
204
|
+
* @remarks
|
|
205
|
+
* Indicates whether the request was successful.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* true
|
|
209
|
+
*/
|
|
210
|
+
success?: boolean;
|
|
211
|
+
static names(): { [key: string]: string } {
|
|
212
|
+
return {
|
|
213
|
+
code: 'code',
|
|
214
|
+
data: 'data',
|
|
215
|
+
httpStatusCode: 'httpStatusCode',
|
|
216
|
+
message: 'message',
|
|
217
|
+
requestId: 'requestId',
|
|
218
|
+
success: 'success',
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
static types(): { [key: string]: any } {
|
|
223
|
+
return {
|
|
224
|
+
code: 'string',
|
|
225
|
+
data: UpdateWorkspaceResponseBodyData,
|
|
226
|
+
httpStatusCode: 'number',
|
|
227
|
+
message: 'string',
|
|
228
|
+
requestId: 'string',
|
|
229
|
+
success: 'boolean',
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
validate() {
|
|
234
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
235
|
+
(this.data as any).validate();
|
|
236
|
+
}
|
|
237
|
+
super.validate();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
constructor(map?: { [key: string]: any }) {
|
|
241
|
+
super(map);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|