@alicloud/cms20240330 2.1.0 → 2.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 +102 -0
- package/dist/client.js +270 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateServiceRequest.d.ts +46 -0
- package/dist/models/CreateServiceRequest.js +70 -0
- package/dist/models/CreateServiceRequest.js.map +1 -0
- package/dist/models/CreateServiceResponse.d.ts +19 -0
- package/dist/models/CreateServiceResponse.js +69 -0
- package/dist/models/CreateServiceResponse.js.map +1 -0
- package/dist/models/CreateServiceResponseBody.d.ts +28 -0
- package/dist/models/CreateServiceResponseBody.js +62 -0
- package/dist/models/CreateServiceResponseBody.js.map +1 -0
- package/dist/models/CreateTicketRequest.d.ts +23 -0
- package/dist/models/CreateTicketRequest.js +60 -0
- package/dist/models/CreateTicketRequest.js.map +1 -0
- package/dist/models/CreateTicketResponse.d.ts +19 -0
- package/dist/models/CreateTicketResponse.js +69 -0
- package/dist/models/CreateTicketResponse.js.map +1 -0
- package/dist/models/CreateTicketResponseBody.d.ts +18 -0
- package/dist/models/CreateTicketResponseBody.js +58 -0
- package/dist/models/CreateTicketResponseBody.js.map +1 -0
- package/dist/models/DeleteServiceResponse.d.ts +19 -0
- package/dist/models/DeleteServiceResponse.js +69 -0
- package/dist/models/DeleteServiceResponse.js.map +1 -0
- package/dist/models/DeleteServiceResponseBody.d.ts +18 -0
- package/dist/models/DeleteServiceResponseBody.js +58 -0
- package/dist/models/DeleteServiceResponseBody.js.map +1 -0
- package/dist/models/GetServiceResponse.d.ts +19 -0
- package/dist/models/GetServiceResponse.js +69 -0
- package/dist/models/GetServiceResponse.js.map +1 -0
- package/dist/models/GetServiceResponseBody.d.ts +82 -0
- package/dist/models/GetServiceResponseBody.js +102 -0
- package/dist/models/GetServiceResponseBody.js.map +1 -0
- package/dist/models/ListServicesRequest.d.ts +28 -0
- package/dist/models/ListServicesRequest.js +62 -0
- package/dist/models/ListServicesRequest.js.map +1 -0
- package/dist/models/ListServicesResponse.d.ts +19 -0
- package/dist/models/ListServicesResponse.js +69 -0
- package/dist/models/ListServicesResponse.js.map +1 -0
- package/dist/models/ListServicesResponseBody.d.ts +96 -0
- package/dist/models/ListServicesResponseBody.js +106 -0
- package/dist/models/ListServicesResponseBody.js.map +1 -0
- package/dist/models/MergeContact.d.ts +27 -0
- package/dist/models/MergeContact.js +83 -0
- package/dist/models/MergeContact.js.map +1 -0
- package/dist/models/MergeContactGroup.d.ts +22 -0
- package/dist/models/MergeContactGroup.js +76 -0
- package/dist/models/MergeContactGroup.js.map +1 -0
- package/dist/models/MergeRobot.d.ts +40 -0
- package/dist/models/MergeRobot.js +106 -0
- package/dist/models/MergeRobot.js.map +1 -0
- package/dist/models/MergeWebhook.d.ts +27 -0
- package/dist/models/MergeWebhook.js +83 -0
- package/dist/models/MergeWebhook.js.map +1 -0
- package/dist/models/UpdateServiceRequest.d.ts +33 -0
- package/dist/models/UpdateServiceRequest.js +64 -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 +23 -0
- package/dist/models/UpdateServiceResponseBody.js +60 -0
- package/dist/models/UpdateServiceResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +23 -0
- package/dist/models/model.js +50 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +298 -0
- package/src/models/CreateServiceRequest.ts +71 -0
- package/src/models/CreateServiceResponse.ts +40 -0
- package/src/models/CreateServiceResponseBody.ts +45 -0
- package/src/models/CreateTicketRequest.ts +38 -0
- package/src/models/CreateTicketResponse.ts +40 -0
- package/src/models/CreateTicketResponseBody.ts +31 -0
- package/src/models/DeleteServiceResponse.ts +40 -0
- package/src/models/DeleteServiceResponseBody.ts +31 -0
- package/src/models/GetServiceResponse.ts +40 -0
- package/src/models/GetServiceResponseBody.ts +130 -0
- package/src/models/ListServicesRequest.ts +45 -0
- package/src/models/ListServicesResponse.ts +40 -0
- package/src/models/ListServicesResponseBody.ts +148 -0
- package/src/models/MergeContact.ts +63 -0
- package/src/models/MergeContactGroup.ts +51 -0
- package/src/models/MergeRobot.ts +92 -0
- package/src/models/MergeWebhook.ts +63 -0
- package/src/models/UpdateServiceRequest.ts +52 -0
- package/src/models/UpdateServiceResponse.ts +40 -0
- package/src/models/UpdateServiceResponseBody.ts +38 -0
- package/src/models/model.ts +23 -0
package/src/client.ts
CHANGED
|
@@ -153,6 +153,124 @@ export default class Client extends OpenApi {
|
|
|
153
153
|
return await this.createPrometheusInstanceWithOptions(request, headers, runtime);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
/**
|
|
157
|
+
* 创建Service
|
|
158
|
+
*
|
|
159
|
+
* @param request - CreateServiceRequest
|
|
160
|
+
* @param headers - map
|
|
161
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
162
|
+
* @returns CreateServiceResponse
|
|
163
|
+
*/
|
|
164
|
+
async createServiceWithOptions(workspace: string, request: $_model.CreateServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServiceResponse> {
|
|
165
|
+
request.validate();
|
|
166
|
+
let body : {[key: string ]: any} = { };
|
|
167
|
+
if (!$dara.isNull(request.attributes)) {
|
|
168
|
+
body["attributes"] = request.attributes;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (!$dara.isNull(request.description)) {
|
|
172
|
+
body["description"] = request.description;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (!$dara.isNull(request.displayName)) {
|
|
176
|
+
body["displayName"] = request.displayName;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (!$dara.isNull(request.pid)) {
|
|
180
|
+
body["pid"] = request.pid;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (!$dara.isNull(request.serviceName)) {
|
|
184
|
+
body["serviceName"] = request.serviceName;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (!$dara.isNull(request.serviceStatus)) {
|
|
188
|
+
body["serviceStatus"] = request.serviceStatus;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (!$dara.isNull(request.serviceType)) {
|
|
192
|
+
body["serviceType"] = request.serviceType;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
196
|
+
headers: headers,
|
|
197
|
+
body: OpenApiUtil.parseToMap(body),
|
|
198
|
+
});
|
|
199
|
+
let params = new $OpenApiUtil.Params({
|
|
200
|
+
action: "CreateService",
|
|
201
|
+
version: "2024-03-30",
|
|
202
|
+
protocol: "HTTPS",
|
|
203
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service`,
|
|
204
|
+
method: "POST",
|
|
205
|
+
authType: "AK",
|
|
206
|
+
style: "ROA",
|
|
207
|
+
reqBodyType: "json",
|
|
208
|
+
bodyType: "json",
|
|
209
|
+
});
|
|
210
|
+
return $dara.cast<$_model.CreateServiceResponse>(await this.callApi(params, req, runtime), new $_model.CreateServiceResponse({}));
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* 创建Service
|
|
215
|
+
*
|
|
216
|
+
* @param request - CreateServiceRequest
|
|
217
|
+
* @returns CreateServiceResponse
|
|
218
|
+
*/
|
|
219
|
+
async createService(workspace: string, request: $_model.CreateServiceRequest): Promise<$_model.CreateServiceResponse> {
|
|
220
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
221
|
+
let headers : {[key: string ]: string} = { };
|
|
222
|
+
return await this.createServiceWithOptions(workspace, request, headers, runtime);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* 创建票据
|
|
227
|
+
*
|
|
228
|
+
* @param request - CreateTicketRequest
|
|
229
|
+
* @param headers - map
|
|
230
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
231
|
+
* @returns CreateTicketResponse
|
|
232
|
+
*/
|
|
233
|
+
async createTicketWithOptions(request: $_model.CreateTicketRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateTicketResponse> {
|
|
234
|
+
request.validate();
|
|
235
|
+
let query : {[key: string ]: any} = { };
|
|
236
|
+
if (!$dara.isNull(request.accessTokenExpirationTime)) {
|
|
237
|
+
query["accessTokenExpirationTime"] = request.accessTokenExpirationTime;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!$dara.isNull(request.expirationTime)) {
|
|
241
|
+
query["expirationTime"] = request.expirationTime;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
245
|
+
headers: headers,
|
|
246
|
+
query: OpenApiUtil.query(query),
|
|
247
|
+
});
|
|
248
|
+
let params = new $OpenApiUtil.Params({
|
|
249
|
+
action: "CreateTicket",
|
|
250
|
+
version: "2024-03-30",
|
|
251
|
+
protocol: "HTTPS",
|
|
252
|
+
pathname: `/tickets`,
|
|
253
|
+
method: "POST",
|
|
254
|
+
authType: "AK",
|
|
255
|
+
style: "ROA",
|
|
256
|
+
reqBodyType: "json",
|
|
257
|
+
bodyType: "json",
|
|
258
|
+
});
|
|
259
|
+
return $dara.cast<$_model.CreateTicketResponse>(await this.callApi(params, req, runtime), new $_model.CreateTicketResponse({}));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* 创建票据
|
|
264
|
+
*
|
|
265
|
+
* @param request - CreateTicketRequest
|
|
266
|
+
* @returns CreateTicketResponse
|
|
267
|
+
*/
|
|
268
|
+
async createTicket(request: $_model.CreateTicketRequest): Promise<$_model.CreateTicketResponse> {
|
|
269
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
270
|
+
let headers : {[key: string ]: string} = { };
|
|
271
|
+
return await this.createTicketWithOptions(request, headers, runtime);
|
|
272
|
+
}
|
|
273
|
+
|
|
156
274
|
/**
|
|
157
275
|
* 创建Umodel配置
|
|
158
276
|
*
|
|
@@ -237,6 +355,41 @@ export default class Client extends OpenApi {
|
|
|
237
355
|
return await this.deleteEntityStoreWithOptions(workspaceName, headers, runtime);
|
|
238
356
|
}
|
|
239
357
|
|
|
358
|
+
/**
|
|
359
|
+
* 删除Service
|
|
360
|
+
*
|
|
361
|
+
* @param headers - map
|
|
362
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
363
|
+
* @returns DeleteServiceResponse
|
|
364
|
+
*/
|
|
365
|
+
async deleteServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteServiceResponse> {
|
|
366
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
367
|
+
headers: headers,
|
|
368
|
+
});
|
|
369
|
+
let params = new $OpenApiUtil.Params({
|
|
370
|
+
action: "DeleteService",
|
|
371
|
+
version: "2024-03-30",
|
|
372
|
+
protocol: "HTTPS",
|
|
373
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
|
|
374
|
+
method: "DELETE",
|
|
375
|
+
authType: "AK",
|
|
376
|
+
style: "ROA",
|
|
377
|
+
reqBodyType: "json",
|
|
378
|
+
bodyType: "json",
|
|
379
|
+
});
|
|
380
|
+
return $dara.cast<$_model.DeleteServiceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteServiceResponse({}));
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* 删除Service
|
|
385
|
+
* @returns DeleteServiceResponse
|
|
386
|
+
*/
|
|
387
|
+
async deleteService(workspace: string, serviceId: string): Promise<$_model.DeleteServiceResponse> {
|
|
388
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
389
|
+
let headers : {[key: string ]: string} = { };
|
|
390
|
+
return await this.deleteServiceWithOptions(workspace, serviceId, headers, runtime);
|
|
391
|
+
}
|
|
392
|
+
|
|
240
393
|
/**
|
|
241
394
|
* 删除Umodel配置信息
|
|
242
395
|
*
|
|
@@ -457,6 +610,41 @@ export default class Client extends OpenApi {
|
|
|
457
610
|
return await this.getEntityStoreDataWithOptions(workspace, request, headers, runtime);
|
|
458
611
|
}
|
|
459
612
|
|
|
613
|
+
/**
|
|
614
|
+
* 查询 Service
|
|
615
|
+
*
|
|
616
|
+
* @param headers - map
|
|
617
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
618
|
+
* @returns GetServiceResponse
|
|
619
|
+
*/
|
|
620
|
+
async getServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetServiceResponse> {
|
|
621
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
622
|
+
headers: headers,
|
|
623
|
+
});
|
|
624
|
+
let params = new $OpenApiUtil.Params({
|
|
625
|
+
action: "GetService",
|
|
626
|
+
version: "2024-03-30",
|
|
627
|
+
protocol: "HTTPS",
|
|
628
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
|
|
629
|
+
method: "GET",
|
|
630
|
+
authType: "AK",
|
|
631
|
+
style: "ROA",
|
|
632
|
+
reqBodyType: "json",
|
|
633
|
+
bodyType: "json",
|
|
634
|
+
});
|
|
635
|
+
return $dara.cast<$_model.GetServiceResponse>(await this.callApi(params, req, runtime), new $_model.GetServiceResponse({}));
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* 查询 Service
|
|
640
|
+
* @returns GetServiceResponse
|
|
641
|
+
*/
|
|
642
|
+
async getService(workspace: string, serviceId: string): Promise<$_model.GetServiceResponse> {
|
|
643
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
644
|
+
let headers : {[key: string ]: string} = { };
|
|
645
|
+
return await this.getServiceWithOptions(workspace, serviceId, headers, runtime);
|
|
646
|
+
}
|
|
647
|
+
|
|
460
648
|
/**
|
|
461
649
|
* 获取应用可观测实例
|
|
462
650
|
*
|
|
@@ -680,6 +868,59 @@ export default class Client extends OpenApi {
|
|
|
680
868
|
return await this.listAlertActionsWithOptions(request, headers, runtime);
|
|
681
869
|
}
|
|
682
870
|
|
|
871
|
+
/**
|
|
872
|
+
* 列出资源Service
|
|
873
|
+
*
|
|
874
|
+
* @param request - ListServicesRequest
|
|
875
|
+
* @param headers - map
|
|
876
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
877
|
+
* @returns ListServicesResponse
|
|
878
|
+
*/
|
|
879
|
+
async listServicesWithOptions(workspace: string, request: $_model.ListServicesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListServicesResponse> {
|
|
880
|
+
request.validate();
|
|
881
|
+
let query : {[key: string ]: any} = { };
|
|
882
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
883
|
+
query["maxResults"] = request.maxResults;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
887
|
+
query["nextToken"] = request.nextToken;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
if (!$dara.isNull(request.serviceType)) {
|
|
891
|
+
query["serviceType"] = request.serviceType;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
895
|
+
headers: headers,
|
|
896
|
+
query: OpenApiUtil.query(query),
|
|
897
|
+
});
|
|
898
|
+
let params = new $OpenApiUtil.Params({
|
|
899
|
+
action: "ListServices",
|
|
900
|
+
version: "2024-03-30",
|
|
901
|
+
protocol: "HTTPS",
|
|
902
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/services`,
|
|
903
|
+
method: "GET",
|
|
904
|
+
authType: "AK",
|
|
905
|
+
style: "ROA",
|
|
906
|
+
reqBodyType: "json",
|
|
907
|
+
bodyType: "json",
|
|
908
|
+
});
|
|
909
|
+
return $dara.cast<$_model.ListServicesResponse>(await this.callApi(params, req, runtime), new $_model.ListServicesResponse({}));
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* 列出资源Service
|
|
914
|
+
*
|
|
915
|
+
* @param request - ListServicesRequest
|
|
916
|
+
* @returns ListServicesResponse
|
|
917
|
+
*/
|
|
918
|
+
async listServices(workspace: string, request: $_model.ListServicesRequest): Promise<$_model.ListServicesResponse> {
|
|
919
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
920
|
+
let headers : {[key: string ]: string} = { };
|
|
921
|
+
return await this.listServicesWithOptions(workspace, request, headers, runtime);
|
|
922
|
+
}
|
|
923
|
+
|
|
683
924
|
/**
|
|
684
925
|
* 获取工作空间列表
|
|
685
926
|
*
|
|
@@ -800,6 +1041,63 @@ export default class Client extends OpenApi {
|
|
|
800
1041
|
return await this.putWorkspaceWithOptions(workspaceName, request, headers, runtime);
|
|
801
1042
|
}
|
|
802
1043
|
|
|
1044
|
+
/**
|
|
1045
|
+
* 更新UpdateService
|
|
1046
|
+
*
|
|
1047
|
+
* @param request - UpdateServiceRequest
|
|
1048
|
+
* @param headers - map
|
|
1049
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1050
|
+
* @returns UpdateServiceResponse
|
|
1051
|
+
*/
|
|
1052
|
+
async updateServiceWithOptions(workspace: string, serviceId: string, request: $_model.UpdateServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateServiceResponse> {
|
|
1053
|
+
request.validate();
|
|
1054
|
+
let body : {[key: string ]: any} = { };
|
|
1055
|
+
if (!$dara.isNull(request.attributes)) {
|
|
1056
|
+
body["attributes"] = request.attributes;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
if (!$dara.isNull(request.description)) {
|
|
1060
|
+
body["description"] = request.description;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
if (!$dara.isNull(request.displayName)) {
|
|
1064
|
+
body["displayName"] = request.displayName;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
if (!$dara.isNull(request.serviceStatus)) {
|
|
1068
|
+
body["serviceStatus"] = request.serviceStatus;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1072
|
+
headers: headers,
|
|
1073
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1074
|
+
});
|
|
1075
|
+
let params = new $OpenApiUtil.Params({
|
|
1076
|
+
action: "UpdateService",
|
|
1077
|
+
version: "2024-03-30",
|
|
1078
|
+
protocol: "HTTPS",
|
|
1079
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
|
|
1080
|
+
method: "PUT",
|
|
1081
|
+
authType: "AK",
|
|
1082
|
+
style: "ROA",
|
|
1083
|
+
reqBodyType: "json",
|
|
1084
|
+
bodyType: "json",
|
|
1085
|
+
});
|
|
1086
|
+
return $dara.cast<$_model.UpdateServiceResponse>(await this.callApi(params, req, runtime), new $_model.UpdateServiceResponse({}));
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* 更新UpdateService
|
|
1091
|
+
*
|
|
1092
|
+
* @param request - UpdateServiceRequest
|
|
1093
|
+
* @returns UpdateServiceResponse
|
|
1094
|
+
*/
|
|
1095
|
+
async updateService(workspace: string, serviceId: string, request: $_model.UpdateServiceRequest): Promise<$_model.UpdateServiceResponse> {
|
|
1096
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1097
|
+
let headers : {[key: string ]: string} = { };
|
|
1098
|
+
return await this.updateServiceWithOptions(workspace, serviceId, request, headers, runtime);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
803
1101
|
/**
|
|
804
1102
|
* 更新Umodel配置信息
|
|
805
1103
|
*
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateServiceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* {"language":"java"}
|
|
9
|
+
*/
|
|
10
|
+
attributes?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
displayName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* bx3udsi5ie@ed2ba6beebdb6de
|
|
16
|
+
*/
|
|
17
|
+
pid?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* mag_test
|
|
24
|
+
*/
|
|
25
|
+
serviceName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* Created
|
|
29
|
+
*/
|
|
30
|
+
serviceStatus?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* TRACE
|
|
37
|
+
*/
|
|
38
|
+
serviceType?: string;
|
|
39
|
+
static names(): { [key: string]: string } {
|
|
40
|
+
return {
|
|
41
|
+
attributes: 'attributes',
|
|
42
|
+
description: 'description',
|
|
43
|
+
displayName: 'displayName',
|
|
44
|
+
pid: 'pid',
|
|
45
|
+
serviceName: 'serviceName',
|
|
46
|
+
serviceStatus: 'serviceStatus',
|
|
47
|
+
serviceType: 'serviceType',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static types(): { [key: string]: any } {
|
|
52
|
+
return {
|
|
53
|
+
attributes: 'string',
|
|
54
|
+
description: 'string',
|
|
55
|
+
displayName: 'string',
|
|
56
|
+
pid: 'string',
|
|
57
|
+
serviceName: 'string',
|
|
58
|
+
serviceStatus: 'string',
|
|
59
|
+
serviceType: 'string',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
validate() {
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(map?: { [key: string]: any }) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateServiceResponseBody } from "./CreateServiceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateServiceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateServiceResponseBody;
|
|
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: CreateServiceResponseBody,
|
|
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 CreateServiceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* cwzxvuc6uo@d60088ad4797d26
|
|
9
|
+
*/
|
|
10
|
+
pid?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 3A2FA9E9-9CF1-5CB1-A808-52828F14310D
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* cwzxvuc6uo@4bc6b15ad81f166174ffb
|
|
19
|
+
*/
|
|
20
|
+
serviceId?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
pid: 'pid',
|
|
24
|
+
requestId: 'requestId',
|
|
25
|
+
serviceId: 'serviceId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
pid: 'string',
|
|
32
|
+
requestId: 'string',
|
|
33
|
+
serviceId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateTicketRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 600
|
|
9
|
+
*/
|
|
10
|
+
accessTokenExpirationTime?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 86400
|
|
14
|
+
*/
|
|
15
|
+
expirationTime?: number;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
accessTokenExpirationTime: 'accessTokenExpirationTime',
|
|
19
|
+
expirationTime: 'expirationTime',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
accessTokenExpirationTime: 'number',
|
|
26
|
+
expirationTime: 'number',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateTicketResponseBody } from "./CreateTicketResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateTicketResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateTicketResponseBody;
|
|
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: CreateTicketResponseBody,
|
|
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,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateTicketResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* eyJ***************.eyJ******************.KUT****************
|
|
9
|
+
*/
|
|
10
|
+
ticket?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
ticket: 'ticket',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
ticket: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteServiceResponseBody } from "./DeleteServiceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteServiceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteServiceResponseBody;
|
|
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: DeleteServiceResponseBody,
|
|
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,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteServiceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 51B6A3E8-EA9E-5143-BE11-8E5F83474C95
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'requestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|