@alicloud/dms20250414 1.14.1 → 1.14.2

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 CHANGED
@@ -725,10 +725,10 @@ export default class Client extends OpenApi {
725
725
  */
726
726
  getNotebookTaskStatus(request: $_model.GetNotebookTaskStatusRequest): Promise<$_model.GetNotebookTaskStatusResponse>;
727
727
  /**
728
- * Retrieves the content of a code file from a workspace. The response header includes the file\\"s modification time (`mtime`).
728
+ * Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
729
729
  *
730
730
  * @remarks
731
- * Retrieves the content of a specified code file from a workspace.
731
+ * Obtains the resource configuration limit information and the instance purchase status of the workspace.
732
732
  *
733
733
  * @param request - GetWorkspaceCodeRequest
734
734
  * @param runtime - runtime options for this request RuntimeOptions
@@ -736,10 +736,10 @@ export default class Client extends OpenApi {
736
736
  */
737
737
  getWorkspaceCodeWithOptions(request: $_model.GetWorkspaceCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceCodeResponse>;
738
738
  /**
739
- * Retrieves the content of a code file from a workspace. The response header includes the file\\"s modification time (`mtime`).
739
+ * Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
740
740
  *
741
741
  * @remarks
742
- * Retrieves the content of a specified code file from a workspace.
742
+ * Obtains the resource configuration limit information and the instance purchase status of the workspace.
743
743
  *
744
744
  * @param request - GetWorkspaceCodeRequest
745
745
  * @returns GetWorkspaceCodeResponse
@@ -1226,10 +1226,10 @@ export default class Client extends OpenApi {
1226
1226
  */
1227
1227
  retrieveKnowledgeBase(request: $_model.RetrieveKnowledgeBaseRequest): Promise<$_model.RetrieveKnowledgeBaseResponse>;
1228
1228
  /**
1229
- * Saves code in a workspace and creates the file if it does not exist.
1229
+ * Saves workspace code. If the file does not exist, a new file is automatically created.
1230
1230
  *
1231
1231
  * @remarks
1232
- * Saves code in a workspace and optionally publishes it to a repository.
1232
+ * 发布工作空间的代码
1233
1233
  *
1234
1234
  * @param request - SaveWorkspaceCodeRequest
1235
1235
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1237,10 +1237,10 @@ export default class Client extends OpenApi {
1237
1237
  */
1238
1238
  saveWorkspaceCodeWithOptions(request: $_model.SaveWorkspaceCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SaveWorkspaceCodeResponse>;
1239
1239
  /**
1240
- * Saves code in a workspace and creates the file if it does not exist.
1240
+ * Saves workspace code. If the file does not exist, a new file is automatically created.
1241
1241
  *
1242
1242
  * @remarks
1243
- * Saves code in a workspace and optionally publishes it to a repository.
1243
+ * 发布工作空间的代码
1244
1244
  *
1245
1245
  * @param request - SaveWorkspaceCodeRequest
1246
1246
  * @returns SaveWorkspaceCodeResponse
package/dist/client.js CHANGED
@@ -2495,10 +2495,10 @@ class Client extends openapi_core_1.default {
2495
2495
  return await this.getNotebookTaskStatusWithOptions(request, runtime);
2496
2496
  }
2497
2497
  /**
2498
- * Retrieves the content of a code file from a workspace. The response header includes the file\\"s modification time (`mtime`).
2498
+ * Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
2499
2499
  *
2500
2500
  * @remarks
2501
- * Retrieves the content of a specified code file from a workspace.
2501
+ * Obtains the resource configuration limit information and the instance purchase status of the workspace.
2502
2502
  *
2503
2503
  * @param request - GetWorkspaceCodeRequest
2504
2504
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2533,10 +2533,10 @@ class Client extends openapi_core_1.default {
2533
2533
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWorkspaceCodeResponse({}));
2534
2534
  }
2535
2535
  /**
2536
- * Retrieves the content of a code file from a workspace. The response header includes the file\\"s modification time (`mtime`).
2536
+ * Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
2537
2537
  *
2538
2538
  * @remarks
2539
- * Retrieves the content of a specified code file from a workspace.
2539
+ * Obtains the resource configuration limit information and the instance purchase status of the workspace.
2540
2540
  *
2541
2541
  * @param request - GetWorkspaceCodeRequest
2542
2542
  * @returns GetWorkspaceCodeResponse
@@ -4261,10 +4261,10 @@ class Client extends openapi_core_1.default {
4261
4261
  return await this.retrieveKnowledgeBaseWithOptions(request, runtime);
4262
4262
  }
4263
4263
  /**
4264
- * Saves code in a workspace and creates the file if it does not exist.
4264
+ * Saves workspace code. If the file does not exist, a new file is automatically created.
4265
4265
  *
4266
4266
  * @remarks
4267
- * Saves code in a workspace and optionally publishes it to a repository.
4267
+ * 发布工作空间的代码
4268
4268
  *
4269
4269
  * @param request - SaveWorkspaceCodeRequest
4270
4270
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4313,10 +4313,10 @@ class Client extends openapi_core_1.default {
4313
4313
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.SaveWorkspaceCodeResponse({}));
4314
4314
  }
4315
4315
  /**
4316
- * Saves code in a workspace and creates the file if it does not exist.
4316
+ * Saves workspace code. If the file does not exist, a new file is automatically created.
4317
4317
  *
4318
4318
  * @remarks
4319
- * Saves code in a workspace and optionally publishes it to a repository.
4319
+ * 发布工作空间的代码
4320
4320
  *
4321
4321
  * @param request - SaveWorkspaceCodeRequest
4322
4322
  * @returns SaveWorkspaceCodeResponse
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class GetWorkspaceCodeRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * If the file is in JSON format, set this parameter to `true` to convert the returned content to YAML format.
5
+ * If the file is a JSON file and Iac is set to true, the returned content is converted from JSON format to YAML format.
6
6
  *
7
7
  * @example
8
8
  * false
@@ -10,7 +10,8 @@ export declare class GetWorkspaceCodeRequest extends $dara.Model {
10
10
  iac?: string;
11
11
  /**
12
12
  * @remarks
13
- * The path to the code file. For example: `/Workspace/code/test.py`.
13
+ * The code file path: /Workspace/code/test.py
14
+ * Request path.
14
15
  *
15
16
  * This parameter is required.
16
17
  *
@@ -20,7 +21,7 @@ export declare class GetWorkspaceCodeRequest extends $dara.Model {
20
21
  path?: string;
21
22
  /**
22
23
  * @remarks
23
- * The ID of the workspace.
24
+ * The workspace ID.
24
25
  *
25
26
  * This parameter is required.
26
27
  *
@@ -1 +1 @@
1
- {"version":3,"file":"GetWorkspaceCodeRequest.js","sourceRoot":"","sources":["../../src/models/GetWorkspaceCodeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IA6BtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,0DAoDC"}
1
+ {"version":3,"file":"GetWorkspaceCodeRequest.js","sourceRoot":"","sources":["../../src/models/GetWorkspaceCodeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IA8BtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArDD,0DAqDC"}
@@ -26,7 +26,7 @@ export declare class GetWorkspaceCodeResponseBody extends $dara.Model {
26
26
  httpStatusCode?: number;
27
27
  /**
28
28
  * @remarks
29
- * The error message returned if the request fails.
29
+ * The error message returned when the request fails.
30
30
  *
31
31
  * @example
32
32
  * This record is being collected, please wait for a moment.
@@ -42,7 +42,7 @@ export declare class GetWorkspaceCodeResponseBody extends $dara.Model {
42
42
  requestId?: string;
43
43
  /**
44
44
  * @remarks
45
- * Indicates if the request succeeded.
45
+ * Indicates whether the request was successful.
46
46
  *
47
47
  * @example
48
48
  * true
@@ -2,17 +2,17 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class SaveWorkspaceCodeRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The content of the file.
5
+ * The code content.
6
6
  *
7
7
  * This parameter is required.
8
8
  *
9
9
  * @example
10
- * Description: \\"Example template, describe instances in some status\\"nFormatVersion: OOS-2019-06-01nTasks:n - Name: SleepTaskn Action: ACS::Sleepn Properties:n Duration: PT1Mn
10
+ * print(123)
11
11
  */
12
12
  content?: string;
13
13
  /**
14
14
  * @remarks
15
- * Specifies whether to overwrite the file if it already exists. The default value is `true`.
15
+ * Specifies whether to forcibly overwrite the file. If set to true, the file is overwritten regardless of whether it has been modified by others.
16
16
  *
17
17
  * @example
18
18
  * True
@@ -20,7 +20,7 @@ export declare class SaveWorkspaceCodeRequest extends $dara.Model {
20
20
  force?: boolean;
21
21
  /**
22
22
  * @remarks
23
- * Specifies whether the file is an IaC template.
23
+ * Specifies whether the file is an infrastructure as code template file. Set this parameter to true for YAML configuration files that are edited in the visual editor.
24
24
  *
25
25
  * @example
26
26
  * false
@@ -28,9 +28,7 @@ export declare class SaveWorkspaceCodeRequest extends $dara.Model {
28
28
  iac?: boolean;
29
29
  /**
30
30
  * @remarks
31
- * The modification time of the file.
32
- *
33
- * The time must be in the ISO 8601 format: `yyyy-MM-ddTHH:mm:ssZ`.
31
+ * The file modification time. The GetWorkspaceCode operation returns this mtime value. When you call SaveWorkspaceCode, include this mtime value to check whether the file has been changed on the server. If the mtime values do not match, the save operation fails, which indicates that the server-side version has been modified.
34
32
  *
35
33
  * @example
36
34
  * 2026-01-01T10:11:12Z
@@ -38,25 +36,25 @@ export declare class SaveWorkspaceCodeRequest extends $dara.Model {
38
36
  mtime?: string;
39
37
  /**
40
38
  * @remarks
41
- * The publishing configuration, specified as a JSON string. The `repos` array specifies the target repository and branch. The `exclude` array specifies the directories to ignore.
39
+ * The file path to save.
42
40
  *
43
41
  * This parameter is required.
44
42
  *
45
43
  * @example
46
- * {"repos":[{"repo":"git@xxxx.git", "branch":"master"}], "exclude":["/.dms", "/username"]}
44
+ * /Workspace/code/test.py
47
45
  */
48
46
  path?: string;
49
47
  /**
50
48
  * @remarks
51
- * Information about the repository.
49
+ * The repository information. Specify this parameter when creating a git repository directory during the save operation.
52
50
  *
53
51
  * @example
54
- * computing/ecs
52
+ * git@codeup.aliyun.com:test/abc.git
55
53
  */
56
54
  repo?: string;
57
55
  /**
58
56
  * @remarks
59
- * The ID of the workspace.
57
+ * The workspace ID (numeric ID).
60
58
  *
61
59
  * This parameter is required.
62
60
  *
@@ -1 +1 @@
1
- {"version":3,"file":"SaveWorkspaceCodeRequest.js","sourceRoot":"","sources":["../../src/models/SaveWorkspaceCodeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAiEvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhGD,4DAgGC"}
1
+ {"version":3,"file":"SaveWorkspaceCodeRequest.js","sourceRoot":"","sources":["../../src/models/SaveWorkspaceCodeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA+DvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9FD,4DA8FC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class SaveWorkspaceCodeResponseBody extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The returned data.
5
+ * 返回数据
6
6
  *
7
7
  * @example
8
8
  * 1
@@ -10,7 +10,7 @@ export declare class SaveWorkspaceCodeResponseBody extends $dara.Model {
10
10
  data?: string;
11
11
  /**
12
12
  * @remarks
13
- * The error code.
13
+ * 错误码
14
14
  *
15
15
  * @example
16
16
  * InvalidTid
@@ -18,7 +18,7 @@ export declare class SaveWorkspaceCodeResponseBody extends $dara.Model {
18
18
  errorCode?: string;
19
19
  /**
20
20
  * @remarks
21
- * The HTTP status code.
21
+ * http状态码
22
22
  *
23
23
  * @example
24
24
  * 200
@@ -26,7 +26,7 @@ export declare class SaveWorkspaceCodeResponseBody extends $dara.Model {
26
26
  httpStatusCode?: number;
27
27
  /**
28
28
  * @remarks
29
- * The error message for a failed request. This parameter is not returned for successful requests.
29
+ * 错误信息,在接口失败时,返回具体错误信息,成功时则为空
30
30
  *
31
31
  * @example
32
32
  * Failed to publish,repo branch empty
@@ -34,7 +34,7 @@ export declare class SaveWorkspaceCodeResponseBody extends $dara.Model {
34
34
  message?: string;
35
35
  /**
36
36
  * @remarks
37
- * The request ID.
37
+ * 请求ID
38
38
  *
39
39
  * @example
40
40
  * 67E910F2-4B62-5B0C-ACA3-7547695C****
@@ -42,11 +42,9 @@ export declare class SaveWorkspaceCodeResponseBody extends $dara.Model {
42
42
  requestId?: string;
43
43
  /**
44
44
  * @remarks
45
- * Indicates whether the request was successful.
46
- *
47
- * - **true**: The request was successful.
48
- *
49
- * - **false**: The request failed.
45
+ * 是否调用成功。
46
+ * - **true**:调用成功。
47
+ * - **false**:调用失败。
50
48
  *
51
49
  * @example
52
50
  * true
@@ -1 +1 @@
1
- {"version":3,"file":"SaveWorkspaceCodeResponseBody.js","sourceRoot":"","sources":["../../src/models/SaveWorkspaceCodeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAqD5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;YACtB,cAAc,EAAE,gBAAgB;YAChC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,QAAQ;YACnB,cAAc,EAAE,QAAQ;YACxB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlFD,sEAkFC"}
1
+ {"version":3,"file":"SaveWorkspaceCodeResponseBody.js","sourceRoot":"","sources":["../../src/models/SaveWorkspaceCodeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAmD5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;YACtB,cAAc,EAAE,gBAAgB;YAChC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,QAAQ;YACnB,cAAc,EAAE,QAAQ;YACxB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhFD,sEAgFC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/dms20250414",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2744,10 +2744,10 @@ export default class Client extends OpenApi {
2744
2744
  }
2745
2745
 
2746
2746
  /**
2747
- * Retrieves the content of a code file from a workspace. The response header includes the file\\"s modification time (`mtime`).
2747
+ * Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
2748
2748
  *
2749
2749
  * @remarks
2750
- * Retrieves the content of a specified code file from a workspace.
2750
+ * Obtains the resource configuration limit information and the instance purchase status of the workspace.
2751
2751
  *
2752
2752
  * @param request - GetWorkspaceCodeRequest
2753
2753
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2786,10 +2786,10 @@ export default class Client extends OpenApi {
2786
2786
  }
2787
2787
 
2788
2788
  /**
2789
- * Retrieves the content of a code file from a workspace. The response header includes the file\\"s modification time (`mtime`).
2789
+ * Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
2790
2790
  *
2791
2791
  * @remarks
2792
- * Retrieves the content of a specified code file from a workspace.
2792
+ * Obtains the resource configuration limit information and the instance purchase status of the workspace.
2793
2793
  *
2794
2794
  * @param request - GetWorkspaceCodeRequest
2795
2795
  * @returns GetWorkspaceCodeResponse
@@ -4774,10 +4774,10 @@ export default class Client extends OpenApi {
4774
4774
  }
4775
4775
 
4776
4776
  /**
4777
- * Saves code in a workspace and creates the file if it does not exist.
4777
+ * Saves workspace code. If the file does not exist, a new file is automatically created.
4778
4778
  *
4779
4779
  * @remarks
4780
- * Saves code in a workspace and optionally publishes it to a repository.
4780
+ * 发布工作空间的代码
4781
4781
  *
4782
4782
  * @param request - SaveWorkspaceCodeRequest
4783
4783
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4834,10 +4834,10 @@ export default class Client extends OpenApi {
4834
4834
  }
4835
4835
 
4836
4836
  /**
4837
- * Saves code in a workspace and creates the file if it does not exist.
4837
+ * Saves workspace code. If the file does not exist, a new file is automatically created.
4838
4838
  *
4839
4839
  * @remarks
4840
- * Saves code in a workspace and optionally publishes it to a repository.
4840
+ * 发布工作空间的代码
4841
4841
  *
4842
4842
  * @param request - SaveWorkspaceCodeRequest
4843
4843
  * @returns SaveWorkspaceCodeResponse
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class GetWorkspaceCodeRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * If the file is in JSON format, set this parameter to `true` to convert the returned content to YAML format.
8
+ * If the file is a JSON file and Iac is set to true, the returned content is converted from JSON format to YAML format.
9
9
  *
10
10
  * @example
11
11
  * false
@@ -13,7 +13,8 @@ export class GetWorkspaceCodeRequest extends $dara.Model {
13
13
  iac?: string;
14
14
  /**
15
15
  * @remarks
16
- * The path to the code file. For example: `/Workspace/code/test.py`.
16
+ * The code file path: /Workspace/code/test.py
17
+ * Request path.
17
18
  *
18
19
  * This parameter is required.
19
20
  *
@@ -23,7 +24,7 @@ export class GetWorkspaceCodeRequest extends $dara.Model {
23
24
  path?: string;
24
25
  /**
25
26
  * @remarks
26
- * The ID of the workspace.
27
+ * The workspace ID.
27
28
  *
28
29
  * This parameter is required.
29
30
  *
@@ -29,7 +29,7 @@ export class GetWorkspaceCodeResponseBody extends $dara.Model {
29
29
  httpStatusCode?: number;
30
30
  /**
31
31
  * @remarks
32
- * The error message returned if the request fails.
32
+ * The error message returned when the request fails.
33
33
  *
34
34
  * @example
35
35
  * This record is being collected, please wait for a moment.
@@ -45,7 +45,7 @@ export class GetWorkspaceCodeResponseBody extends $dara.Model {
45
45
  requestId?: string;
46
46
  /**
47
47
  * @remarks
48
- * Indicates if the request succeeded.
48
+ * Indicates whether the request was successful.
49
49
  *
50
50
  * @example
51
51
  * true
@@ -5,17 +5,17 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SaveWorkspaceCodeRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The content of the file.
8
+ * The code content.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
12
12
  * @example
13
- * Description: \\"Example template, describe instances in some status\\"nFormatVersion: OOS-2019-06-01nTasks:n - Name: SleepTaskn Action: ACS::Sleepn Properties:n Duration: PT1Mn
13
+ * print(123)
14
14
  */
15
15
  content?: string;
16
16
  /**
17
17
  * @remarks
18
- * Specifies whether to overwrite the file if it already exists. The default value is `true`.
18
+ * Specifies whether to forcibly overwrite the file. If set to true, the file is overwritten regardless of whether it has been modified by others.
19
19
  *
20
20
  * @example
21
21
  * True
@@ -23,7 +23,7 @@ export class SaveWorkspaceCodeRequest extends $dara.Model {
23
23
  force?: boolean;
24
24
  /**
25
25
  * @remarks
26
- * Specifies whether the file is an IaC template.
26
+ * Specifies whether the file is an infrastructure as code template file. Set this parameter to true for YAML configuration files that are edited in the visual editor.
27
27
  *
28
28
  * @example
29
29
  * false
@@ -31,9 +31,7 @@ export class SaveWorkspaceCodeRequest extends $dara.Model {
31
31
  iac?: boolean;
32
32
  /**
33
33
  * @remarks
34
- * The modification time of the file.
35
- *
36
- * The time must be in the ISO 8601 format: `yyyy-MM-ddTHH:mm:ssZ`.
34
+ * The file modification time. The GetWorkspaceCode operation returns this mtime value. When you call SaveWorkspaceCode, include this mtime value to check whether the file has been changed on the server. If the mtime values do not match, the save operation fails, which indicates that the server-side version has been modified.
37
35
  *
38
36
  * @example
39
37
  * 2026-01-01T10:11:12Z
@@ -41,25 +39,25 @@ export class SaveWorkspaceCodeRequest extends $dara.Model {
41
39
  mtime?: string;
42
40
  /**
43
41
  * @remarks
44
- * The publishing configuration, specified as a JSON string. The `repos` array specifies the target repository and branch. The `exclude` array specifies the directories to ignore.
42
+ * The file path to save.
45
43
  *
46
44
  * This parameter is required.
47
45
  *
48
46
  * @example
49
- * {"repos":[{"repo":"git@xxxx.git", "branch":"master"}], "exclude":["/.dms", "/username"]}
47
+ * /Workspace/code/test.py
50
48
  */
51
49
  path?: string;
52
50
  /**
53
51
  * @remarks
54
- * Information about the repository.
52
+ * The repository information. Specify this parameter when creating a git repository directory during the save operation.
55
53
  *
56
54
  * @example
57
- * computing/ecs
55
+ * git@codeup.aliyun.com:test/abc.git
58
56
  */
59
57
  repo?: string;
60
58
  /**
61
59
  * @remarks
62
- * The ID of the workspace.
60
+ * The workspace ID (numeric ID).
63
61
  *
64
62
  * This parameter is required.
65
63
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SaveWorkspaceCodeResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The returned data.
8
+ * 返回数据
9
9
  *
10
10
  * @example
11
11
  * 1
@@ -13,7 +13,7 @@ export class SaveWorkspaceCodeResponseBody extends $dara.Model {
13
13
  data?: string;
14
14
  /**
15
15
  * @remarks
16
- * The error code.
16
+ * 错误码
17
17
  *
18
18
  * @example
19
19
  * InvalidTid
@@ -21,7 +21,7 @@ export class SaveWorkspaceCodeResponseBody extends $dara.Model {
21
21
  errorCode?: string;
22
22
  /**
23
23
  * @remarks
24
- * The HTTP status code.
24
+ * http状态码
25
25
  *
26
26
  * @example
27
27
  * 200
@@ -29,7 +29,7 @@ export class SaveWorkspaceCodeResponseBody extends $dara.Model {
29
29
  httpStatusCode?: number;
30
30
  /**
31
31
  * @remarks
32
- * The error message for a failed request. This parameter is not returned for successful requests.
32
+ * 错误信息,在接口失败时,返回具体错误信息,成功时则为空
33
33
  *
34
34
  * @example
35
35
  * Failed to publish,repo branch empty
@@ -37,7 +37,7 @@ export class SaveWorkspaceCodeResponseBody extends $dara.Model {
37
37
  message?: string;
38
38
  /**
39
39
  * @remarks
40
- * The request ID.
40
+ * 请求ID
41
41
  *
42
42
  * @example
43
43
  * 67E910F2-4B62-5B0C-ACA3-7547695C****
@@ -45,11 +45,9 @@ export class SaveWorkspaceCodeResponseBody extends $dara.Model {
45
45
  requestId?: string;
46
46
  /**
47
47
  * @remarks
48
- * Indicates whether the request was successful.
49
- *
50
- * - **true**: The request was successful.
51
- *
52
- * - **false**: The request failed.
48
+ * 是否调用成功。
49
+ * - **true**:调用成功。
50
+ * - **false**:调用失败。
53
51
  *
54
52
  * @example
55
53
  * true