@alicloud/dms20250414 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/client.d.ts +45 -0
  2. package/dist/client.js +138 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DeleteFileUploadRequest.d.ts +31 -0
  5. package/dist/models/DeleteFileUploadRequest.js +62 -0
  6. package/dist/models/DeleteFileUploadRequest.js.map +1 -0
  7. package/dist/models/DeleteFileUploadResponse.d.ts +19 -0
  8. package/dist/models/DeleteFileUploadResponse.js +69 -0
  9. package/dist/models/DeleteFileUploadResponse.js.map +1 -0
  10. package/dist/models/DeleteFileUploadResponseBody.d.ts +54 -0
  11. package/dist/models/DeleteFileUploadResponseBody.js +88 -0
  12. package/dist/models/DeleteFileUploadResponseBody.js.map +1 -0
  13. package/dist/models/DescribeFileUploadSignatureRequest.d.ts +19 -0
  14. package/dist/models/DescribeFileUploadSignatureRequest.js +60 -0
  15. package/dist/models/DescribeFileUploadSignatureRequest.js.map +1 -0
  16. package/dist/models/DescribeFileUploadSignatureResponse.d.ts +19 -0
  17. package/dist/models/DescribeFileUploadSignatureResponse.js +69 -0
  18. package/dist/models/DescribeFileUploadSignatureResponse.js.map +1 -0
  19. package/dist/models/DescribeFileUploadSignatureResponseBody.d.ts +81 -0
  20. package/dist/models/DescribeFileUploadSignatureResponseBody.js +102 -0
  21. package/dist/models/DescribeFileUploadSignatureResponseBody.js.map +1 -0
  22. package/dist/models/FileUploadCallbackRequest.d.ts +41 -0
  23. package/dist/models/FileUploadCallbackRequest.js +66 -0
  24. package/dist/models/FileUploadCallbackRequest.js.map +1 -0
  25. package/dist/models/FileUploadCallbackResponse.d.ts +19 -0
  26. package/dist/models/FileUploadCallbackResponse.js +69 -0
  27. package/dist/models/FileUploadCallbackResponse.js.map +1 -0
  28. package/dist/models/FileUploadCallbackResponseBody.d.ts +54 -0
  29. package/dist/models/FileUploadCallbackResponseBody.js +88 -0
  30. package/dist/models/FileUploadCallbackResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +12 -0
  32. package/dist/models/model.js +29 -4
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +154 -0
  36. package/src/models/DeleteFileUploadRequest.ts +48 -0
  37. package/src/models/DeleteFileUploadResponse.ts +40 -0
  38. package/src/models/DeleteFileUploadResponseBody.ts +88 -0
  39. package/src/models/DescribeFileUploadSignatureRequest.ts +34 -0
  40. package/src/models/DescribeFileUploadSignatureResponse.ts +40 -0
  41. package/src/models/DescribeFileUploadSignatureResponseBody.ts +129 -0
  42. package/src/models/FileUploadCallbackRequest.ts +62 -0
  43. package/src/models/FileUploadCallbackResponse.ts +40 -0
  44. package/src/models/FileUploadCallbackResponseBody.ts +88 -0
  45. package/src/models/model.ts +12 -0
package/src/client.ts CHANGED
@@ -1025,6 +1025,56 @@ export default class Client extends OpenApi {
1025
1025
  return await this.deleteDataLakeTableWithOptions(request, runtime);
1026
1026
  }
1027
1027
 
