@alicloud/apig20240327 5.2.0 → 5.3.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.
- package/dist/client.d.ts +72 -6
- package/dist/client.js +198 -6
- package/dist/client.js.map +1 -1
- package/dist/models/CreateMcpServerRequest.d.ts +47 -0
- package/dist/models/CreateMcpServerRequest.js +86 -1
- package/dist/models/CreateMcpServerRequest.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/GetMcpServerResponseBody.d.ts +47 -0
- package/dist/models/GetMcpServerResponseBody.js +86 -1
- package/dist/models/GetMcpServerResponseBody.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/UpdateMcpServerRequest.d.ts +47 -0
- package/dist/models/UpdateMcpServerRequest.js +86 -1
- package/dist/models/UpdateMcpServerRequest.js.map +1 -1
- 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 +29 -0
- package/dist/models/model.js +76 -17
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +222 -6
- package/src/models/CreateMcpServerRequest.ts +105 -0
- 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/GetMcpServerResponseBody.ts +105 -0
- package/src/models/GetSourceResponse.ts +40 -0
- package/src/models/GetSourceResponseBody.ts +203 -0
- package/src/models/UpdateMcpServerRequest.ts +105 -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 +29 -0
|
@@ -113,6 +113,52 @@ export declare class CreateMcpServerRequestBackendConfig extends $dara.Model {
|
|
|
113
113
|
[key: string]: any;
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
+
export declare class CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices extends $dara.Model {
|
|
117
|
+
port?: number;
|
|
118
|
+
protocol?: string;
|
|
119
|
+
serviceId?: string;
|
|
120
|
+
version?: string;
|
|
121
|
+
weight?: number;
|
|
122
|
+
static names(): {
|
|
123
|
+
[key: string]: string;
|
|
124
|
+
};
|
|
125
|
+
static types(): {
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
};
|
|
128
|
+
validate(): void;
|
|
129
|
+
constructor(map?: {
|
|
130
|
+
[key: string]: any;
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
export declare class CreateMcpServerRequestGrayMcpServerConfigsBackendConfig extends $dara.Model {
|
|
134
|
+
scene?: string;
|
|
135
|
+
services?: CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices[];
|
|
136
|
+
static names(): {
|
|
137
|
+
[key: string]: string;
|
|
138
|
+
};
|
|
139
|
+
static types(): {
|
|
140
|
+
[key: string]: any;
|
|
141
|
+
};
|
|
142
|
+
validate(): void;
|
|
143
|
+
constructor(map?: {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
export declare class CreateMcpServerRequestGrayMcpServerConfigs extends $dara.Model {
|
|
148
|
+
backendConfig?: CreateMcpServerRequestGrayMcpServerConfigsBackendConfig;
|
|
149
|
+
match?: HttpRouteMatch;
|
|
150
|
+
routeId?: string;
|
|
151
|
+
static names(): {
|
|
152
|
+
[key: string]: string;
|
|
153
|
+
};
|
|
154
|
+
static types(): {
|
|
155
|
+
[key: string]: any;
|
|
156
|
+
};
|
|
157
|
+
validate(): void;
|
|
158
|
+
constructor(map?: {
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
116
162
|
export declare class CreateMcpServerRequest extends $dara.Model {
|
|
117
163
|
/**
|
|
118
164
|
* @remarks
|
|
@@ -160,6 +206,7 @@ export declare class CreateMcpServerRequest extends $dara.Model {
|
|
|
160
206
|
* gw-cq7l5s5lhtgi6qac0
|
|
161
207
|
*/
|
|
162
208
|
gatewayId?: string;
|
|
209
|
+
grayMcpServerConfigs?: CreateMcpServerRequestGrayMcpServerConfigs[];
|
|
163
210
|
/**
|
|
164
211
|
* @remarks
|
|
165
212
|
* The route match rule.
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.CreateMcpServerRequest = exports.CreateMcpServerRequestBackendConfig = exports.CreateMcpServerRequestBackendConfigServices = exports.CreateMcpServerRequestAssembledSources = void 0;
|
|
36
|
+
exports.CreateMcpServerRequest = exports.CreateMcpServerRequestGrayMcpServerConfigs = exports.CreateMcpServerRequestGrayMcpServerConfigsBackendConfig = exports.CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices = exports.CreateMcpServerRequestBackendConfig = exports.CreateMcpServerRequestBackendConfigServices = exports.CreateMcpServerRequestAssembledSources = void 0;
|
|
37
37
|
// This file is auto-generated, don't edit it
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
39
|
const HttpRouteMatch_1 = require("./HttpRouteMatch");
|
|
@@ -114,6 +114,86 @@ class CreateMcpServerRequestBackendConfig extends $dara.Model {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
exports.CreateMcpServerRequestBackendConfig = CreateMcpServerRequestBackendConfig;
|
|
117
|
+
class CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices extends $dara.Model {
|
|
118
|
+
static names() {
|
|
119
|
+
return {
|
|
120
|
+
port: 'port',
|
|
121
|
+
protocol: 'protocol',
|
|
122
|
+
serviceId: 'serviceId',
|
|
123
|
+
version: 'version',
|
|
124
|
+
weight: 'weight',
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static types() {
|
|
128
|
+
return {
|
|
129
|
+
port: 'number',
|
|
130
|
+
protocol: 'string',
|
|
131
|
+
serviceId: 'string',
|
|
132
|
+
version: 'string',
|
|
133
|
+
weight: 'number',
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
validate() {
|
|
137
|
+
super.validate();
|
|
138
|
+
}
|
|
139
|
+
constructor(map) {
|
|
140
|
+
super(map);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices = CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices;
|
|
144
|
+
class CreateMcpServerRequestGrayMcpServerConfigsBackendConfig extends $dara.Model {
|
|
145
|
+
static names() {
|
|
146
|
+
return {
|
|
147
|
+
scene: 'scene',
|
|
148
|
+
services: 'services',
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
static types() {
|
|
152
|
+
return {
|
|
153
|
+
scene: 'string',
|
|
154
|
+
services: { 'type': 'array', 'itemType': CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices },
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
validate() {
|
|
158
|
+
if (Array.isArray(this.services)) {
|
|
159
|
+
$dara.Model.validateArray(this.services);
|
|
160
|
+
}
|
|
161
|
+
super.validate();
|
|
162
|
+
}
|
|
163
|
+
constructor(map) {
|
|
164
|
+
super(map);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.CreateMcpServerRequestGrayMcpServerConfigsBackendConfig = CreateMcpServerRequestGrayMcpServerConfigsBackendConfig;
|
|
168
|
+
class CreateMcpServerRequestGrayMcpServerConfigs extends $dara.Model {
|
|
169
|
+
static names() {
|
|
170
|
+
return {
|
|
171
|
+
backendConfig: 'backendConfig',
|
|
172
|
+
match: 'match',
|
|
173
|
+
routeId: 'routeId',
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
static types() {
|
|
177
|
+
return {
|
|
178
|
+
backendConfig: CreateMcpServerRequestGrayMcpServerConfigsBackendConfig,
|
|
179
|
+
match: HttpRouteMatch_1.HttpRouteMatch,
|
|
180
|
+
routeId: 'string',
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
validate() {
|
|
184
|
+
if (this.backendConfig && typeof this.backendConfig.validate === 'function') {
|
|
185
|
+
this.backendConfig.validate();
|
|
186
|
+
}
|
|
187
|
+
if (this.match && typeof this.match.validate === 'function') {
|
|
188
|
+
this.match.validate();
|
|
189
|
+
}
|
|
190
|
+
super.validate();
|
|
191
|
+
}
|
|
192
|
+
constructor(map) {
|
|
193
|
+
super(map);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.CreateMcpServerRequestGrayMcpServerConfigs = CreateMcpServerRequestGrayMcpServerConfigs;
|
|
117
197
|
class CreateMcpServerRequest extends $dara.Model {
|
|
118
198
|
static names() {
|
|
119
199
|
return {
|
|
@@ -124,6 +204,7 @@ class CreateMcpServerRequest extends $dara.Model {
|
|
|
124
204
|
domainIds: 'domainIds',
|
|
125
205
|
exposedUriPath: 'exposedUriPath',
|
|
126
206
|
gatewayId: 'gatewayId',
|
|
207
|
+
grayMcpServerConfigs: 'grayMcpServerConfigs',
|
|
127
208
|
match: 'match',
|
|
128
209
|
mcpStatisticsEnable: 'mcpStatisticsEnable',
|
|
129
210
|
name: 'name',
|
|
@@ -140,6 +221,7 @@ class CreateMcpServerRequest extends $dara.Model {
|
|
|
140
221
|
domainIds: { 'type': 'array', 'itemType': 'string' },
|
|
141
222
|
exposedUriPath: 'string',
|
|
142
223
|
gatewayId: 'string',
|
|
224
|
+
grayMcpServerConfigs: { 'type': 'array', 'itemType': CreateMcpServerRequestGrayMcpServerConfigs },
|
|
143
225
|
match: HttpRouteMatch_1.HttpRouteMatch,
|
|
144
226
|
mcpStatisticsEnable: 'boolean',
|
|
145
227
|
name: 'string',
|
|
@@ -157,6 +239,9 @@ class CreateMcpServerRequest extends $dara.Model {
|
|
|
157
239
|
if (Array.isArray(this.domainIds)) {
|
|
158
240
|
$dara.Model.validateArray(this.domainIds);
|
|
159
241
|
}
|
|
242
|
+
if (Array.isArray(this.grayMcpServerConfigs)) {
|
|
243
|
+
$dara.Model.validateArray(this.grayMcpServerConfigs);
|
|
244
|
+
}
|
|
160
245
|
if (this.match && typeof this.match.validate === 'function') {
|
|
161
246
|
this.match.validate();
|
|
162
247
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateMcpServerRequest.js","sourceRoot":"","sources":["../../src/models/CreateMcpServerRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qDAAkD;AAGlD,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAsBrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE,eAAe;YAC9B,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,aAAa,EAAE,QAAQ;YACvB,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACjD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4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,QAAQ;YAClB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC5C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvD,CAAC;QACD,IAAG,IAAI,CAAC,KAAK,IAAI,OAAQ,IAAI,CAAC,KAAa,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnE,IAAI,CAAC,KAAa,CAAC,QAAQ,EAAE,CAAC;QACjC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArJD,wDAqJC"}
|
|
@@ -2,6 +2,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateServiceVersionRequestLabels extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
+
* The tag key.
|
|
6
|
+
*
|
|
5
7
|
* This parameter is required.
|
|
6
8
|
*
|
|
7
9
|
* @example
|
|
@@ -9,6 +11,9 @@ export declare class CreateServiceVersionRequestLabels extends $dara.Model {
|
|
|
9
11
|
*/
|
|
10
12
|
key?: string;
|
|
11
13
|
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The tag value.
|
|
16
|
+
*
|
|
12
17
|
* @example
|
|
13
18
|
* cn-hangzhou-j
|
|
14
19
|
*/
|
|
@@ -27,11 +32,15 @@ export declare class CreateServiceVersionRequestLabels extends $dara.Model {
|
|
|
27
32
|
export declare class CreateServiceVersionRequest extends $dara.Model {
|
|
28
33
|
/**
|
|
29
34
|
* @remarks
|
|
35
|
+
* The service tags.
|
|
36
|
+
*
|
|
30
37
|
* This parameter is required.
|
|
31
38
|
*/
|
|
32
39
|
labels?: CreateServiceVersionRequestLabels[];
|
|
33
40
|
/**
|
|
34
41
|
* @remarks
|
|
42
|
+
* The version name.
|
|
43
|
+
*
|
|
35
44
|
* This parameter is required.
|
|
36
45
|
*
|
|
37
46
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateServiceVersionRequest.js","sourceRoot":"","sources":["../../src/models/CreateServiceVersionRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateServiceVersionRequest.js","sourceRoot":"","sources":["../../src/models/CreateServiceVersionRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAmBhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;SAChB,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;AAxCD,8EAwCC;AAED,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAkB1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,iCAAiC,EAAE;YAC1E,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1CD,kEA0CC"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class CreateServiceVersionResponseBody extends $dara.Model {
|
|
3
3
|
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The status code.
|
|
6
|
+
*
|
|
4
7
|
* @example
|
|
5
8
|
* Ok
|
|
6
9
|
*/
|
|
7
10
|
code?: string;
|
|
8
11
|
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The message returned.
|
|
14
|
+
*
|
|
9
15
|
* @example
|
|
10
16
|
* Success
|
|
11
17
|
*/
|
|
12
18
|
message?: string;
|
|
13
19
|
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The request ID.
|
|
22
|
+
*
|
|
14
23
|
* @example
|
|
15
24
|
* 0B373A13-9BB8-5068-9C94-AD6D39E6BBA2
|
|
16
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateServiceVersionResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateServiceVersionResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateServiceVersionResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateServiceVersionResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAyB/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,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;AAhDD,4EAgDC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules extends $dara.Model {
|
|
3
|
+
description?: string;
|
|
4
|
+
portRanges?: string[];
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* sg-bp14w4fa4j***
|
|
8
|
+
*/
|
|
9
|
+
securityGroupId?: string;
|
|
10
|
+
static names(): {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
static types(): {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
validate(): void;
|
|
17
|
+
constructor(map?: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export declare class CreateSourceRequestK8sSourceConfig extends $dara.Model {
|
|
22
|
+
authorizeSecurityGroupRules?: CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules[];
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* c3fbe6caaaece4062b*****
|
|
26
|
+
*/
|
|
27
|
+
clusterId?: string;
|
|
28
|
+
static names(): {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
static types(): {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
validate(): void;
|
|
35
|
+
constructor(map?: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export declare class CreateSourceRequestNacosSourceConfig extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* mse-cn-0dw3w***
|
|
43
|
+
*/
|
|
44
|
+
instanceId?: string;
|
|
45
|
+
static names(): {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
static types(): {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
};
|
|
51
|
+
validate(): void;
|
|
52
|
+
constructor(map?: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export declare class CreateSourceRequest extends $dara.Model {
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* gw-cq7l5s5lhtgi6q***
|
|
60
|
+
*/
|
|
61
|
+
gatewayId?: string;
|
|
62
|
+
k8sSourceConfig?: CreateSourceRequestK8sSourceConfig;
|
|
63
|
+
nacosSourceConfig?: CreateSourceRequestNacosSourceConfig;
|
|
64
|
+
resourceGroupId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @example
|
|
67
|
+
* MSE_NACOS
|
|
68
|
+
*/
|
|
69
|
+
type?: string;
|
|
70
|
+
static names(): {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
};
|
|
73
|
+
static types(): {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
validate(): void;
|
|
77
|
+
constructor(map?: {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.CreateSourceRequest = exports.CreateSourceRequestNacosSourceConfig = exports.CreateSourceRequestK8sSourceConfig = exports.CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
description: 'description',
|
|
43
|
+
portRanges: 'portRanges',
|
|
44
|
+
securityGroupId: 'securityGroupId',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static types() {
|
|
48
|
+
return {
|
|
49
|
+
description: 'string',
|
|
50
|
+
portRanges: { 'type': 'array', 'itemType': 'string' },
|
|
51
|
+
securityGroupId: 'string',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
validate() {
|
|
55
|
+
if (Array.isArray(this.portRanges)) {
|
|
56
|
+
$dara.Model.validateArray(this.portRanges);
|
|
57
|
+
}
|
|
58
|
+
super.validate();
|
|
59
|
+
}
|
|
60
|
+
constructor(map) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules = CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules;
|
|
65
|
+
class CreateSourceRequestK8sSourceConfig extends $dara.Model {
|
|
66
|
+
static names() {
|
|
67
|
+
return {
|
|
68
|
+
authorizeSecurityGroupRules: 'authorizeSecurityGroupRules',
|
|
69
|
+
clusterId: 'clusterId',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static types() {
|
|
73
|
+
return {
|
|
74
|
+
authorizeSecurityGroupRules: { 'type': 'array', 'itemType': CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules },
|
|
75
|
+
clusterId: 'string',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
validate() {
|
|
79
|
+
if (Array.isArray(this.authorizeSecurityGroupRules)) {
|
|
80
|
+
$dara.Model.validateArray(this.authorizeSecurityGroupRules);
|
|
81
|
+
}
|
|
82
|
+
super.validate();
|
|
83
|
+
}
|
|
84
|
+
constructor(map) {
|
|
85
|
+
super(map);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.CreateSourceRequestK8sSourceConfig = CreateSourceRequestK8sSourceConfig;
|
|
89
|
+
class CreateSourceRequestNacosSourceConfig extends $dara.Model {
|
|
90
|
+
static names() {
|
|
91
|
+
return {
|
|
92
|
+
instanceId: 'instanceId',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
static types() {
|
|
96
|
+
return {
|
|
97
|
+
instanceId: 'string',
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
validate() {
|
|
101
|
+
super.validate();
|
|
102
|
+
}
|
|
103
|
+
constructor(map) {
|
|
104
|
+
super(map);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.CreateSourceRequestNacosSourceConfig = CreateSourceRequestNacosSourceConfig;
|
|
108
|
+
class CreateSourceRequest extends $dara.Model {
|
|
109
|
+
static names() {
|
|
110
|
+
return {
|
|
111
|
+
gatewayId: 'gatewayId',
|
|
112
|
+
k8sSourceConfig: 'k8sSourceConfig',
|
|
113
|
+
nacosSourceConfig: 'nacosSourceConfig',
|
|
114
|
+
resourceGroupId: 'resourceGroupId',
|
|
115
|
+
type: 'type',
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
static types() {
|
|
119
|
+
return {
|
|
120
|
+
gatewayId: 'string',
|
|
121
|
+
k8sSourceConfig: CreateSourceRequestK8sSourceConfig,
|
|
122
|
+
nacosSourceConfig: CreateSourceRequestNacosSourceConfig,
|
|
123
|
+
resourceGroupId: 'string',
|
|
124
|
+
type: 'string',
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
validate() {
|
|
128
|
+
if (this.k8sSourceConfig && typeof this.k8sSourceConfig.validate === 'function') {
|
|
129
|
+
this.k8sSourceConfig.validate();
|
|
130
|
+
}
|
|
131
|
+
if (this.nacosSourceConfig && typeof this.nacosSourceConfig.validate === 'function') {
|
|
132
|
+
this.nacosSourceConfig.validate();
|
|
133
|
+
}
|
|
134
|
+
super.validate();
|
|
135
|
+
}
|
|
136
|
+
constructor(map) {
|
|
137
|
+
super(map);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.CreateSourceRequest = CreateSourceRequest;
|
|
141
|
+
//# sourceMappingURL=CreateSourceRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateSourceRequest.js","sourceRoot":"","sources":["../../src/models/CreateSourceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6DAA8D,SAAQ,KAAK,CAAC,KAAK;IAQ5F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,eAAe,EAAE,iBAAiB;SACnC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACrD,eAAe,EAAE,QAAQ;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC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AAzBD,oFAyBC;AAED,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IAclD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,eAAe,EAAE,iBAAiB;YAClC,iBAAiB,EAAE,mBAAmB;YACtC,eAAe,EAAE,iBAAiB;YAClC,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,kCAAkC;YACnD,iBAAiB,EAAE,oCAAoC;YACvD,eAAe,EAAE,QAAQ;YACzB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,eAAe,IAAI,OAAQ,IAAI,CAAC,eAAuB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvF,IAAI,CAAC,eAAuB,CAAC,QAAQ,EAAE,CAAC;QAC3C,CAAC;QACD,IAAG,IAAI,CAAC,iBAAiB,IAAI,OAAQ,IAAI,CAAC,iBAAyB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3F,IAAI,CAAC,iBAAyB,CAAC,QAAQ,EAAE,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/CD,kDA+CC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { CreateSourceResponseBody } from "./CreateSourceResponseBody";
|
|
3
|
+
export declare class CreateSourceResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: CreateSourceResponseBody;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
validate(): void;
|
|
16
|
+
constructor(map?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.CreateSourceResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const CreateSourceResponseBody_1 = require("./CreateSourceResponseBody");
|
|
40
|
+
class CreateSourceResponse extends $dara.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
headers: 'headers',
|
|
44
|
+
statusCode: 'statusCode',
|
|
45
|
+
body: 'body',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
statusCode: 'number',
|
|
52
|
+
body: CreateSourceResponseBody_1.CreateSourceResponseBody,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
validate() {
|
|
56
|
+
if (this.headers) {
|
|
57
|
+
$dara.Model.validateMap(this.headers);
|
|
58
|
+
}
|
|
59
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
60
|
+
this.body.validate();
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.CreateSourceResponse = CreateSourceResponse;
|
|
69
|
+
//# sourceMappingURL=CreateSourceResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateSourceResponse.js","sourceRoot":"","sources":["../../src/models/CreateSourceResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yEAAsE;AAGtE,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAInD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mDAAwB;SAC/B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oDAiCC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class CreateSourceResponseBodyData extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @example
|
|
5
|
+
* src-crdddallhtgt***
|
|
6
|
+
*/
|
|
7
|
+
sourceId?: string;
|
|
8
|
+
static names(): {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
static types(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
validate(): void;
|
|
15
|
+
constructor(map?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export declare class CreateSourceResponseBody extends $dara.Model {
|
|
20
|
+
/**
|
|
21
|
+
* @example
|
|
22
|
+
* Ok
|
|
23
|
+
*/
|
|
24
|
+
code?: string;
|
|
25
|
+
data?: CreateSourceResponseBodyData;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* success
|
|
29
|
+
*/
|
|
30
|
+
message?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 393E2630-DBE7-5221-AB35-9E740675491A
|
|
34
|
+
*/
|
|
35
|
+
requestId?: string;
|
|
36
|
+
static names(): {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
static types(): {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
};
|
|
42
|
+
validate(): void;
|
|
43
|
+
constructor(map?: {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
});
|
|
46
|
+
}
|