@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 +8 -8
- package/dist/client.js +8 -8
- package/dist/models/GetWorkspaceCodeRequest.d.ts +4 -3
- package/dist/models/GetWorkspaceCodeRequest.js.map +1 -1
- package/dist/models/GetWorkspaceCodeResponseBody.d.ts +2 -2
- package/dist/models/SaveWorkspaceCodeRequest.d.ts +10 -12
- package/dist/models/SaveWorkspaceCodeRequest.js.map +1 -1
- package/dist/models/SaveWorkspaceCodeResponseBody.d.ts +8 -10
- package/dist/models/SaveWorkspaceCodeResponseBody.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +8 -8
- package/src/models/GetWorkspaceCodeRequest.ts +4 -3
- package/src/models/GetWorkspaceCodeResponseBody.ts +2 -2
- package/src/models/SaveWorkspaceCodeRequest.ts +10 -12
- package/src/models/SaveWorkspaceCodeResponseBody.ts +8 -10
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
1229
|
+
* Saves workspace code. If the file does not exist, a new file is automatically created.
|
|
1230
1230
|
*
|
|
1231
1231
|
* @remarks
|
|
1232
|
-
*
|
|
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
|
|
1240
|
+
* Saves workspace code. If the file does not exist, a new file is automatically created.
|
|
1241
1241
|
*
|
|
1242
1242
|
* @remarks
|
|
1243
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
4264
|
+
* Saves workspace code. If the file does not exist, a new file is automatically created.
|
|
4265
4265
|
*
|
|
4266
4266
|
* @remarks
|
|
4267
|
-
*
|
|
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
|
|
4316
|
+
* Saves workspace code. If the file does not exist, a new file is automatically created.
|
|
4317
4317
|
*
|
|
4318
4318
|
* @remarks
|
|
4319
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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;
|
|
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
|
|
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
|
|
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
|
|
5
|
+
* The code content.
|
|
6
6
|
*
|
|
7
7
|
* This parameter is required.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
-
*
|
|
10
|
+
* print(123)
|
|
11
11
|
*/
|
|
12
12
|
content?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* Specifies whether to overwrite the file
|
|
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
|
|
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
|
|
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
|
|
39
|
+
* The file path to save.
|
|
42
40
|
*
|
|
43
41
|
* This parameter is required.
|
|
44
42
|
*
|
|
45
43
|
* @example
|
|
46
|
-
*
|
|
44
|
+
* /Workspace/code/test.py
|
|
47
45
|
*/
|
|
48
46
|
path?: string;
|
|
49
47
|
/**
|
|
50
48
|
* @remarks
|
|
51
|
-
*
|
|
49
|
+
* The repository information. Specify this parameter when creating a git repository directory during the save operation.
|
|
52
50
|
*
|
|
53
51
|
* @example
|
|
54
|
-
*
|
|
52
|
+
* git@codeup.aliyun.com:test/abc.git
|
|
55
53
|
*/
|
|
56
54
|
repo?: string;
|
|
57
55
|
/**
|
|
58
56
|
* @remarks
|
|
59
|
-
* The ID
|
|
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;
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* - **
|
|
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;
|
|
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
package/src/client.ts
CHANGED
|
@@ -2744,10 +2744,10 @@ export default class Client extends OpenApi {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
|
|
2746
2746
|
/**
|
|
2747
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
4777
|
+
* Saves workspace code. If the file does not exist, a new file is automatically created.
|
|
4778
4778
|
*
|
|
4779
4779
|
* @remarks
|
|
4780
|
-
*
|
|
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
|
|
4837
|
+
* Saves workspace code. If the file does not exist, a new file is automatically created.
|
|
4838
4838
|
*
|
|
4839
4839
|
* @remarks
|
|
4840
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
8
|
+
* The code content.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
*
|
|
13
|
+
* print(123)
|
|
14
14
|
*/
|
|
15
15
|
content?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* Specifies whether to overwrite the file
|
|
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
|
|
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
|
|
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
|
|
42
|
+
* The file path to save.
|
|
45
43
|
*
|
|
46
44
|
* This parameter is required.
|
|
47
45
|
*
|
|
48
46
|
* @example
|
|
49
|
-
*
|
|
47
|
+
* /Workspace/code/test.py
|
|
50
48
|
*/
|
|
51
49
|
path?: string;
|
|
52
50
|
/**
|
|
53
51
|
* @remarks
|
|
54
|
-
*
|
|
52
|
+
* The repository information. Specify this parameter when creating a git repository directory during the save operation.
|
|
55
53
|
*
|
|
56
54
|
* @example
|
|
57
|
-
*
|
|
55
|
+
* git@codeup.aliyun.com:test/abc.git
|
|
58
56
|
*/
|
|
59
57
|
repo?: string;
|
|
60
58
|
/**
|
|
61
59
|
* @remarks
|
|
62
|
-
* The ID
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* - **
|
|
51
|
-
*
|
|
52
|
-
* - **false**: The request failed.
|
|
48
|
+
* 是否调用成功。
|
|
49
|
+
* - **true**:调用成功。
|
|
50
|
+
* - **false**:调用失败。
|
|
53
51
|
*
|
|
54
52
|
* @example
|
|
55
53
|
* true
|