@alicloud/agentloop20260520 2.1.0 → 2.2.1
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 +52 -0
- package/dist/client.js +135 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreatePipelineRequest.d.ts +309 -0
- package/dist/models/CreatePipelineRequest.js +293 -0
- package/dist/models/CreatePipelineRequest.js.map +1 -0
- package/dist/models/CreatePipelineResponse.d.ts +19 -0
- package/dist/models/CreatePipelineResponse.js +69 -0
- package/dist/models/CreatePipelineResponse.js.map +1 -0
- package/dist/models/CreatePipelineResponseBody.d.ts +21 -0
- package/dist/models/CreatePipelineResponseBody.js +58 -0
- package/dist/models/CreatePipelineResponseBody.js.map +1 -0
- package/dist/models/DataFilter.d.ts +1 -0
- package/dist/models/DataFilter.js +5 -0
- package/dist/models/DataFilter.js.map +1 -1
- package/dist/models/ExecuteQueryRequest.d.ts +1 -0
- package/dist/models/ExecuteQueryRequest.js +2 -0
- package/dist/models/ExecuteQueryRequest.js.map +1 -1
- package/dist/models/GetDatasetResponseBody.d.ts +1 -0
- package/dist/models/GetDatasetResponseBody.js +2 -0
- package/dist/models/GetDatasetResponseBody.js.map +1 -1
- package/dist/models/ListDatasetsRequest.d.ts +1 -1
- package/dist/models/ListDatasetsResponseBody.d.ts +8 -7
- package/dist/models/ListDatasetsResponseBody.js +2 -0
- package/dist/models/ListDatasetsResponseBody.js.map +1 -1
- package/dist/models/PreviewPipelineRequest.d.ts +152 -0
- package/dist/models/PreviewPipelineRequest.js +165 -0
- package/dist/models/PreviewPipelineRequest.js.map +1 -0
- package/dist/models/PreviewPipelineResponse.d.ts +19 -0
- package/dist/models/PreviewPipelineResponse.js +69 -0
- package/dist/models/PreviewPipelineResponse.js.map +1 -0
- package/dist/models/PreviewPipelineResponseBody.d.ts +168 -0
- package/dist/models/PreviewPipelineResponseBody.js +128 -0
- package/dist/models/PreviewPipelineResponseBody.js.map +1 -0
- package/dist/models/UpdateContextStoreRequest.d.ts +8 -3
- package/dist/models/UpdateContextStoreRequest.js +2 -0
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/model.d.ts +20 -0
- package/dist/models/model.js +45 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +152 -0
- package/src/models/CreatePipelineRequest.ts +474 -0
- package/src/models/CreatePipelineResponse.ts +40 -0
- package/src/models/CreatePipelineResponseBody.ts +34 -0
- package/src/models/DataFilter.ts +6 -0
- package/src/models/ExecuteQueryRequest.ts +3 -0
- package/src/models/GetDatasetResponseBody.ts +3 -0
- package/src/models/ListDatasetsRequest.ts +1 -1
- package/src/models/ListDatasetsResponseBody.ts +10 -7
- package/src/models/PreviewPipelineRequest.ts +234 -0
- package/src/models/PreviewPipelineResponse.ts +40 -0
- package/src/models/PreviewPipelineResponseBody.ts +238 -0
- package/src/models/UpdateContextStoreRequest.ts +10 -3
- package/src/models/model.ts +20 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreatePipelineResponseBody } from "./CreatePipelineResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreatePipelineResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreatePipelineResponseBody;
|
|
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: CreatePipelineResponseBody,
|
|
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,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreatePipelineResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The request ID, which is used to locate and troubleshoot issues.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
12
|
+
*/
|
|
13
|
+
requestId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
requestId: 'requestId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
requestId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
package/src/models/DataFilter.ts
CHANGED
|
@@ -35,12 +35,14 @@ export class DataFilter extends $dara.Model {
|
|
|
35
35
|
* 100
|
|
36
36
|
*/
|
|
37
37
|
samplingRate?: number;
|
|
38
|
+
serviceNames?: string[];
|
|
38
39
|
static names(): { [key: string]: string } {
|
|
39
40
|
return {
|
|
40
41
|
maxRecords: 'maxRecords',
|
|
41
42
|
provided: 'provided',
|
|
42
43
|
query: 'query',
|
|
43
44
|
samplingRate: 'samplingRate',
|
|
45
|
+
serviceNames: 'serviceNames',
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -50,6 +52,7 @@ export class DataFilter extends $dara.Model {
|
|
|
50
52
|
provided: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
51
53
|
query: 'string',
|
|
52
54
|
samplingRate: 'number',
|
|
55
|
+
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -57,6 +60,9 @@ export class DataFilter extends $dara.Model {
|
|
|
57
60
|
if(this.provided) {
|
|
58
61
|
$dara.Model.validateMap(this.provided);
|
|
59
62
|
}
|
|
63
|
+
if(Array.isArray(this.serviceNames)) {
|
|
64
|
+
$dara.Model.validateArray(this.serviceNames);
|
|
65
|
+
}
|
|
60
66
|
super.validate();
|
|
61
67
|
}
|
|
62
68
|
|
|
@@ -28,6 +28,7 @@ export class ExecuteQueryRequest extends $dara.Model {
|
|
|
28
28
|
* SQL
|
|
29
29
|
*/
|
|
30
30
|
type?: string;
|
|
31
|
+
version?: string;
|
|
31
32
|
static names(): { [key: string]: string } {
|
|
32
33
|
return {
|
|
33
34
|
from: 'from',
|
|
@@ -37,6 +38,7 @@ export class ExecuteQueryRequest extends $dara.Model {
|
|
|
37
38
|
query: 'query',
|
|
38
39
|
to: 'to',
|
|
39
40
|
type: 'type',
|
|
41
|
+
version: 'version',
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -49,6 +51,7 @@ export class ExecuteQueryRequest extends $dara.Model {
|
|
|
49
51
|
query: 'string',
|
|
50
52
|
to: 'number',
|
|
51
53
|
type: 'string',
|
|
54
|
+
version: 'string',
|
|
52
55
|
};
|
|
53
56
|
}
|
|
54
57
|
|
|
@@ -38,6 +38,7 @@ export class GetDatasetResponseBody extends $dara.Model {
|
|
|
38
38
|
* Product FAQ dataset for semantic search
|
|
39
39
|
*/
|
|
40
40
|
description?: string;
|
|
41
|
+
isFavorite?: boolean;
|
|
41
42
|
/**
|
|
42
43
|
* @remarks
|
|
43
44
|
* The region ID.
|
|
@@ -75,6 +76,7 @@ export class GetDatasetResponseBody extends $dara.Model {
|
|
|
75
76
|
createTime: 'createTime',
|
|
76
77
|
datasetName: 'datasetName',
|
|
77
78
|
description: 'description',
|
|
79
|
+
isFavorite: 'isFavorite',
|
|
78
80
|
regionId: 'regionId',
|
|
79
81
|
requestId: 'requestId',
|
|
80
82
|
schema: 'schema',
|
|
@@ -88,6 +90,7 @@ export class GetDatasetResponseBody extends $dara.Model {
|
|
|
88
90
|
createTime: 'string',
|
|
89
91
|
datasetName: 'string',
|
|
90
92
|
description: 'string',
|
|
93
|
+
isFavorite: 'boolean',
|
|
91
94
|
regionId: 'string',
|
|
92
95
|
requestId: 'string',
|
|
93
96
|
schema: { 'type': 'map', 'keyType': 'string', 'valueType': IndexKey },
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListDatasetsResponseBodyDatasets extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The agent space name.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* sop-agent
|
|
@@ -13,7 +13,7 @@ export class ListDatasetsResponseBodyDatasets extends $dara.Model {
|
|
|
13
13
|
agentSpace?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The time
|
|
16
|
+
* The creation time.
|
|
17
17
|
*
|
|
18
18
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
19
19
|
*
|
|
@@ -23,7 +23,7 @@ export class ListDatasetsResponseBodyDatasets extends $dara.Model {
|
|
|
23
23
|
createTime?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The name
|
|
26
|
+
* The dataset name.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* product_faq_dataset
|
|
@@ -31,12 +31,13 @@ export class ListDatasetsResponseBodyDatasets extends $dara.Model {
|
|
|
31
31
|
datasetName?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The description
|
|
34
|
+
* The dataset description.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* Product FAQ dataset for semantic search
|
|
38
38
|
*/
|
|
39
39
|
description?: string;
|
|
40
|
+
isFavorite?: boolean;
|
|
40
41
|
/**
|
|
41
42
|
* @remarks
|
|
42
43
|
* The region ID.
|
|
@@ -47,7 +48,7 @@ export class ListDatasetsResponseBodyDatasets extends $dara.Model {
|
|
|
47
48
|
regionId?: string;
|
|
48
49
|
/**
|
|
49
50
|
* @remarks
|
|
50
|
-
* The time
|
|
51
|
+
* The update time.
|
|
51
52
|
*
|
|
52
53
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
53
54
|
*
|
|
@@ -61,6 +62,7 @@ export class ListDatasetsResponseBodyDatasets extends $dara.Model {
|
|
|
61
62
|
createTime: 'createTime',
|
|
62
63
|
datasetName: 'datasetName',
|
|
63
64
|
description: 'description',
|
|
65
|
+
isFavorite: 'isFavorite',
|
|
64
66
|
regionId: 'regionId',
|
|
65
67
|
updateTime: 'updateTime',
|
|
66
68
|
};
|
|
@@ -72,6 +74,7 @@ export class ListDatasetsResponseBodyDatasets extends $dara.Model {
|
|
|
72
74
|
createTime: 'string',
|
|
73
75
|
datasetName: 'string',
|
|
74
76
|
description: 'string',
|
|
77
|
+
isFavorite: 'boolean',
|
|
75
78
|
regionId: 'string',
|
|
76
79
|
updateTime: 'string',
|
|
77
80
|
};
|
|
@@ -102,9 +105,9 @@ export class ListDatasetsResponseBody extends $dara.Model {
|
|
|
102
105
|
maxResults?: number;
|
|
103
106
|
/**
|
|
104
107
|
* @remarks
|
|
105
|
-
* The
|
|
108
|
+
* The token for the next page of results.
|
|
106
109
|
*
|
|
107
|
-
* If the total number of results exceeds the maxResults limit, the
|
|
110
|
+
* If the total number of results exceeds the maxResults limit, the data is truncated. You can use nextToken to query the next page of data.
|
|
108
111
|
*
|
|
109
112
|
* @example
|
|
110
113
|
* umaQfI7x758Ns4TgWrj8yA3fYlnk7dJgsfhMrSViRY8=
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PreviewPipelineRequestPipelineNodes extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The node ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* node-1
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The node parameters in key-value structure. The parameters vary depending on the node type.
|
|
17
|
+
*/
|
|
18
|
+
parameters?: { [key: string]: any };
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The node type.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* transform
|
|
25
|
+
*/
|
|
26
|
+
type?: string;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
id: 'id',
|
|
30
|
+
parameters: 'parameters',
|
|
31
|
+
type: 'type',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
id: 'string',
|
|
38
|
+
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
39
|
+
type: 'string',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(this.parameters) {
|
|
45
|
+
$dara.Model.validateMap(this.parameters);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class PreviewPipelineRequestPipeline extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The list of nodes.
|
|
59
|
+
*/
|
|
60
|
+
nodes?: PreviewPipelineRequestPipelineNodes[];
|
|
61
|
+
static names(): { [key: string]: string } {
|
|
62
|
+
return {
|
|
63
|
+
nodes: 'nodes',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
nodes: { 'type': 'array', 'itemType': PreviewPipelineRequestPipelineNodes },
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
validate() {
|
|
74
|
+
if(Array.isArray(this.nodes)) {
|
|
75
|
+
$dara.Model.validateArray(this.nodes);
|
|
76
|
+
}
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class PreviewPipelineRequestSourceLogstore extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The name of the SLS Logstore.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* my-sls-logstore
|
|
92
|
+
*/
|
|
93
|
+
logstore?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The name of the SLS project.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* my-sls-project
|
|
100
|
+
*/
|
|
101
|
+
project?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* The data filtered query statement in SLS query/analysis syntax.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* * | SELECT *
|
|
108
|
+
*/
|
|
109
|
+
query?: string;
|
|
110
|
+
static names(): { [key: string]: string } {
|
|
111
|
+
return {
|
|
112
|
+
logstore: 'logstore',
|
|
113
|
+
project: 'project',
|
|
114
|
+
query: 'query',
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
static types(): { [key: string]: any } {
|
|
119
|
+
return {
|
|
120
|
+
logstore: 'string',
|
|
121
|
+
project: 'string',
|
|
122
|
+
query: 'string',
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
validate() {
|
|
127
|
+
super.validate();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(map?: { [key: string]: any }) {
|
|
131
|
+
super(map);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export class PreviewPipelineRequestSource extends $dara.Model {
|
|
136
|
+
/**
|
|
137
|
+
* @remarks
|
|
138
|
+
* The SLS Logstore datasource config.
|
|
139
|
+
*/
|
|
140
|
+
logstore?: PreviewPipelineRequestSourceLogstore;
|
|
141
|
+
/**
|
|
142
|
+
* @remarks
|
|
143
|
+
* The data source type. Currently, only Simple Log Service (SLS) is supported.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* SLS
|
|
147
|
+
*/
|
|
148
|
+
type?: string;
|
|
149
|
+
static names(): { [key: string]: string } {
|
|
150
|
+
return {
|
|
151
|
+
logstore: 'logstore',
|
|
152
|
+
type: 'type',
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static types(): { [key: string]: any } {
|
|
157
|
+
return {
|
|
158
|
+
logstore: PreviewPipelineRequestSourceLogstore,
|
|
159
|
+
type: 'string',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
validate() {
|
|
164
|
+
if(this.logstore && typeof (this.logstore as any).validate === 'function') {
|
|
165
|
+
(this.logstore as any).validate();
|
|
166
|
+
}
|
|
167
|
+
super.validate();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
constructor(map?: { [key: string]: any }) {
|
|
171
|
+
super(map);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export class PreviewPipelineRequest extends $dara.Model {
|
|
176
|
+
/**
|
|
177
|
+
* @remarks
|
|
178
|
+
* The start time of the preview data window, in UNIX seconds.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* 1735660800
|
|
182
|
+
*/
|
|
183
|
+
fromTime?: number;
|
|
184
|
+
/**
|
|
185
|
+
* @remarks
|
|
186
|
+
* The pipeline configuration, which defines the node orchestration.
|
|
187
|
+
*/
|
|
188
|
+
pipeline?: PreviewPipelineRequestPipeline;
|
|
189
|
+
/**
|
|
190
|
+
* @remarks
|
|
191
|
+
* The pipeline data source.
|
|
192
|
+
*/
|
|
193
|
+
source?: PreviewPipelineRequestSource;
|
|
194
|
+
/**
|
|
195
|
+
* @remarks
|
|
196
|
+
* The end time of the preview data window, in UNIX seconds.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* 1735747200
|
|
200
|
+
*/
|
|
201
|
+
toTime?: number;
|
|
202
|
+
static names(): { [key: string]: string } {
|
|
203
|
+
return {
|
|
204
|
+
fromTime: 'fromTime',
|
|
205
|
+
pipeline: 'pipeline',
|
|
206
|
+
source: 'source',
|
|
207
|
+
toTime: 'toTime',
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
static types(): { [key: string]: any } {
|
|
212
|
+
return {
|
|
213
|
+
fromTime: 'number',
|
|
214
|
+
pipeline: PreviewPipelineRequestPipeline,
|
|
215
|
+
source: PreviewPipelineRequestSource,
|
|
216
|
+
toTime: 'number',
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
validate() {
|
|
221
|
+
if(this.pipeline && typeof (this.pipeline as any).validate === 'function') {
|
|
222
|
+
(this.pipeline as any).validate();
|
|
223
|
+
}
|
|
224
|
+
if(this.source && typeof (this.source as any).validate === 'function') {
|
|
225
|
+
(this.source as any).validate();
|
|
226
|
+
}
|
|
227
|
+
super.validate();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
constructor(map?: { [key: string]: any }) {
|
|
231
|
+
super(map);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { PreviewPipelineResponseBody } from "./PreviewPipelineResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class PreviewPipelineResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: PreviewPipelineResponseBody;
|
|
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: PreviewPipelineResponseBody,
|
|
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
|
+
|