1028
+ /**
1029
+ * DeleteFileUpload
1030
+ *
1031
+ * @param request - DeleteFileUploadRequest
1032
+ * @param runtime - runtime options for this request RuntimeOptions
1033
+ * @returns DeleteFileUploadResponse
1034
+ */
1035
+ async deleteFileUploadWithOptions(request: $_model.DeleteFileUploadRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteFileUploadResponse> {
1036
+ request.validate();
1037
+ let query = { };
1038
+ if (!$dara.isNull(request.callFrom)) {
1039
+ query["CallFrom"] = request.callFrom;
1040
+ }
1041
+
1042
+ if (!$dara.isNull(request.dmsUnit)) {
1043
+ query["DmsUnit"] = request.dmsUnit;
1044
+ }
1045
+
1046
+ if (!$dara.isNull(request.fileId)) {
1047
+ query["FileId"] = request.fileId;
1048
+ }
1049
+
1050
+ let req = new $OpenApiUtil.OpenApiRequest({
1051
+ query: OpenApiUtil.query(query),
1052
+ });
1053
+ let params = new $OpenApiUtil.Params({
1054
+ action: "DeleteFileUpload",
1055
+ version: "2025-04-14",
1056
+ protocol: "HTTPS",
1057
+ pathname: "/",
1058
+ method: "POST",
1059
+ authType: "AK",
1060
+ style: "RPC",
1061
+ reqBodyType: "formData",
1062
+ bodyType: "json",
1063
+ });
1064
+ return $dara.cast<$_model.DeleteFileUploadResponse>(await this.callApi(params, req, runtime), new $_model.DeleteFileUploadResponse({}));
1065
+ }
1066
+
1067
+ /**
1068
+ * DeleteFileUpload
1069
+ *
1070
+ * @param request - DeleteFileUploadRequest
1071
+ * @returns DeleteFileUploadResponse
1072
+ */
1073
+ async deleteFileUpload(request: $_model.DeleteFileUploadRequest): Promise<$_model.DeleteFileUploadResponse> {
1074
+ let runtime = new $dara.RuntimeOptions({ });
1075
+ return await this.deleteFileUploadWithOptions(request, runtime);
1076
+ }
1077
+
1028
1078
  /**
1029
1079
  * DescribeCustomAgent
1030
1080
  *
@@ -1121,6 +1171,110 @@ export default class Client extends OpenApi {
1121
1171
  return await this.describeDataAgentSessionWithOptions(request, runtime);
1122
1172
  }
1123
1173
 
1174
+ /**
1175
+ * DescribeFileUploadSignature
1176
+ *
1177
+ * @param request - DescribeFileUploadSignatureRequest
1178
+ * @param runtime - runtime options for this request RuntimeOptions
1179
+ * @returns DescribeFileUploadSignatureResponse
1180
+ */
1181
+ async describeFileUploadSignatureWithOptions(request: $_model.DescribeFileUploadSignatureRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeFileUploadSignatureResponse> {
1182
+ request.validate();
1183
+ let query = { };
1184
+ if (!$dara.isNull(request.callFrom)) {
1185
+ query["CallFrom"] = request.callFrom;
1186
+ }
1187
+
1188
+ if (!$dara.isNull(request.dmsUnit)) {
1189
+ query["DmsUnit"] = request.dmsUnit;
1190
+ }
1191
+
1192
+ let req = new $OpenApiUtil.OpenApiRequest({
1193
+ query: OpenApiUtil.query(query),
1194
+ });
1195
+ let params = new $OpenApiUtil.Params({
1196
+ action: "DescribeFileUploadSignature",
1197
+ version: "2025-04-14",
1198
+ protocol: "HTTPS",
1199
+ pathname: "/",
1200
+ method: "POST",
1201
+ authType: "AK",
1202
+ style: "RPC",
1203
+ reqBodyType: "formData",
1204
+ bodyType: "json",
1205
+ });
1206
+ return $dara.cast<$_model.DescribeFileUploadSignatureResponse>(await this.callApi(params, req, runtime), new $_model.DescribeFileUploadSignatureResponse({}));
1207
+ }
1208
+
1209
+ /**
1210
+ * DescribeFileUploadSignature
1211
+ *
1212
+ * @param request - DescribeFileUploadSignatureRequest
1213
+ * @returns DescribeFileUploadSignatureResponse
1214
+ */
1215
+ async describeFileUploadSignature(request: $_model.DescribeFileUploadSignatureRequest): Promise<$_model.DescribeFileUploadSignatureResponse> {
1216
+ let runtime = new $dara.RuntimeOptions({ });
1217
+ return await this.describeFileUploadSignatureWithOptions(request, runtime);
1218
+ }
1219
+
1220
+ /**
1221
+ * FileUploadCallback
1222
+ *
1223
+ * @param request - FileUploadCallbackRequest
1224
+ * @param runtime - runtime options for this request RuntimeOptions
1225
+ * @returns FileUploadCallbackResponse
1226
+ */
1227
+ async fileUploadCallbackWithOptions(request: $_model.FileUploadCallbackRequest, runtime: $dara.RuntimeOptions): Promise<$_model.FileUploadCallbackResponse> {
1228
+ request.validate();
1229
+ let query = { };
1230
+ if (!$dara.isNull(request.callFrom)) {
1231
+ query["CallFrom"] = request.callFrom;
1232
+ }
1233
+
1234
+ if (!$dara.isNull(request.dmsUnit)) {
1235
+ query["DmsUnit"] = request.dmsUnit;
1236
+ }
1237
+
1238
+ if (!$dara.isNull(request.fileSize)) {
1239
+ query["FileSize"] = request.fileSize;
1240
+ }
1241
+
1242
+ if (!$dara.isNull(request.filename)) {
1243
+ query["Filename"] = request.filename;
1244
+ }
1245
+
1246
+ if (!$dara.isNull(request.uploadLocation)) {
1247
+ query["UploadLocation"] = request.uploadLocation;
1248
+ }
1249
+
1250
+ let req = new $OpenApiUtil.OpenApiRequest({
1251
+ query: OpenApiUtil.query(query),
1252
+ });
1253
+ let params = new $OpenApiUtil.Params({
1254
+ action: "FileUploadCallback",
1255
+ version: "2025-04-14",
1256
+ protocol: "HTTPS",
1257
+ pathname: "/",
1258
+ method: "POST",
1259
+ authType: "AK",
1260
+ style: "RPC",
1261
+ reqBodyType: "formData",
1262
+ bodyType: "json",
1263
+ });
1264
+ return $dara.cast<$_model.FileUploadCallbackResponse>(await this.callApi(params, req, runtime), new $_model.FileUploadCallbackResponse({}));
1265
+ }
1266
+
1267
+ /**
1268
+ * FileUploadCallback
1269
+ *
1270
+ * @param request - FileUploadCallbackRequest
1271
+ * @returns FileUploadCallbackResponse
1272
+ */
1273
+ async fileUploadCallback(request: $_model.FileUploadCallbackRequest): Promise<$_model.FileUploadCallbackResponse> {
1274
+ let runtime = new $dara.RuntimeOptions({ });
1275
+ return await this.fileUploadCallbackWithOptions(request, runtime);
1276
+ }
1277
+
1124
1278
  /**
1125
1279
  * 查询 Airflow
1126
1280
  *
@@ -0,0 +1,48 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteFileUploadRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * TrailCenter
9
+ */
10
+ callFrom?: string;
11
+ /**
12
+ * @example
13
+ * cn-hangzhou
14
+ */
15
+ dmsUnit?: string;
16
+ /**
17
+ * @remarks
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * f-8*******01m
22
+ */
23
+ fileId?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ callFrom: 'CallFrom',
27
+ dmsUnit: 'DmsUnit',
28
+ fileId: 'FileId',
29
+ };
30
+ }
31
+
32
+ static types(): { [key: string]: any } {
33
+ return {
34
+ callFrom: 'string',
35
+ dmsUnit: 'string',
36
+ fileId: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DeleteFileUploadResponseBody } from "./DeleteFileUploadResponseBody";
4
+
5
+
6
+ export class DeleteFileUploadResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DeleteFileUploadResponseBody;
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: DeleteFileUploadResponseBody,
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,88 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteFileUploadResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * f-8*******01m
9
+ */
10
+ fileId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ fileId: 'FileId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ fileId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
32
+ export class DeleteFileUploadResponseBody extends $dara.Model {
33
+ data?: DeleteFileUploadResponseBodyData;
34
+ /**
35
+ * @example
36
+ * success
37
+ */
38
+ errorCode?: string;
39
+ /**
40
+ * @example
41
+ * Specified parameter Tid is not valid.
42
+ */
43
+ errorMessage?: string;
44
+ /**
45
+ * @remarks
46
+ * Id of the request
47
+ *
48
+ * @example
49
+ * 67E910F2-4B62-5B0C-ACA3-7547695C****
50
+ */
51
+ requestId?: string;
52
+ /**
53
+ * @example
54
+ * true
55
+ */
56
+ success?: boolean;
57
+ static names(): { [key: string]: string } {
58
+ return {
59
+ data: 'Data',
60
+ errorCode: 'ErrorCode',
61
+ errorMessage: 'ErrorMessage',
62
+ requestId: 'RequestId',
63
+ success: 'Success',
64
+ };
65
+ }
66
+
67
+ static types(): { [key: string]: any } {
68
+ return {
69
+ data: DeleteFileUploadResponseBodyData,
70
+ errorCode: 'string',
71
+ errorMessage: 'string',
72
+ requestId: 'string',
73
+ success: 'boolean',
74
+ };
75
+ }
76
+
77
+ validate() {
78
+ if(this.data && typeof (this.data as any).validate === 'function') {
79
+ (this.data as any).validate();
80
+ }
81
+ super.validate();
82
+ }
83
+
84
+ constructor(map?: { [key: string]: any }) {
85
+ super(map);
86
+ }
87
+ }
88
+
@@ -0,0 +1,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeFileUploadSignatureRequest extends $dara.Model {
6
+ callFrom?: string;
7
+ /**
8
+ * @example
9
+ * cn-hangzhou
10
+ */
11
+ dmsUnit?: string;
12
+ static names(): { [key: string]: string } {
13
+ return {
14
+ callFrom: 'CallFrom',
15
+ dmsUnit: 'DmsUnit',
16
+ };
17
+ }
18
+
19
+ static types(): { [key: string]: any } {
20
+ return {
21
+ callFrom: 'string',
22
+ dmsUnit: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeFileUploadSignatureResponseBody } from "./DescribeFileUploadSignatureResponseBody";
4
+
5
+
6
+ export class DescribeFileUploadSignatureResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeFileUploadSignatureResponseBody;
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: DescribeFileUploadSignatureResponseBody,
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,129 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeFileUploadSignatureResponseBodyData extends $dara.Model {
6
+ ossCredential?: string;
7
+ /**
8
+ * @example
9
+ * 20260101T135341Z
10
+ */
11
+ ossDate?: string;
12
+ /**
13
+ * @example
14
+ * CAIS4gJ1q6Ft5B2yfSjIr5vPHMj4p+lHx/utUUjg13ptZ+5u3oDzkzz2IHhMdXlrCOgYt/8xnG1V6f8flrJ/ToQAX0HfatZq5ZkS9AqnaoXM/te496IFg5D9y7dIs8GgjqHoeOzcYI73WJXEMiLp9EJaxb/9ak/RPTiMOoGIjphKd8keWhLCAxNNGNZRIHkJyqZYTwyzU8ygKRn3mGHdIVN1sw5n8wNF5L+439eX52i17jS46JdM/9ysesH5NpQxbMwkDYnk5oEsKPqdihw3wgNR6aJ7gJZD/Tr6pdyHCzFTmU7ea7uEqYw3clYiOPBnRvEd8eKPnPl5q/HVm4Hs0wxKNuxOSCXZS4yp3MLeH+ekJgOGwWFHz9qnOLmtQXqV22tMCRpzXIj6Zlmz+/reI6iNW+Ory74mxSFbrz3ZP4yv+o+Yv3QbMVumcySkKVbBbVvnv0R8GNsIC2lMUbp+rfShhfFuG2QagAECCyigwAlSAryrFmteD+EVuvxvi0NE7zDJLbUkhek6dcY+/u5V5jcmvL67CQ7bTNk+9lV8WDCvtoCD9ucqTaHweJEd8fS2DaFedAMDf8BfZa2C1CTLhVXdSgE2WORYbMqidelRm7dH3fTbZVvryWKDaveDRLt5J/Qfs**********
15
+ */
16
+ ossSecurityToken?: string;
17
+ /**
18
+ * @example
19
+ * 9bebe0900716bdefaab899781c7bdfd614ec6ed711e0de5ddf6f5a**********
20
+ */
21
+ ossSignature?: string;
22
+ /**
23
+ * @example
24
+ * OSS4-HMAC-SHA256
25
+ */
26
+ ossSignatureVersion?: string;
27
+ /**
28
+ * @example
29
+ * eyJjb25kaXRpb25zIjpbeyJ4LW9zcy1jcmVkZW50aWFsIjoiU1RTLk5YeldyTEo2ZnA5RlNuUTN6OGthQjFFWH**********
30
+ */
31
+ policy?: string;
32
+ uploadDir?: string;
33
+ /**
34
+ * @example
35
+ * https://**********.oss-cn-hangzhou.aliyuncs.com
36
+ */
37
+ uploadHost?: string;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ ossCredential: 'OssCredential',
41
+ ossDate: 'OssDate',
42
+ ossSecurityToken: 'OssSecurityToken',
43
+ ossSignature: 'OssSignature',
44
+ ossSignatureVersion: 'OssSignatureVersion',
45
+ policy: 'Policy',
46
+ uploadDir: 'UploadDir',
47
+ uploadHost: 'UploadHost',
48
+ };
49
+ }
50
+
51
+ static types(): { [key: string]: any } {
52
+ return {
53
+ ossCredential: 'string',
54
+ ossDate: 'string',
55
+ ossSecurityToken: 'string',
56
+ ossSignature: 'string',
57
+ ossSignatureVersion: 'string',
58
+ policy: 'string',
59
+ uploadDir: 'string',
60
+ uploadHost: 'string',
61
+ };
62
+ }
63
+
64
+ validate() {
65
+ super.validate();
66
+ }
67
+
68
+ constructor(map?: { [key: string]: any }) {
69
+ super(map);
70
+ }
71
+ }
72
+
73
+ export class DescribeFileUploadSignatureResponseBody extends $dara.Model {
74
+ data?: DescribeFileUploadSignatureResponseBodyData;
75
+ /**
76
+ * @example
77
+ * success
78
+ */
79
+ errorCode?: string;
80
+ /**
81
+ * @example
82
+ * Specified parameter Tid is not valid.
83
+ */
84
+ errorMessage?: string;
85
+ /**
86
+ * @remarks
87
+ * Id of the request
88
+ *
89
+ * @example
90
+ * 0FEE5834-C55A-5995-A6A3-B443304965BD
91
+ */
92
+ requestId?: string;
93
+ /**
94
+ * @example
95
+ * true
96
+ */
97
+ success?: boolean;
98
+ static names(): { [key: string]: string } {
99
+ return {
100
+ data: 'Data',
101
+ errorCode: 'ErrorCode',
102
+ errorMessage: 'ErrorMessage',
103
+ requestId: 'RequestId',
104
+ success: 'Success',
105
+ };
106
+ }
107
+
108
+ static types(): { [key: string]: any } {
109
+ return {
110
+ data: DescribeFileUploadSignatureResponseBodyData,
111
+ errorCode: 'string',
112
+ errorMessage: 'string',
113
+ requestId: 'string',
114
+ success: 'boolean',
115
+ };
116
+ }
117
+
118
+ validate() {
119
+ if(this.data && typeof (this.data as any).validate === 'function') {
120
+ (this.data as any).validate();
121
+ }
122
+ super.validate();
123
+ }
124
+
125
+ constructor(map?: { [key: string]: any }) {
126
+ super(map);
127
+ }
128
+ }
129
+
@@ -0,0 +1,62 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class FileUploadCallbackRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * TrailCenter
9
+ */
10
+ callFrom?: string;
11
+ /**
12
+ * @example
13
+ * cn-hangzhou
14
+ */
15
+ dmsUnit?: string;
16
+ /**
17
+ * @example
18
+ * 8110
19
+ */
20
+ fileSize?: number;
21
+ /**
22
+ * @remarks
23
+ * This parameter is required.
24
+ *
25
+ * @example
26
+ * conversion_metrics.csv
27
+ */
28
+ filename?: string;
29
+ /**
30
+ * @remarks
31
+ * This parameter is required.
32
+ */
33
+ uploadLocation?: string;
34
+ static names(): { [key: string]: string } {
35
+ return {
36
+ callFrom: 'CallFrom',
37
+ dmsUnit: 'DmsUnit',
38
+ fileSize: 'FileSize',
39
+ filename: 'Filename',
40
+ uploadLocation: 'UploadLocation',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ callFrom: 'string',
47
+ dmsUnit: 'string',
48
+ fileSize: 'number',
49
+ filename: 'string',
50
+ uploadLocation: 'string',
51
+ };
52
+ }
53
+
54
+ validate() {
55
+ super.validate();
56
+ }
57
+
58
+ constructor(map?: { [key: string]: any }) {
59
+ super(map);
60
+ }
61
+ }
62
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { FileUploadCallbackResponseBody } from "./FileUploadCallbackResponseBody";
4
+
5
+
6
+ export class FileUploadCallbackResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: FileUploadCallbackResponseBody;
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: FileUploadCallbackResponseBody,
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
+