@alicloud/apig20240327 5.2.1 → 5.3.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 +72 -6
- package/dist/client.js +192 -6
- package/dist/client.js.map +1 -1
- package/dist/models/CreateServiceVersionRequest.d.ts +9 -0
- package/dist/models/CreateServiceVersionRequest.js.map +1 -1
- package/dist/models/CreateServiceVersionResponseBody.d.ts +9 -0
- package/dist/models/CreateServiceVersionResponseBody.js.map +1 -1
- package/dist/models/CreateSourceRequest.d.ts +80 -0
- package/dist/models/CreateSourceRequest.js +141 -0
- package/dist/models/CreateSourceRequest.js.map +1 -0
- package/dist/models/CreateSourceResponse.d.ts +19 -0
- package/dist/models/CreateSourceResponse.js +69 -0
- package/dist/models/CreateSourceResponse.js.map +1 -0
- package/dist/models/CreateSourceResponseBody.d.ts +46 -0
- package/dist/models/CreateSourceResponseBody.js +86 -0
- package/dist/models/CreateSourceResponseBody.js.map +1 -0
- package/dist/models/DeleteServiceVersionResponseBody.d.ts +9 -0
- package/dist/models/DeleteServiceVersionResponseBody.js.map +1 -1
- package/dist/models/DeleteSourceResponse.d.ts +19 -0
- package/dist/models/DeleteSourceResponse.js +69 -0
- package/dist/models/DeleteSourceResponse.js.map +1 -0
- package/dist/models/DeleteSourceResponseBody.d.ts +28 -0
- package/dist/models/DeleteSourceResponseBody.js +62 -0
- package/dist/models/DeleteSourceResponseBody.js.map +1 -0
- package/dist/models/GetResourceOverviewRequest.d.ts +4 -0
- package/dist/models/GetResourceOverviewRequest.js.map +1 -1
- package/dist/models/GetResourceOverviewResponseBody.d.ts +57 -0
- package/dist/models/GetResourceOverviewResponseBody.js +62 -1
- package/dist/models/GetResourceOverviewResponseBody.js.map +1 -1
- package/dist/models/GetSourceResponse.d.ts +19 -0
- package/dist/models/GetSourceResponse.js +69 -0
- package/dist/models/GetSourceResponse.js.map +1 -0
- package/dist/models/GetSourceResponseBody.d.ts +125 -0
- package/dist/models/GetSourceResponseBody.js +150 -0
- package/dist/models/GetSourceResponseBody.js.map +1 -0
- package/dist/models/RiskCheckResults.d.ts +188 -0
- package/dist/models/RiskCheckResults.js +145 -0
- package/dist/models/RiskCheckResults.js.map +1 -0
- package/dist/models/UpdateServiceRequest.d.ts +113 -0
- package/dist/models/UpdateServiceRequest.js +185 -0
- package/dist/models/UpdateServiceRequest.js.map +1 -0
- package/dist/models/UpdateServiceResponse.d.ts +19 -0
- package/dist/models/UpdateServiceResponse.js +69 -0
- package/dist/models/UpdateServiceResponse.js.map +1 -0
- package/dist/models/UpdateServiceResponseBody.d.ts +28 -0
- package/dist/models/UpdateServiceResponseBody.js +62 -0
- package/dist/models/UpdateServiceResponseBody.js.map +1 -0
- package/dist/models/UpdateServiceVersionRequest.d.ts +7 -0
- package/dist/models/UpdateServiceVersionRequest.js.map +1 -1
- package/dist/models/UpdateServiceVersionResponseBody.d.ts +9 -0
- package/dist/models/UpdateServiceVersionResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +25 -0
- package/dist/models/model.js +63 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +214 -6
- package/src/models/CreateServiceVersionRequest.ts +9 -0
- package/src/models/CreateServiceVersionResponseBody.ts +9 -0
- package/src/models/CreateSourceRequest.ts +149 -0
- package/src/models/CreateSourceResponse.ts +40 -0
- package/src/models/CreateSourceResponseBody.ts +78 -0
- package/src/models/DeleteServiceVersionResponseBody.ts +9 -0
- package/src/models/DeleteSourceResponse.ts +40 -0
- package/src/models/DeleteSourceResponseBody.ts +45 -0
- package/src/models/GetResourceOverviewRequest.ts +4 -0
- package/src/models/GetResourceOverviewResponseBody.ts +100 -0
- package/src/models/GetSourceResponse.ts +40 -0
- package/src/models/GetSourceResponseBody.ts +203 -0
- package/src/models/RiskCheckResults.ts +268 -0
- package/src/models/UpdateServiceRequest.ts +224 -0
- package/src/models/UpdateServiceResponse.ts +40 -0
- package/src/models/UpdateServiceResponseBody.ts +45 -0
- package/src/models/UpdateServiceVersionRequest.ts +7 -0
- package/src/models/UpdateServiceVersionResponseBody.ts +9 -0
- package/src/models/model.ts +25 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateSourceResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* src-crdddallhtgt***
|
|
9
|
+
*/
|
|
10
|
+
sourceId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
sourceId: 'sourceId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
sourceId: '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 CreateSourceResponseBody extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* Ok
|
|
36
|
+
*/
|
|
37
|
+
code?: string;
|
|
38
|
+
data?: CreateSourceResponseBodyData;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
message?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* 393E2630-DBE7-5221-AB35-9E740675491A
|
|
47
|
+
*/
|
|
48
|
+
requestId?: string;
|
|
49
|
+
static names(): { [key: string]: string } {
|
|
50
|
+
return {
|
|
51
|
+
code: 'code',
|
|
52
|
+
data: 'data',
|
|
53
|
+
message: 'message',
|
|
54
|
+
requestId: 'requestId',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static types(): { [key: string]: any } {
|
|
59
|
+
return {
|
|
60
|
+
code: 'string',
|
|
61
|
+
data: CreateSourceResponseBodyData,
|
|
62
|
+
message: 'string',
|
|
63
|
+
requestId: 'string',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
validate() {
|
|
68
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
69
|
+
(this.data as any).validate();
|
|
70
|
+
}
|
|
71
|
+
super.validate();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
constructor(map?: { [key: string]: any }) {
|
|
75
|
+
super(map);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -4,16 +4,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DeleteServiceVersionResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The status code returned.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* Ok
|
|
9
12
|
*/
|
|
10
13
|
code?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The response message returned.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* success
|
|
14
20
|
*/
|
|
15
21
|
message?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The request ID.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* A1994B10-C6A8-58FA-8347-6A08B0D4EFDE
|
|
19
28
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteSourceResponseBody } from "./DeleteSourceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteSourceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteSourceResponseBody;
|
|
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: DeleteSourceResponseBody,
|
|
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,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteSourceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Ok
|
|
9
|
+
*/
|
|
10
|
+
code?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* success
|
|
14
|
+
*/
|
|
15
|
+
message?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* C67DED2B-F19B-5BEC-88C1-D6EB854CD0D4
|
|
19
|
+
*/
|
|
20
|
+
requestId?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
code: 'code',
|
|
24
|
+
message: 'message',
|
|
25
|
+
requestId: 'requestId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
code: 'string',
|
|
32
|
+
message: 'string',
|
|
33
|
+
requestId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -82,6 +82,100 @@ export class GetResourceOverviewResponseBodyDataGateway extends $dara.Model {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export class GetResourceOverviewResponseBodyDataRiskOverviewRiskDetails extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* gw-xxxxxx
|
|
89
|
+
*/
|
|
90
|
+
gatewayId?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* test-gateway
|
|
94
|
+
*/
|
|
95
|
+
gatewayName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* LOW
|
|
99
|
+
*/
|
|
100
|
+
riskLevel?: string;
|
|
101
|
+
riskNames?: string[];
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* 100
|
|
105
|
+
*/
|
|
106
|
+
score?: string;
|
|
107
|
+
static names(): { [key: string]: string } {
|
|
108
|
+
return {
|
|
109
|
+
gatewayId: 'gatewayId',
|
|
110
|
+
gatewayName: 'gatewayName',
|
|
111
|
+
riskLevel: 'riskLevel',
|
|
112
|
+
riskNames: 'riskNames',
|
|
113
|
+
score: 'score',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
static types(): { [key: string]: any } {
|
|
118
|
+
return {
|
|
119
|
+
gatewayId: 'string',
|
|
120
|
+
gatewayName: 'string',
|
|
121
|
+
riskLevel: 'string',
|
|
122
|
+
riskNames: { 'type': 'array', 'itemType': 'string' },
|
|
123
|
+
score: 'string',
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
validate() {
|
|
128
|
+
if(Array.isArray(this.riskNames)) {
|
|
129
|
+
$dara.Model.validateArray(this.riskNames);
|
|
130
|
+
}
|
|
131
|
+
super.validate();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
constructor(map?: { [key: string]: any }) {
|
|
135
|
+
super(map);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export class GetResourceOverviewResponseBodyDataRiskOverview extends $dara.Model {
|
|
140
|
+
/**
|
|
141
|
+
* @example
|
|
142
|
+
* 1
|
|
143
|
+
*/
|
|
144
|
+
count?: string;
|
|
145
|
+
riskDetails?: GetResourceOverviewResponseBodyDataRiskOverviewRiskDetails[];
|
|
146
|
+
/**
|
|
147
|
+
* @example
|
|
148
|
+
* LOW
|
|
149
|
+
*/
|
|
150
|
+
riskLevel?: string;
|
|
151
|
+
static names(): { [key: string]: string } {
|
|
152
|
+
return {
|
|
153
|
+
count: 'count',
|
|
154
|
+
riskDetails: 'riskDetails',
|
|
155
|
+
riskLevel: 'riskLevel',
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
static types(): { [key: string]: any } {
|
|
160
|
+
return {
|
|
161
|
+
count: 'string',
|
|
162
|
+
riskDetails: { 'type': 'array', 'itemType': GetResourceOverviewResponseBodyDataRiskOverviewRiskDetails },
|
|
163
|
+
riskLevel: 'string',
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
validate() {
|
|
168
|
+
if(Array.isArray(this.riskDetails)) {
|
|
169
|
+
$dara.Model.validateArray(this.riskDetails);
|
|
170
|
+
}
|
|
171
|
+
super.validate();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
constructor(map?: { [key: string]: any }) {
|
|
175
|
+
super(map);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
85
179
|
export class GetResourceOverviewResponseBodyData extends $dara.Model {
|
|
86
180
|
/**
|
|
87
181
|
* @remarks
|
|
@@ -93,10 +187,12 @@ export class GetResourceOverviewResponseBodyData extends $dara.Model {
|
|
|
93
187
|
* Gateway information.
|
|
94
188
|
*/
|
|
95
189
|
gateway?: GetResourceOverviewResponseBodyDataGateway;
|
|
190
|
+
riskOverview?: GetResourceOverviewResponseBodyDataRiskOverview[];
|
|
96
191
|
static names(): { [key: string]: string } {
|
|
97
192
|
return {
|
|
98
193
|
api: 'api',
|
|
99
194
|
gateway: 'gateway',
|
|
195
|
+
riskOverview: 'riskOverview',
|
|
100
196
|
};
|
|
101
197
|
}
|
|
102
198
|
|
|
@@ -104,6 +200,7 @@ export class GetResourceOverviewResponseBodyData extends $dara.Model {
|
|
|
104
200
|
return {
|
|
105
201
|
api: GetResourceOverviewResponseBodyDataApi,
|
|
106
202
|
gateway: GetResourceOverviewResponseBodyDataGateway,
|
|
203
|
+
riskOverview: { 'type': 'array', 'itemType': GetResourceOverviewResponseBodyDataRiskOverview },
|
|
107
204
|
};
|
|
108
205
|
}
|
|
109
206
|
|
|
@@ -114,6 +211,9 @@ export class GetResourceOverviewResponseBodyData extends $dara.Model {
|
|
|
114
211
|
if(this.gateway && typeof (this.gateway as any).validate === 'function') {
|
|
115
212
|
(this.gateway as any).validate();
|
|
116
213
|
}
|
|
214
|
+
if(Array.isArray(this.riskOverview)) {
|
|
215
|
+
$dara.Model.validateArray(this.riskOverview);
|
|
216
|
+
}
|
|
117
217
|
super.validate();
|
|
118
218
|
}
|
|
119
219
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetSourceResponseBody } from "./GetSourceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetSourceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetSourceResponseBody;
|
|
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: GetSourceResponseBody,
|
|
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,203 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetSourceResponseBodyDataK8SSourceInfo extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* c2d290b2d8b5d4935864cace5f0173f31
|
|
9
|
+
*/
|
|
10
|
+
clusterId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
clusterId: 'clusterId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
clusterId: '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 GetSourceResponseBodyDataNacosSourceInfo extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* mse
|
|
36
|
+
*/
|
|
37
|
+
address?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @example
|
|
40
|
+
* fluss-cn-w7k4hann601
|
|
41
|
+
*/
|
|
42
|
+
clusterId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* hgprecn-cn-cfn47q7oh001
|
|
46
|
+
*/
|
|
47
|
+
instanceId?: string;
|
|
48
|
+
static names(): { [key: string]: string } {
|
|
49
|
+
return {
|
|
50
|
+
address: 'address',
|
|
51
|
+
clusterId: 'clusterId',
|
|
52
|
+
instanceId: 'instanceId',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static types(): { [key: string]: any } {
|
|
57
|
+
return {
|
|
58
|
+
address: 'string',
|
|
59
|
+
clusterId: 'string',
|
|
60
|
+
instanceId: '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 GetSourceResponseBodyData extends $dara.Model {
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* 1719386834548
|
|
77
|
+
*/
|
|
78
|
+
createTimestamp?: number;
|
|
79
|
+
/**
|
|
80
|
+
* @example
|
|
81
|
+
* gw-cq2vundlhtg***
|
|
82
|
+
*/
|
|
83
|
+
gatewayId?: string;
|
|
84
|
+
k8SSourceInfo?: GetSourceResponseBodyDataK8SSourceInfo;
|
|
85
|
+
nacosSourceInfo?: GetSourceResponseBodyDataNacosSourceInfo;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* import-test
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* rg-aekz4us4iruleja
|
|
94
|
+
*/
|
|
95
|
+
resourceGroupId?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* src-crdddallhtgt***
|
|
99
|
+
*/
|
|
100
|
+
sourceId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* @example
|
|
103
|
+
* K8S
|
|
104
|
+
*/
|
|
105
|
+
type?: string;
|
|
106
|
+
/**
|
|
107
|
+
* @example
|
|
108
|
+
* 1719386834548
|
|
109
|
+
*/
|
|
110
|
+
updateTimestamp?: number;
|
|
111
|
+
static names(): { [key: string]: string } {
|
|
112
|
+
return {
|
|
113
|
+
createTimestamp: 'createTimestamp',
|
|
114
|
+
gatewayId: 'gatewayId',
|
|
115
|
+
k8SSourceInfo: 'k8SSourceInfo',
|
|
116
|
+
nacosSourceInfo: 'nacosSourceInfo',
|
|
117
|
+
name: 'name',
|
|
118
|
+
resourceGroupId: 'resourceGroupId',
|
|
119
|
+
sourceId: 'sourceId',
|
|
120
|
+
type: 'type',
|
|
121
|
+
updateTimestamp: 'updateTimestamp',
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static types(): { [key: string]: any } {
|
|
126
|
+
return {
|
|
127
|
+
createTimestamp: 'number',
|
|
128
|
+
gatewayId: 'string',
|
|
129
|
+
k8SSourceInfo: GetSourceResponseBodyDataK8SSourceInfo,
|
|
130
|
+
nacosSourceInfo: GetSourceResponseBodyDataNacosSourceInfo,
|
|
131
|
+
name: 'string',
|
|
132
|
+
resourceGroupId: 'string',
|
|
133
|
+
sourceId: 'string',
|
|
134
|
+
type: 'string',
|
|
135
|
+
updateTimestamp: 'number',
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
validate() {
|
|
140
|
+
if(this.k8SSourceInfo && typeof (this.k8SSourceInfo as any).validate === 'function') {
|
|
141
|
+
(this.k8SSourceInfo as any).validate();
|
|
142
|
+
}
|
|
143
|
+
if(this.nacosSourceInfo && typeof (this.nacosSourceInfo as any).validate === 'function') {
|
|
144
|
+
(this.nacosSourceInfo as any).validate();
|
|
145
|
+
}
|
|
146
|
+
super.validate();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
constructor(map?: { [key: string]: any }) {
|
|
150
|
+
super(map);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export class GetSourceResponseBody extends $dara.Model {
|
|
155
|
+
/**
|
|
156
|
+
* @example
|
|
157
|
+
* Ok
|
|
158
|
+
*/
|
|
159
|
+
code?: string;
|
|
160
|
+
data?: GetSourceResponseBodyData;
|
|
161
|
+
/**
|
|
162
|
+
* @example
|
|
163
|
+
* success
|
|
164
|
+
*/
|
|
165
|
+
message?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* Id of the request
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* DE10E3C0-A676-5169-812D-6610AACBFAFF
|
|
172
|
+
*/
|
|
173
|
+
requestId?: string;
|
|
174
|
+
static names(): { [key: string]: string } {
|
|
175
|
+
return {
|
|
176
|
+
code: 'code',
|
|
177
|
+
data: 'data',
|
|
178
|
+
message: 'message',
|
|
179
|
+
requestId: 'requestId',
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
static types(): { [key: string]: any } {
|
|
184
|
+
return {
|
|
185
|
+
code: 'string',
|
|
186
|
+
data: GetSourceResponseBodyData,
|
|
187
|
+
message: 'string',
|
|
188
|
+
requestId: 'string',
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
validate() {
|
|
193
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
194
|
+
(this.data as any).validate();
|
|
195
|
+
}
|
|
196
|
+
super.validate();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
constructor(map?: { [key: string]: any }) {
|
|
200
|
+
super(map);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|