@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
package/src/client.ts
CHANGED
|
@@ -194,6 +194,63 @@ export default class Client extends OpenApi {
|
|
|
194
194
|
return await this.createIdentityProviderWithOptions(workspaceId, request, headers, runtime);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Creates a managed agent in a specified workspace.
|
|
199
|
+
*
|
|
200
|
+
* @param tmpReq - CreateManagedAgentRequest
|
|
201
|
+
* @param headers - map
|
|
202
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
203
|
+
* @returns CreateManagedAgentResponse
|
|
204
|
+
*/
|
|
205
|
+
async createManagedAgentWithOptions(workspaceId: string, tmpReq: $_model.CreateManagedAgentRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateManagedAgentResponse> {
|
|
206
|
+
tmpReq.validate();
|
|
207
|
+
let request = new $_model.CreateManagedAgentShrinkRequest({ });
|
|
208
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
209
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
210
|
+
request.bodyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
let query : {[key: string ]: any} = { };
|
|
214
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
215
|
+
query["clientToken"] = request.clientToken;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
let body : {[key: string ]: any} = { };
|
|
219
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
220
|
+
body["body"] = request.bodyShrink;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
224
|
+
headers: headers,
|
|
225
|
+
query: OpenApiUtil.query(query),
|
|
226
|
+
body: OpenApiUtil.parseToMap(body),
|
|
227
|
+
});
|
|
228
|
+
let params = new $OpenApiUtil.Params({
|
|
229
|
+
action: "CreateManagedAgent",
|
|
230
|
+
version: "2026-08-04",
|
|
231
|
+
protocol: "HTTPS",
|
|
232
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/managed-agents`,
|
|
233
|
+
method: "POST",
|
|
234
|
+
authType: "AK",
|
|
235
|
+
style: "ROA",
|
|
236
|
+
reqBodyType: "formData",
|
|
237
|
+
bodyType: "json",
|
|
238
|
+
});
|
|
239
|
+
return $dara.cast<$_model.CreateManagedAgentResponse>(await this.callApi(params, req, runtime), new $_model.CreateManagedAgentResponse({}));
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Creates a managed agent in a specified workspace.
|
|
244
|
+
*
|
|
245
|
+
* @param request - CreateManagedAgentRequest
|
|
246
|
+
* @returns CreateManagedAgentResponse
|
|
247
|
+
*/
|
|
248
|
+
async createManagedAgent(workspaceId: string, request: $_model.CreateManagedAgentRequest): Promise<$_model.CreateManagedAgentResponse> {
|
|
249
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
250
|
+
let headers : {[key: string ]: string} = { };
|
|
251
|
+
return await this.createManagedAgentWithOptions(workspaceId, request, headers, runtime);
|
|
252
|
+
}
|
|
253
|
+
|
|
197
254
|
/**
|
|
198
255
|
* Creates a model configuration under a specified model connection in a workspace.
|
|
199
256
|
*
|
|
@@ -422,6 +479,69 @@ export default class Client extends OpenApi {
|
|
|
422
479
|
return await this.createUserWithOptions(workspaceId, request, headers, runtime);
|
|
423
480
|
}
|
|
424
481
|
|
|
482
|
+
/**
|
|
483
|
+
* Creates an AgentCore workspace control plane record. The server completes the state transition from Initializing to Initialized within the same transaction.
|
|
484
|
+
*
|
|
485
|
+
* @remarks
|
|
486
|
+
* ## Operation description\\nCreates an AgentCore workspace control plane record. The server completes the state transition from `Initializing` to `Initialized` within the same transaction. The network configuration uses `Enabled` to specify whether to enable VPC networking. When enabled, you must provide `VpcId` and at least one `VSwitchIds`.\\n.
|
|
487
|
+
*
|
|
488
|
+
* @param tmpReq - CreateWorkspaceRequest
|
|
489
|
+
* @param headers - map
|
|
490
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
491
|
+
* @returns CreateWorkspaceResponse
|
|
492
|
+
*/
|
|
493
|
+
async createWorkspaceWithOptions(tmpReq: $_model.CreateWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateWorkspaceResponse> {
|
|
494
|
+
tmpReq.validate();
|
|
495
|
+
let request = new $_model.CreateWorkspaceShrinkRequest({ });
|
|
496
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
497
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
498
|
+
request.bodyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
let query : {[key: string ]: any} = { };
|
|
502
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
503
|
+
query["clientToken"] = request.clientToken;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
let body : {[key: string ]: any} = { };
|
|
507
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
508
|
+
body["body"] = request.bodyShrink;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
512
|
+
headers: headers,
|
|
513
|
+
query: OpenApiUtil.query(query),
|
|
514
|
+
body: OpenApiUtil.parseToMap(body),
|
|
515
|
+
});
|
|
516
|
+
let params = new $OpenApiUtil.Params({
|
|
517
|
+
action: "CreateWorkspace",
|
|
518
|
+
version: "2026-08-04",
|
|
519
|
+
protocol: "HTTPS",
|
|
520
|
+
pathname: `/workspaces`,
|
|
521
|
+
method: "POST",
|
|
522
|
+
authType: "AK",
|
|
523
|
+
style: "ROA",
|
|
524
|
+
reqBodyType: "formData",
|
|
525
|
+
bodyType: "json",
|
|
526
|
+
});
|
|
527
|
+
return $dara.cast<$_model.CreateWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.CreateWorkspaceResponse({}));
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Creates an AgentCore workspace control plane record. The server completes the state transition from Initializing to Initialized within the same transaction.
|
|
532
|
+
*
|
|
533
|
+
* @remarks
|
|
534
|
+
* ## Operation description\\nCreates an AgentCore workspace control plane record. The server completes the state transition from `Initializing` to `Initialized` within the same transaction. The network configuration uses `Enabled` to specify whether to enable VPC networking. When enabled, you must provide `VpcId` and at least one `VSwitchIds`.\\n.
|
|
535
|
+
*
|
|
536
|
+
* @param request - CreateWorkspaceRequest
|
|
537
|
+
* @returns CreateWorkspaceResponse
|
|
538
|
+
*/
|
|
539
|
+
async createWorkspace(request: $_model.CreateWorkspaceRequest): Promise<$_model.CreateWorkspaceResponse> {
|
|
540
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
541
|
+
let headers : {[key: string ]: string} = { };
|
|
542
|
+
return await this.createWorkspaceWithOptions(request, headers, runtime);
|
|
543
|
+
}
|
|
544
|
+
|
|
425
545
|
/**
|
|
426
546
|
* 调试模型
|
|
427
547
|
*
|
|
@@ -563,6 +683,45 @@ export default class Client extends OpenApi {
|
|
|
563
683
|
return await this.deleteIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
564
684
|
}
|
|
565
685
|
|
|
686
|
+
/**
|
|
687
|
+
* Deletes a specified managed agent.
|
|
688
|
+
*
|
|
689
|
+
* @param request - DeleteManagedAgentRequest
|
|
690
|
+
* @param headers - map
|
|
691
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
692
|
+
* @returns DeleteManagedAgentResponse
|
|
693
|
+
*/
|
|
694
|
+
async deleteManagedAgentWithOptions(workspaceId: string, agentId: string, request: $_model.DeleteManagedAgentRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteManagedAgentResponse> {
|
|
695
|
+
request.validate();
|
|
696
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
697
|
+
headers: headers,
|
|
698
|
+
});
|
|
699
|
+
let params = new $OpenApiUtil.Params({
|
|
700
|
+
action: "DeleteManagedAgent",
|
|
701
|
+
version: "2026-08-04",
|
|
702
|
+
protocol: "HTTPS",
|
|
703
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/managed-agents/${$dara.URL.percentEncode(agentId)}`,
|
|
704
|
+
method: "DELETE",
|
|
705
|
+
authType: "AK",
|
|
706
|
+
style: "ROA",
|
|
707
|
+
reqBodyType: "json",
|
|
708
|
+
bodyType: "json",
|
|
709
|
+
});
|
|
710
|
+
return $dara.cast<$_model.DeleteManagedAgentResponse>(await this.callApi(params, req, runtime), new $_model.DeleteManagedAgentResponse({}));
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Deletes a specified managed agent.
|
|
715
|
+
*
|
|
716
|
+
* @param request - DeleteManagedAgentRequest
|
|
717
|
+
* @returns DeleteManagedAgentResponse
|
|
718
|
+
*/
|
|
719
|
+
async deleteManagedAgent(workspaceId: string, agentId: string, request: $_model.DeleteManagedAgentRequest): Promise<$_model.DeleteManagedAgentResponse> {
|
|
720
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
721
|
+
let headers : {[key: string ]: string} = { };
|
|
722
|
+
return await this.deleteManagedAgentWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
723
|
+
}
|
|
724
|
+
|
|
566
725
|
/**
|
|
567
726
|
* 删除模型
|
|
568
727
|
*
|
|
@@ -743,6 +902,51 @@ export default class Client extends OpenApi {
|
|
|
743
902
|
return await this.deleteUserWithOptions(workspaceId, agentCoreUserId, request, headers, runtime);
|
|
744
903
|
}
|
|
745
904
|
|
|
905
|
+
/**
|
|
906
|
+
* Deletes the control plane record of a specified workspace. The server completes the state transition from Deleting to Deleted within the same transaction. When you repeatedly delete a workspace that is in the Deleting or Deleted state, the server handles the request with idempotence semantics.
|
|
907
|
+
*
|
|
908
|
+
* @remarks
|
|
909
|
+
* ## Request description\\nDeletes the control plane record of a specified workspace. The server completes the state transition from `Deleting` to `Deleted` within the same transaction. When you repeatedly delete a workspace that is in the `Deleting` or `Deleted` state, the server handles the request with idempotence semantics.\\n.
|
|
910
|
+
*
|
|
911
|
+
* @param request - DeleteWorkspaceRequest
|
|
912
|
+
* @param headers - map
|
|
913
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
914
|
+
* @returns DeleteWorkspaceResponse
|
|
915
|
+
*/
|
|
916
|
+
async deleteWorkspaceWithOptions(workspaceId: string, request: $_model.DeleteWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteWorkspaceResponse> {
|
|
917
|
+
request.validate();
|
|
918
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
919
|
+
headers: headers,
|
|
920
|
+
});
|
|
921
|
+
let params = new $OpenApiUtil.Params({
|
|
922
|
+
action: "DeleteWorkspace",
|
|
923
|
+
version: "2026-08-04",
|
|
924
|
+
protocol: "HTTPS",
|
|
925
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}`,
|
|
926
|
+
method: "DELETE",
|
|
927
|
+
authType: "AK",
|
|
928
|
+
style: "ROA",
|
|
929
|
+
reqBodyType: "json",
|
|
930
|
+
bodyType: "json",
|
|
931
|
+
});
|
|
932
|
+
return $dara.cast<$_model.DeleteWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteWorkspaceResponse({}));
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Deletes the control plane record of a specified workspace. The server completes the state transition from Deleting to Deleted within the same transaction. When you repeatedly delete a workspace that is in the Deleting or Deleted state, the server handles the request with idempotence semantics.
|
|
937
|
+
*
|
|
938
|
+
* @remarks
|
|
939
|
+
* ## Request description\\nDeletes the control plane record of a specified workspace. The server completes the state transition from `Deleting` to `Deleted` within the same transaction. When you repeatedly delete a workspace that is in the `Deleting` or `Deleted` state, the server handles the request with idempotence semantics.\\n.
|
|
940
|
+
*
|
|
941
|
+
* @param request - DeleteWorkspaceRequest
|
|
942
|
+
* @returns DeleteWorkspaceResponse
|
|
943
|
+
*/
|
|
944
|
+
async deleteWorkspace(workspaceId: string, request: $_model.DeleteWorkspaceRequest): Promise<$_model.DeleteWorkspaceResponse> {
|
|
945
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
946
|
+
let headers : {[key: string ]: string} = { };
|
|
947
|
+
return await this.deleteWorkspaceWithOptions(workspaceId, request, headers, runtime);
|
|
948
|
+
}
|
|
949
|
+
|
|
746
950
|
/**
|
|
747
951
|
* 查询凭证
|
|
748
952
|
*
|
|
@@ -821,6 +1025,45 @@ export default class Client extends OpenApi {
|
|
|
821
1025
|
return await this.getIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
822
1026
|
}
|
|
823
1027
|
|
|
1028
|
+
/**
|
|
1029
|
+
* Queries the details of a specified managed agent.
|
|
1030
|
+
*
|
|
1031
|
+
* @param request - GetManagedAgentRequest
|
|
1032
|
+
* @param headers - map
|
|
1033
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1034
|
+
* @returns GetManagedAgentResponse
|
|
1035
|
+
*/
|
|
1036
|
+
async getManagedAgentWithOptions(workspaceId: string, agentId: string, request: $_model.GetManagedAgentRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetManagedAgentResponse> {
|
|
1037
|
+
request.validate();
|
|
1038
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1039
|
+
headers: headers,
|
|
1040
|
+
});
|
|
1041
|
+
let params = new $OpenApiUtil.Params({
|
|
1042
|
+
action: "GetManagedAgent",
|
|
1043
|
+
version: "2026-08-04",
|
|
1044
|
+
protocol: "HTTPS",
|
|
1045
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/managed-agents/${$dara.URL.percentEncode(agentId)}`,
|
|
1046
|
+
method: "GET",
|
|
1047
|
+
authType: "AK",
|
|
1048
|
+
style: "ROA",
|
|
1049
|
+
reqBodyType: "json",
|
|
1050
|
+
bodyType: "json",
|
|
1051
|
+
});
|
|
1052
|
+
return $dara.cast<$_model.GetManagedAgentResponse>(await this.callApi(params, req, runtime), new $_model.GetManagedAgentResponse({}));
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Queries the details of a specified managed agent.
|
|
1057
|
+
*
|
|
1058
|
+
* @param request - GetManagedAgentRequest
|
|
1059
|
+
* @returns GetManagedAgentResponse
|
|
1060
|
+
*/
|
|
1061
|
+
async getManagedAgent(workspaceId: string, agentId: string, request: $_model.GetManagedAgentRequest): Promise<$_model.GetManagedAgentResponse> {
|
|
1062
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1063
|
+
let headers : {[key: string ]: string} = { };
|
|
1064
|
+
return await this.getManagedAgentWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
824
1067
|
/**
|
|
825
1068
|
* Queries the detailed configuration and region of a model in a specified workspace.
|
|
826
1069
|
*
|
|
@@ -977,6 +1220,51 @@ export default class Client extends OpenApi {
|
|
|
977
1220
|
return await this.getUserWithOptions(workspaceId, agentCoreUserId, request, headers, runtime);
|
|
978
1221
|
}
|
|
979
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* Queries workspace details by workspace ID, including lifecycle status, CMS Workspace, AIRegistry Namespace, and current network policy.
|
|
1225
|
+
*
|
|
1226
|
+
* @remarks
|
|
1227
|
+
* ## Operation description\\nQueries workspace details by workspace ID, including lifecycle status, CMS Workspace, AIRegistry Namespace, and current network policy.\\n.
|
|
1228
|
+
*
|
|
1229
|
+
* @param request - GetWorkspaceRequest
|
|
1230
|
+
* @param headers - map
|
|
1231
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1232
|
+
* @returns GetWorkspaceResponse
|
|
1233
|
+
*/
|
|
1234
|
+
async getWorkspaceWithOptions(workspaceId: string, request: $_model.GetWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceResponse> {
|
|
1235
|
+
request.validate();
|
|
1236
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1237
|
+
headers: headers,
|
|
1238
|
+
});
|
|
1239
|
+
let params = new $OpenApiUtil.Params({
|
|
1240
|
+
action: "GetWorkspace",
|
|
1241
|
+
version: "2026-08-04",
|
|
1242
|
+
protocol: "HTTPS",
|
|
1243
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}`,
|
|
1244
|
+
method: "GET",
|
|
1245
|
+
authType: "AK",
|
|
1246
|
+
style: "ROA",
|
|
1247
|
+
reqBodyType: "json",
|
|
1248
|
+
bodyType: "json",
|
|
1249
|
+
});
|
|
1250
|
+
return $dara.cast<$_model.GetWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.GetWorkspaceResponse({}));
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Queries workspace details by workspace ID, including lifecycle status, CMS Workspace, AIRegistry Namespace, and current network policy.
|
|
1255
|
+
*
|
|
1256
|
+
* @remarks
|
|
1257
|
+
* ## Operation description\\nQueries workspace details by workspace ID, including lifecycle status, CMS Workspace, AIRegistry Namespace, and current network policy.\\n.
|
|
1258
|
+
*
|
|
1259
|
+
* @param request - GetWorkspaceRequest
|
|
1260
|
+
* @returns GetWorkspaceResponse
|
|
1261
|
+
*/
|
|
1262
|
+
async getWorkspace(workspaceId: string, request: $_model.GetWorkspaceRequest): Promise<$_model.GetWorkspaceResponse> {
|
|
1263
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1264
|
+
let headers : {[key: string ]: string} = { };
|
|
1265
|
+
return await this.getWorkspaceWithOptions(workspaceId, request, headers, runtime);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
980
1268
|
/**
|
|
981
1269
|
* 查询凭证列表
|
|
982
1270
|
*
|
|
@@ -1083,6 +1371,61 @@ export default class Client extends OpenApi {
|
|
|
1083
1371
|
return await this.listIdentityProvidersWithOptions(workspaceId, request, headers, runtime);
|
|
1084
1372
|
}
|
|
1085
1373
|
|
|
1374
|
+
/**
|
|
1375
|
+
* Queries the list of managed agents in a specified workspace.
|
|
1376
|
+
*
|
|
1377
|
+
* @remarks
|
|
1378
|
+
* Queries the list of managed agents in a specified workspace by using paging. Returns summary information for each agent, including the identity, name, status, template, and specifications.
|
|
1379
|
+
*
|
|
1380
|
+
* @param request - ListManagedAgentsRequest
|
|
1381
|
+
* @param headers - map
|
|
1382
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1383
|
+
* @returns ListManagedAgentsResponse
|
|
1384
|
+
*/
|
|
1385
|
+
async listManagedAgentsWithOptions(workspaceId: string, request: $_model.ListManagedAgentsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListManagedAgentsResponse> {
|
|
1386
|
+
request.validate();
|
|
1387
|
+
let query : {[key: string ]: any} = { };
|
|
1388
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1389
|
+
query["maxResults"] = request.maxResults;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1393
|
+
query["nextToken"] = request.nextToken;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1397
|
+
headers: headers,
|
|
1398
|
+
query: OpenApiUtil.query(query),
|
|
1399
|
+
});
|
|
1400
|
+
let params = new $OpenApiUtil.Params({
|
|
1401
|
+
action: "ListManagedAgents",
|
|
1402
|
+
version: "2026-08-04",
|
|
1403
|
+
protocol: "HTTPS",
|
|
1404
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/managed-agents`,
|
|
1405
|
+
method: "GET",
|
|
1406
|
+
authType: "AK",
|
|
1407
|
+
style: "ROA",
|
|
1408
|
+
reqBodyType: "json",
|
|
1409
|
+
bodyType: "json",
|
|
1410
|
+
});
|
|
1411
|
+
return $dara.cast<$_model.ListManagedAgentsResponse>(await this.callApi(params, req, runtime), new $_model.ListManagedAgentsResponse({}));
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Queries the list of managed agents in a specified workspace.
|
|
1416
|
+
*
|
|
1417
|
+
* @remarks
|
|
1418
|
+
* Queries the list of managed agents in a specified workspace by using paging. Returns summary information for each agent, including the identity, name, status, template, and specifications.
|
|
1419
|
+
*
|
|
1420
|
+
* @param request - ListManagedAgentsRequest
|
|
1421
|
+
* @returns ListManagedAgentsResponse
|
|
1422
|
+
*/
|
|
1423
|
+
async listManagedAgents(workspaceId: string, request: $_model.ListManagedAgentsRequest): Promise<$_model.ListManagedAgentsResponse> {
|
|
1424
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1425
|
+
let headers : {[key: string ]: string} = { };
|
|
1426
|
+
return await this.listManagedAgentsWithOptions(workspaceId, request, headers, runtime);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1086
1429
|
/**
|
|
1087
1430
|
* 查询模型连接列表
|
|
1088
1431
|
*
|
|
@@ -1393,6 +1736,65 @@ export default class Client extends OpenApi {
|
|
|
1393
1736
|
return await this.listUsersWithOptions(workspaceId, request, headers, runtime);
|
|
1394
1737
|
}
|
|
1395
1738
|
|
|
1739
|
+
/**
|
|
1740
|
+
* Queries workspaces under the current tenant with paging. The list does not return soft-deleted records with a status of Deleted by default. Results are stably sorted by creation order on the server side.
|
|
1741
|
+
*
|
|
1742
|
+
* @remarks
|
|
1743
|
+
* ## Request description\\nQueries workspaces under the current tenant with paging. The list does not return soft-deleted records with a status of `Deleted` by default. Results are stably sorted by creation order on the server side. Use `nextToken` to retrieve the next page, `skip` to skip a specified number of workspaces, `maxResults` to specify the maximum number of records per page, and `nameLike` to filter workspaces by name using fuzzy match. If `maxResults` is not specified or is set to 0, the server returns 20 records by default.\\n
|
|
1744
|
+
*
|
|
1745
|
+
* @param request - ListWorkspacesRequest
|
|
1746
|
+
* @param headers - map
|
|
1747
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1748
|
+
* @returns ListWorkspacesResponse
|
|
1749
|
+
*/
|
|
1750
|
+
async listWorkspacesWithOptions(request: $_model.ListWorkspacesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListWorkspacesResponse> {
|
|
1751
|
+
request.validate();
|
|
1752
|
+
let query : {[key: string ]: any} = { };
|
|
1753
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1754
|
+
query["maxResults"] = request.maxResults;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1758
|
+
query["nextToken"] = request.nextToken;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
if (!$dara.isNull(request.skip)) {
|
|
1762
|
+
query["skip"] = request.skip;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1766
|
+
headers: headers,
|
|
1767
|
+
query: OpenApiUtil.query(query),
|
|
1768
|
+
});
|
|
1769
|
+
let params = new $OpenApiUtil.Params({
|
|
1770
|
+
action: "ListWorkspaces",
|
|
1771
|
+
version: "2026-08-04",
|
|
1772
|
+
protocol: "HTTPS",
|
|
1773
|
+
pathname: `/workspaces`,
|
|
1774
|
+
method: "GET",
|
|
1775
|
+
authType: "AK",
|
|
1776
|
+
style: "ROA",
|
|
1777
|
+
reqBodyType: "json",
|
|
1778
|
+
bodyType: "json",
|
|
1779
|
+
});
|
|
1780
|
+
return $dara.cast<$_model.ListWorkspacesResponse>(await this.callApi(params, req, runtime), new $_model.ListWorkspacesResponse({}));
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Queries workspaces under the current tenant with paging. The list does not return soft-deleted records with a status of Deleted by default. Results are stably sorted by creation order on the server side.
|
|
1785
|
+
*
|
|
1786
|
+
* @remarks
|
|
1787
|
+
* ## Request description\\nQueries workspaces under the current tenant with paging. The list does not return soft-deleted records with a status of `Deleted` by default. Results are stably sorted by creation order on the server side. Use `nextToken` to retrieve the next page, `skip` to skip a specified number of workspaces, `maxResults` to specify the maximum number of records per page, and `nameLike` to filter workspaces by name using fuzzy match. If `maxResults` is not specified or is set to 0, the server returns 20 records by default.\\n
|
|
1788
|
+
*
|
|
1789
|
+
* @param request - ListWorkspacesRequest
|
|
1790
|
+
* @returns ListWorkspacesResponse
|
|
1791
|
+
*/
|
|
1792
|
+
async listWorkspaces(request: $_model.ListWorkspacesRequest): Promise<$_model.ListWorkspacesResponse> {
|
|
1793
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1794
|
+
let headers : {[key: string ]: string} = { };
|
|
1795
|
+
return await this.listWorkspacesWithOptions(request, headers, runtime);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1396
1798
|
/**
|
|
1397
1799
|
* 重置用户密码
|
|
1398
1800
|
*
|
|
@@ -1553,7 +1955,64 @@ export default class Client extends OpenApi {
|
|
|
1553
1955
|
}
|
|
1554
1956
|
|
|
1555
1957
|
/**
|
|
1556
|
-
*
|
|
1958
|
+
* Updates the configuration of a specified managed agent.
|
|
1959
|
+
*
|
|
1960
|
+
* @param tmpReq - UpdateManagedAgentRequest
|
|
1961
|
+
* @param headers - map
|
|
1962
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1963
|
+
* @returns UpdateManagedAgentResponse
|
|
1964
|
+
*/
|
|
1965
|
+
async updateManagedAgentWithOptions(workspaceId: string, agentId: string, tmpReq: $_model.UpdateManagedAgentRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateManagedAgentResponse> {
|
|
1966
|
+
tmpReq.validate();
|
|
1967
|
+
let request = new $_model.UpdateManagedAgentShrinkRequest({ });
|
|
1968
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1969
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
1970
|
+
request.bodyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
let query : {[key: string ]: any} = { };
|
|
1974
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
1975
|
+
query["clientToken"] = request.clientToken;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
let body : {[key: string ]: any} = { };
|
|
1979
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
1980
|
+
body["body"] = request.bodyShrink;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1984
|
+
headers: headers,
|
|
1985
|
+
query: OpenApiUtil.query(query),
|
|
1986
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1987
|
+
});
|
|
1988
|
+
let params = new $OpenApiUtil.Params({
|
|
1989
|
+
action: "UpdateManagedAgent",
|
|
1990
|
+
version: "2026-08-04",
|
|
1991
|
+
protocol: "HTTPS",
|
|
1992
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/managed-agents/${$dara.URL.percentEncode(agentId)}`,
|
|
1993
|
+
method: "PATCH",
|
|
1994
|
+
authType: "AK",
|
|
1995
|
+
style: "ROA",
|
|
1996
|
+
reqBodyType: "formData",
|
|
1997
|
+
bodyType: "json",
|
|
1998
|
+
});
|
|
1999
|
+
return $dara.cast<$_model.UpdateManagedAgentResponse>(await this.callApi(params, req, runtime), new $_model.UpdateManagedAgentResponse({}));
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Updates the configuration of a specified managed agent.
|
|
2004
|
+
*
|
|
2005
|
+
* @param request - UpdateManagedAgentRequest
|
|
2006
|
+
* @returns UpdateManagedAgentResponse
|
|
2007
|
+
*/
|
|
2008
|
+
async updateManagedAgent(workspaceId: string, agentId: string, request: $_model.UpdateManagedAgentRequest): Promise<$_model.UpdateManagedAgentResponse> {
|
|
2009
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2010
|
+
let headers : {[key: string ]: string} = { };
|
|
2011
|
+
return await this.updateManagedAgentWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
/**
|
|
2015
|
+
* Updates the description of a specified model. Other model configurations cannot be modified through this operation.
|
|
1557
2016
|
*
|
|
1558
2017
|
* @param tmpReq - UpdateModelRequest
|
|
1559
2018
|
* @param headers - map
|
|
@@ -1598,7 +2057,7 @@ export default class Client extends OpenApi {
|
|
|
1598
2057
|
}
|
|
1599
2058
|
|
|
1600
2059
|
/**
|
|
1601
|
-
*
|
|
2060
|
+
* Updates the description of a specified model. Other model configurations cannot be modified through this operation.
|
|
1602
2061
|
*
|
|
1603
2062
|
* @param request - UpdateModelRequest
|
|
1604
2063
|
* @returns UpdateModelResponse
|
|
@@ -1780,4 +2239,67 @@ export default class Client extends OpenApi {
|
|
|
1780
2239
|
return await this.updateUserWithOptions(workspaceId, agentCoreUserId, request, headers, runtime);
|
|
1781
2240
|
}
|
|
1782
2241
|
|
|
2242
|
+
/**
|
|
2243
|
+
* Updates the name or network configuration of a workspace. Only workspaces in the Initialized status can be updated. Status, TenantId, and RegionId are maintained by the server and cannot be modified through this operation.
|
|
2244
|
+
*
|
|
2245
|
+
* @remarks
|
|
2246
|
+
* ## Operation description\\nUpdates the name or network configuration of a workspace. Only workspaces in the `Initialized` status can be updated. `Status`, `TenantId`, and `RegionId` are maintained by the server and cannot be modified through this operation. The network configuration uses `Enabled` to specify whether to enable VPC networking. When enabled, you must also provide `VpcId` and at least one `VSwitchIds`.\\n.
|
|
2247
|
+
*
|
|
2248
|
+
* @param tmpReq - UpdateWorkspaceRequest
|
|
2249
|
+
* @param headers - map
|
|
2250
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2251
|
+
* @returns UpdateWorkspaceResponse
|
|
2252
|
+
*/
|
|
2253
|
+
async updateWorkspaceWithOptions(workspaceId: string, tmpReq: $_model.UpdateWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateWorkspaceResponse> {
|
|
2254
|
+
tmpReq.validate();
|
|
2255
|
+
let request = new $_model.UpdateWorkspaceShrinkRequest({ });
|
|
2256
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2257
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
2258
|
+
request.bodyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
let query : {[key: string ]: any} = { };
|
|
2262
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
2263
|
+
query["clientToken"] = request.clientToken;
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
let body : {[key: string ]: any} = { };
|
|
2267
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
2268
|
+
body["body"] = request.bodyShrink;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2272
|
+
headers: headers,
|
|
2273
|
+
query: OpenApiUtil.query(query),
|
|
2274
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2275
|
+
});
|
|
2276
|
+
let params = new $OpenApiUtil.Params({
|
|
2277
|
+
action: "UpdateWorkspace",
|
|
2278
|
+
version: "2026-08-04",
|
|
2279
|
+
protocol: "HTTPS",
|
|
2280
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}`,
|
|
2281
|
+
method: "PUT",
|
|
2282
|
+
authType: "AK",
|
|
2283
|
+
style: "ROA",
|
|
2284
|
+
reqBodyType: "formData",
|
|
2285
|
+
bodyType: "json",
|
|
2286
|
+
});
|
|
2287
|
+
return $dara.cast<$_model.UpdateWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.UpdateWorkspaceResponse({}));
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* Updates the name or network configuration of a workspace. Only workspaces in the Initialized status can be updated. Status, TenantId, and RegionId are maintained by the server and cannot be modified through this operation.
|
|
2292
|
+
*
|
|
2293
|
+
* @remarks
|
|
2294
|
+
* ## Operation description\\nUpdates the name or network configuration of a workspace. Only workspaces in the `Initialized` status can be updated. `Status`, `TenantId`, and `RegionId` are maintained by the server and cannot be modified through this operation. The network configuration uses `Enabled` to specify whether to enable VPC networking. When enabled, you must also provide `VpcId` and at least one `VSwitchIds`.\\n.
|
|
2295
|
+
*
|
|
2296
|
+
* @param request - UpdateWorkspaceRequest
|
|
2297
|
+
* @returns UpdateWorkspaceResponse
|
|
2298
|
+
*/
|
|
2299
|
+
async updateWorkspace(workspaceId: string, request: $_model.UpdateWorkspaceRequest): Promise<$_model.UpdateWorkspaceResponse> {
|
|
2300
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2301
|
+
let headers : {[key: string ]: string} = { };
|
|
2302
|
+
return await this.updateWorkspaceWithOptions(workspaceId, request, headers, runtime);
|
|
2303
|
+
}
|
|
2304
|
+
|
|
1783
2305
|
}
|