@alicloud/cms20240330 3.3.0 → 3.4.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 +155 -2
- package/dist/client.js +368 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AlertRuleSend.d.ts +1 -0
- package/dist/models/AlertRuleSend.js +5 -0
- package/dist/models/AlertRuleSend.js.map +1 -1
- package/dist/models/CmsEventForView.d.ts +42 -0
- package/dist/models/CmsEventForView.js +113 -0
- package/dist/models/CmsEventForView.js.map +1 -0
- package/dist/models/ContactForIncidentView.d.ts +15 -0
- package/dist/models/ContactForIncidentView.js +60 -0
- package/dist/models/ContactForIncidentView.js.map +1 -0
- package/dist/models/CreateCloudResourceResponse.d.ts +19 -0
- package/dist/models/CreateCloudResourceResponse.js +69 -0
- package/dist/models/CreateCloudResourceResponse.js.map +1 -0
- package/dist/models/CreateCloudResourceResponseBody.d.ts +18 -0
- package/dist/models/CreateCloudResourceResponseBody.js +58 -0
- package/dist/models/CreateCloudResourceResponseBody.js.map +1 -0
- package/dist/models/DeleteCloudResourceResponse.d.ts +19 -0
- package/dist/models/DeleteCloudResourceResponse.js +69 -0
- package/dist/models/DeleteCloudResourceResponse.js.map +1 -0
- package/dist/models/DeleteCloudResourceResponseBody.d.ts +18 -0
- package/dist/models/DeleteCloudResourceResponseBody.js +58 -0
- package/dist/models/DeleteCloudResourceResponseBody.js.map +1 -0
- package/dist/models/DescribeRegionsRequest.d.ts +18 -0
- package/dist/models/DescribeRegionsRequest.js +58 -0
- package/dist/models/DescribeRegionsRequest.js.map +1 -0
- package/dist/models/DescribeRegionsResponse.d.ts +19 -0
- package/dist/models/DescribeRegionsResponse.js +69 -0
- package/dist/models/DescribeRegionsResponse.js.map +1 -0
- package/dist/models/DescribeRegionsResponseBody.d.ts +44 -0
- package/dist/models/DescribeRegionsResponseBody.js +84 -0
- package/dist/models/DescribeRegionsResponseBody.js.map +1 -0
- package/dist/models/EffectTimeRange.d.ts +17 -0
- package/dist/models/EffectTimeRange.js +67 -0
- package/dist/models/EffectTimeRange.js.map +1 -0
- package/dist/models/EventResourceForEventView.d.ts +35 -0
- package/dist/models/EventResourceForEventView.js +94 -0
- package/dist/models/EventResourceForEventView.js.map +1 -0
- package/dist/models/EventResourceForIncidentView.d.ts +18 -0
- package/dist/models/EventResourceForIncidentView.js +66 -0
- package/dist/models/EventResourceForIncidentView.js.map +1 -0
- package/dist/models/GetCloudResourceDataRequest.d.ts +37 -0
- package/dist/models/GetCloudResourceDataRequest.js +62 -0
- package/dist/models/GetCloudResourceDataRequest.js.map +1 -0
- package/dist/models/GetCloudResourceDataResponse.d.ts +19 -0
- package/dist/models/GetCloudResourceDataResponse.js +69 -0
- package/dist/models/GetCloudResourceDataResponse.js.map +1 -0
- package/dist/models/GetCloudResourceDataResponseBody.d.ts +20 -0
- package/dist/models/GetCloudResourceDataResponseBody.js +68 -0
- package/dist/models/GetCloudResourceDataResponseBody.js.map +1 -0
- package/dist/models/GetCloudResourceResponse.d.ts +19 -0
- package/dist/models/GetCloudResourceResponse.js +69 -0
- package/dist/models/GetCloudResourceResponse.js.map +1 -0
- package/dist/models/GetCloudResourceResponseBody.d.ts +23 -0
- package/dist/models/GetCloudResourceResponseBody.js +60 -0
- package/dist/models/GetCloudResourceResponseBody.js.map +1 -0
- package/dist/models/GetCmsServiceRequest.d.ts +29 -0
- package/dist/models/GetCmsServiceRequest.js +60 -0
- package/dist/models/GetCmsServiceRequest.js.map +1 -0
- package/dist/models/GetCmsServiceResponse.d.ts +19 -0
- package/dist/models/GetCmsServiceResponse.js +69 -0
- package/dist/models/GetCmsServiceResponse.js.map +1 -0
- package/dist/models/GetCmsServiceResponseBody.d.ts +31 -0
- package/dist/models/GetCmsServiceResponseBody.js +62 -0
- package/dist/models/GetCmsServiceResponseBody.js.map +1 -0
- package/dist/models/GetPrometheusUserSettingRequest.d.ts +18 -0
- package/dist/models/GetPrometheusUserSettingRequest.js +58 -0
- package/dist/models/GetPrometheusUserSettingRequest.js.map +1 -0
- package/dist/models/GetPrometheusUserSettingResponse.d.ts +19 -0
- package/dist/models/GetPrometheusUserSettingResponse.js +69 -0
- package/dist/models/GetPrometheusUserSettingResponse.js.map +1 -0
- package/dist/models/GetPrometheusUserSettingResponseBody.d.ts +24 -0
- package/dist/models/GetPrometheusUserSettingResponseBody.js +63 -0
- package/dist/models/GetPrometheusUserSettingResponseBody.js.map +1 -0
- package/dist/models/IncidentEscalationPolicyForModify.d.ts +22 -0
- package/dist/models/IncidentEscalationPolicyForModify.js +68 -0
- package/dist/models/IncidentEscalationPolicyForModify.js.map +1 -0
- package/dist/models/IncidentEscalationPolicyForView.d.ts +31 -0
- package/dist/models/IncidentEscalationPolicyForView.js +86 -0
- package/dist/models/IncidentEscalationPolicyForView.js.map +1 -0
- package/dist/models/IncidentEscalationStageForView.d.ts +26 -0
- package/dist/models/IncidentEscalationStageForView.js +78 -0
- package/dist/models/IncidentEscalationStageForView.js.map +1 -0
- package/dist/models/IncidentEventForView.d.ts +43 -0
- package/dist/models/IncidentEventForView.js +119 -0
- package/dist/models/IncidentEventForView.js.map +1 -0
- package/dist/models/IncidentForView.d.ts +41 -0
- package/dist/models/IncidentForView.js +125 -0
- package/dist/models/IncidentForView.js.map +1 -0
- package/dist/models/IncidentResponsePlanForView.d.ts +30 -0
- package/dist/models/IncidentResponsePlanForView.js +97 -0
- package/dist/models/IncidentResponsePlanForView.js.map +1 -0
- package/dist/models/IncidentTimelineForView.d.ts +24 -0
- package/dist/models/IncidentTimelineForView.js +80 -0
- package/dist/models/IncidentTimelineForView.js.map +1 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.d.ts +28 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.d.ts +124 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js +134 -0
- package/dist/models/ListIntegrationPolicyServiceMonitorsResponseBody.js.map +1 -0
- package/dist/models/NotifyChannel.d.ts +16 -0
- package/dist/models/NotifyChannel.js +68 -0
- package/dist/models/NotifyChannel.js.map +1 -0
- package/dist/models/NotifyStrategyForModify.d.ts +37 -0
- package/dist/models/NotifyStrategyForModify.js +81 -1
- package/dist/models/NotifyStrategyForModify.js.map +1 -1
- package/dist/models/NotifyStrategyForView.d.ts +38 -0
- package/dist/models/NotifyStrategyForView.js +86 -1
- package/dist/models/NotifyStrategyForView.js.map +1 -1
- package/dist/models/PushingSetting.d.ts +16 -0
- package/dist/models/PushingSetting.js +68 -0
- package/dist/models/PushingSetting.js.map +1 -0
- package/dist/models/RepeatNotifySetting.d.ts +15 -0
- package/dist/models/RepeatNotifySetting.js +60 -0
- package/dist/models/RepeatNotifySetting.js.map +1 -0
- package/dist/models/SubscriptionForView.d.ts +1 -0
- package/dist/models/SubscriptionForView.js +2 -0
- package/dist/models/SubscriptionForView.js.map +1 -1
- package/dist/models/Tag.d.ts +15 -0
- package/dist/models/Tag.js +60 -0
- package/dist/models/Tag.js.map +1 -0
- package/dist/models/UpdatePrometheusUserSettingRequest.d.ts +21 -0
- package/dist/models/UpdatePrometheusUserSettingRequest.js +58 -0
- package/dist/models/UpdatePrometheusUserSettingRequest.js.map +1 -0
- package/dist/models/UpdatePrometheusUserSettingResponse.d.ts +19 -0
- package/dist/models/UpdatePrometheusUserSettingResponse.js +69 -0
- package/dist/models/UpdatePrometheusUserSettingResponse.js.map +1 -0
- package/dist/models/UpdatePrometheusUserSettingResponseBody.d.ts +21 -0
- package/dist/models/UpdatePrometheusUserSettingResponseBody.js +58 -0
- package/dist/models/UpdatePrometheusUserSettingResponseBody.js.map +1 -0
- package/dist/models/WorkspaceFilterSetting.d.ts +16 -0
- package/dist/models/WorkspaceFilterSetting.js +67 -0
- package/dist/models/WorkspaceFilterSetting.js.map +1 -0
- package/dist/models/model.d.ts +49 -0
- package/dist/models/model.js +117 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +397 -2
- package/src/models/AlertRuleSend.ts +6 -0
- package/src/models/CmsEventForView.ts +103 -0
- package/src/models/ContactForIncidentView.ts +30 -0
- package/src/models/CreateCloudResourceResponse.ts +40 -0
- package/src/models/CreateCloudResourceResponseBody.ts +31 -0
- package/src/models/DeleteCloudResourceResponse.ts +40 -0
- package/src/models/DeleteCloudResourceResponseBody.ts +31 -0
- package/src/models/DescribeRegionsRequest.ts +31 -0
- package/src/models/DescribeRegionsResponse.ts +40 -0
- package/src/models/DescribeRegionsResponseBody.ts +74 -0
- package/src/models/EffectTimeRange.ts +39 -0
- package/src/models/EventResourceForEventView.ts +71 -0
- package/src/models/EventResourceForIncidentView.ts +39 -0
- package/src/models/GetCloudResourceDataRequest.ts +54 -0
- package/src/models/GetCloudResourceDataResponse.ts +40 -0
- package/src/models/GetCloudResourceDataResponseBody.ts +43 -0
- package/src/models/GetCloudResourceResponse.ts +40 -0
- package/src/models/GetCloudResourceResponseBody.ts +38 -0
- package/src/models/GetCmsServiceRequest.ts +44 -0
- package/src/models/GetCmsServiceResponse.ts +40 -0
- package/src/models/GetCmsServiceResponseBody.ts +48 -0
- package/src/models/GetPrometheusUserSettingRequest.ts +31 -0
- package/src/models/GetPrometheusUserSettingResponse.ts +40 -0
- package/src/models/GetPrometheusUserSettingResponseBody.ts +40 -0
- package/src/models/IncidentEscalationPolicyForModify.ts +44 -0
- package/src/models/IncidentEscalationPolicyForView.ts +71 -0
- package/src/models/IncidentEscalationStageForView.ts +57 -0
- package/src/models/IncidentEventForView.ts +107 -0
- package/src/models/IncidentForView.ts +115 -0
- package/src/models/IncidentResponsePlanForView.ts +80 -0
- package/src/models/IncidentTimelineForView.ts +58 -0
- package/src/models/ListIntegrationPolicyServiceMonitorsRequest.ts +45 -0
- package/src/models/ListIntegrationPolicyServiceMonitorsResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyServiceMonitorsResponseBody.ts +195 -0
- package/src/models/NotifyChannel.ts +39 -0
- package/src/models/NotifyStrategyForModify.ts +98 -0
- package/src/models/NotifyStrategyForView.ts +104 -0
- package/src/models/PushingSetting.ts +39 -0
- package/src/models/RepeatNotifySetting.ts +30 -0
- package/src/models/SubscriptionForView.ts +3 -0
- package/src/models/Tag.ts +30 -0
- package/src/models/UpdatePrometheusUserSettingRequest.ts +34 -0
- package/src/models/UpdatePrometheusUserSettingResponse.ts +40 -0
- package/src/models/UpdatePrometheusUserSettingResponseBody.ts +34 -0
- package/src/models/WorkspaceFilterSetting.ts +37 -0
- package/src/models/model.ts +49 -0
package/src/client.ts
CHANGED
|
@@ -227,6 +227,41 @@ export default class Client extends OpenApi {
|
|
|
227
227
|
return await this.createAggTaskGroupWithOptions(instanceId, request, headers, runtime);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
/**
|
|
231
|
+
* 创建云资源中心
|
|
232
|
+
*
|
|
233
|
+
* @param headers - map
|
|
234
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
235
|
+
* @returns CreateCloudResourceResponse
|
|
236
|
+
*/
|
|
237
|
+
async createCloudResourceWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCloudResourceResponse> {
|
|
238
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
239
|
+
headers: headers,
|
|
240
|
+
});
|
|
241
|
+
let params = new $OpenApiUtil.Params({
|
|
242
|
+
action: "CreateCloudResource",
|
|
243
|
+
version: "2024-03-30",
|
|
244
|
+
protocol: "HTTPS",
|
|
245
|
+
pathname: `/cloudresource`,
|
|
246
|
+
method: "POST",
|
|
247
|
+
authType: "AK",
|
|
248
|
+
style: "ROA",
|
|
249
|
+
reqBodyType: "json",
|
|
250
|
+
bodyType: "json",
|
|
251
|
+
});
|
|
252
|
+
return $dara.cast<$_model.CreateCloudResourceResponse>(await this.callApi(params, req, runtime), new $_model.CreateCloudResourceResponse({}));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* 创建云资源中心
|
|
257
|
+
* @returns CreateCloudResourceResponse
|
|
258
|
+
*/
|
|
259
|
+
async createCloudResource(): Promise<$_model.CreateCloudResourceResponse> {
|
|
260
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
261
|
+
let headers : {[key: string ]: string} = { };
|
|
262
|
+
return await this.createCloudResourceWithOptions(headers, runtime);
|
|
263
|
+
}
|
|
264
|
+
|
|
230
265
|
/**
|
|
231
266
|
* Create storage related to EntityStore
|
|
232
267
|
*
|
|
@@ -817,6 +852,41 @@ export default class Client extends OpenApi {
|
|
|
817
852
|
return await this.deleteAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
|
|
818
853
|
}
|
|
819
854
|
|
|
855
|
+
/**
|
|
856
|
+
* 删除云资源中心
|
|
857
|
+
*
|
|
858
|
+
* @param headers - map
|
|
859
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
860
|
+
* @returns DeleteCloudResourceResponse
|
|
861
|
+
*/
|
|
862
|
+
async deleteCloudResourceWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCloudResourceResponse> {
|
|
863
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
864
|
+
headers: headers,
|
|
865
|
+
});
|
|
866
|
+
let params = new $OpenApiUtil.Params({
|
|
867
|
+
action: "DeleteCloudResource",
|
|
868
|
+
version: "2024-03-30",
|
|
869
|
+
protocol: "HTTPS",
|
|
870
|
+
pathname: `/cloudresource`,
|
|
871
|
+
method: "DELETE",
|
|
872
|
+
authType: "AK",
|
|
873
|
+
style: "ROA",
|
|
874
|
+
reqBodyType: "json",
|
|
875
|
+
bodyType: "json",
|
|
876
|
+
});
|
|
877
|
+
return $dara.cast<$_model.DeleteCloudResourceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteCloudResourceResponse({}));
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* 删除云资源中心
|
|
882
|
+
* @returns DeleteCloudResourceResponse
|
|
883
|
+
*/
|
|
884
|
+
async deleteCloudResource(): Promise<$_model.DeleteCloudResourceResponse> {
|
|
885
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
886
|
+
let headers : {[key: string ]: string} = { };
|
|
887
|
+
return await this.deleteCloudResourceWithOptions(headers, runtime);
|
|
888
|
+
}
|
|
889
|
+
|
|
820
890
|
/**
|
|
821
891
|
* Delete EntityStore related storage
|
|
822
892
|
*
|
|
@@ -1194,6 +1264,51 @@ export default class Client extends OpenApi {
|
|
|
1194
1264
|
return await this.deleteWorkspaceWithOptions(workspaceName, headers, runtime);
|
|
1195
1265
|
}
|
|
1196
1266
|
|
|
1267
|
+
/**
|
|
1268
|
+
* 查询地域信息列表
|
|
1269
|
+
*
|
|
1270
|
+
* @param request - DescribeRegionsRequest
|
|
1271
|
+
* @param headers - map
|
|
1272
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1273
|
+
* @returns DescribeRegionsResponse
|
|
1274
|
+
*/
|
|
1275
|
+
async describeRegionsWithOptions(request: $_model.DescribeRegionsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeRegionsResponse> {
|
|
1276
|
+
request.validate();
|
|
1277
|
+
let query : {[key: string ]: any} = { };
|
|
1278
|
+
if (!$dara.isNull(request.language)) {
|
|
1279
|
+
query["language"] = request.language;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1283
|
+
headers: headers,
|
|
1284
|
+
query: OpenApiUtil.query(query),
|
|
1285
|
+
});
|
|
1286
|
+
let params = new $OpenApiUtil.Params({
|
|
1287
|
+
action: "DescribeRegions",
|
|
1288
|
+
version: "2024-03-30",
|
|
1289
|
+
protocol: "HTTPS",
|
|
1290
|
+
pathname: `/regions`,
|
|
1291
|
+
method: "GET",
|
|
1292
|
+
authType: "AK",
|
|
1293
|
+
style: "ROA",
|
|
1294
|
+
reqBodyType: "json",
|
|
1295
|
+
bodyType: "json",
|
|
1296
|
+
});
|
|
1297
|
+
return $dara.cast<$_model.DescribeRegionsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeRegionsResponse({}));
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* 查询地域信息列表
|
|
1302
|
+
*
|
|
1303
|
+
* @param request - DescribeRegionsRequest
|
|
1304
|
+
* @returns DescribeRegionsResponse
|
|
1305
|
+
*/
|
|
1306
|
+
async describeRegions(request: $_model.DescribeRegionsRequest): Promise<$_model.DescribeRegionsResponse> {
|
|
1307
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1308
|
+
let headers : {[key: string ]: string} = { };
|
|
1309
|
+
return await this.describeRegionsWithOptions(request, headers, runtime);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1197
1312
|
/**
|
|
1198
1313
|
* Check addon release (view connection status)
|
|
1199
1314
|
*
|
|
@@ -1264,6 +1379,143 @@ export default class Client extends OpenApi {
|
|
|
1264
1379
|
return await this.getAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
|
|
1265
1380
|
}
|
|
1266
1381
|
|
|
1382
|
+
/**
|
|
1383
|
+
* 查询云资源中心
|
|
1384
|
+
*
|
|
1385
|
+
* @param headers - map
|
|
1386
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1387
|
+
* @returns GetCloudResourceResponse
|
|
1388
|
+
*/
|
|
1389
|
+
async getCloudResourceWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetCloudResourceResponse> {
|
|
1390
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1391
|
+
headers: headers,
|
|
1392
|
+
});
|
|
1393
|
+
let params = new $OpenApiUtil.Params({
|
|
1394
|
+
action: "GetCloudResource",
|
|
1395
|
+
version: "2024-03-30",
|
|
1396
|
+
protocol: "HTTPS",
|
|
1397
|
+
pathname: `/cloudresource`,
|
|
1398
|
+
method: "GET",
|
|
1399
|
+
authType: "AK",
|
|
1400
|
+
style: "ROA",
|
|
1401
|
+
reqBodyType: "json",
|
|
1402
|
+
bodyType: "json",
|
|
1403
|
+
});
|
|
1404
|
+
return $dara.cast<$_model.GetCloudResourceResponse>(await this.callApi(params, req, runtime), new $_model.GetCloudResourceResponse({}));
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* 查询云资源中心
|
|
1409
|
+
* @returns GetCloudResourceResponse
|
|
1410
|
+
*/
|
|
1411
|
+
async getCloudResource(): Promise<$_model.GetCloudResourceResponse> {
|
|
1412
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1413
|
+
let headers : {[key: string ]: string} = { };
|
|
1414
|
+
return await this.getCloudResourceWithOptions(headers, runtime);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* 查询云资源中心数据
|
|
1419
|
+
*
|
|
1420
|
+
* @param request - GetCloudResourceDataRequest
|
|
1421
|
+
* @param headers - map
|
|
1422
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1423
|
+
* @returns GetCloudResourceDataResponse
|
|
1424
|
+
*/
|
|
1425
|
+
async getCloudResourceDataWithOptions(request: $_model.GetCloudResourceDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetCloudResourceDataResponse> {
|
|
1426
|
+
request.validate();
|
|
1427
|
+
let query : {[key: string ]: any} = { };
|
|
1428
|
+
if (!$dara.isNull(request.from)) {
|
|
1429
|
+
query["from"] = request.from;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
if (!$dara.isNull(request.query)) {
|
|
1433
|
+
query["query"] = request.query;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
if (!$dara.isNull(request.to)) {
|
|
1437
|
+
query["to"] = request.to;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1441
|
+
headers: headers,
|
|
1442
|
+
query: OpenApiUtil.query(query),
|
|
1443
|
+
});
|
|
1444
|
+
let params = new $OpenApiUtil.Params({
|
|
1445
|
+
action: "GetCloudResourceData",
|
|
1446
|
+
version: "2024-03-30",
|
|
1447
|
+
protocol: "HTTPS",
|
|
1448
|
+
pathname: `/cloudresource/data`,
|
|
1449
|
+
method: "POST",
|
|
1450
|
+
authType: "AK",
|
|
1451
|
+
style: "ROA",
|
|
1452
|
+
reqBodyType: "json",
|
|
1453
|
+
bodyType: "json",
|
|
1454
|
+
});
|
|
1455
|
+
return $dara.cast<$_model.GetCloudResourceDataResponse>(await this.callApi(params, req, runtime), new $_model.GetCloudResourceDataResponse({}));
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* 查询云资源中心数据
|
|
1460
|
+
*
|
|
1461
|
+
* @param request - GetCloudResourceDataRequest
|
|
1462
|
+
* @returns GetCloudResourceDataResponse
|
|
1463
|
+
*/
|
|
1464
|
+
async getCloudResourceData(request: $_model.GetCloudResourceDataRequest): Promise<$_model.GetCloudResourceDataResponse> {
|
|
1465
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1466
|
+
let headers : {[key: string ]: string} = { };
|
|
1467
|
+
return await this.getCloudResourceDataWithOptions(request, headers, runtime);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* 获取云监控开通状态
|
|
1472
|
+
*
|
|
1473
|
+
* @param request - GetCmsServiceRequest
|
|
1474
|
+
* @param headers - map
|
|
1475
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1476
|
+
* @returns GetCmsServiceResponse
|
|
1477
|
+
*/
|
|
1478
|
+
async getCmsServiceWithOptions(request: $_model.GetCmsServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetCmsServiceResponse> {
|
|
1479
|
+
request.validate();
|
|
1480
|
+
let query : {[key: string ]: any} = { };
|
|
1481
|
+
if (!$dara.isNull(request.product)) {
|
|
1482
|
+
query["product"] = request.product;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
if (!$dara.isNull(request.service)) {
|
|
1486
|
+
query["service"] = request.service;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1490
|
+
headers: headers,
|
|
1491
|
+
query: OpenApiUtil.query(query),
|
|
1492
|
+
});
|
|
1493
|
+
let params = new $OpenApiUtil.Params({
|
|
1494
|
+
action: "GetCmsService",
|
|
1495
|
+
version: "2024-03-30",
|
|
1496
|
+
protocol: "HTTPS",
|
|
1497
|
+
pathname: `/cmsservice`,
|
|
1498
|
+
method: "GET",
|
|
1499
|
+
authType: "AK",
|
|
1500
|
+
style: "ROA",
|
|
1501
|
+
reqBodyType: "json",
|
|
1502
|
+
bodyType: "json",
|
|
1503
|
+
});
|
|
1504
|
+
return $dara.cast<$_model.GetCmsServiceResponse>(await this.callApi(params, req, runtime), new $_model.GetCmsServiceResponse({}));
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* 获取云监控开通状态
|
|
1509
|
+
*
|
|
1510
|
+
* @param request - GetCmsServiceRequest
|
|
1511
|
+
* @returns GetCmsServiceResponse
|
|
1512
|
+
*/
|
|
1513
|
+
async getCmsService(request: $_model.GetCmsServiceRequest): Promise<$_model.GetCmsServiceResponse> {
|
|
1514
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1515
|
+
let headers : {[key: string ]: string} = { };
|
|
1516
|
+
return await this.getCmsServiceWithOptions(request, headers, runtime);
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1267
1519
|
/**
|
|
1268
1520
|
* Get EntityStore related storage information
|
|
1269
1521
|
*
|
|
@@ -1451,6 +1703,51 @@ export default class Client extends OpenApi {
|
|
|
1451
1703
|
return await this.getPrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
1452
1704
|
}
|
|
1453
1705
|
|
|
1706
|
+
/**
|
|
1707
|
+
* 查询指定环境实例
|
|
1708
|
+
*
|
|
1709
|
+
* @param request - GetPrometheusUserSettingRequest
|
|
1710
|
+
* @param headers - map
|
|
1711
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1712
|
+
* @returns GetPrometheusUserSettingResponse
|
|
1713
|
+
*/
|
|
1714
|
+
async getPrometheusUserSettingWithOptions(request: $_model.GetPrometheusUserSettingRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetPrometheusUserSettingResponse> {
|
|
1715
|
+
request.validate();
|
|
1716
|
+
let query : {[key: string ]: any} = { };
|
|
1717
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
1718
|
+
query["aliyunLang"] = request.aliyunLang;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1722
|
+
headers: headers,
|
|
1723
|
+
query: OpenApiUtil.query(query),
|
|
1724
|
+
});
|
|
1725
|
+
let params = new $OpenApiUtil.Params({
|
|
1726
|
+
action: "GetPrometheusUserSetting",
|
|
1727
|
+
version: "2024-03-30",
|
|
1728
|
+
protocol: "HTTPS",
|
|
1729
|
+
pathname: `/prometheus-user-setting`,
|
|
1730
|
+
method: "GET",
|
|
1731
|
+
authType: "AK",
|
|
1732
|
+
style: "ROA",
|
|
1733
|
+
reqBodyType: "json",
|
|
1734
|
+
bodyType: "json",
|
|
1735
|
+
});
|
|
1736
|
+
return $dara.cast<$_model.GetPrometheusUserSettingResponse>(await this.callApi(params, req, runtime), new $_model.GetPrometheusUserSettingResponse({}));
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* 查询指定环境实例
|
|
1741
|
+
*
|
|
1742
|
+
* @param request - GetPrometheusUserSettingRequest
|
|
1743
|
+
* @returns GetPrometheusUserSettingResponse
|
|
1744
|
+
*/
|
|
1745
|
+
async getPrometheusUserSetting(request: $_model.GetPrometheusUserSettingRequest): Promise<$_model.GetPrometheusUserSettingResponse> {
|
|
1746
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1747
|
+
let headers : {[key: string ]: string} = { };
|
|
1748
|
+
return await this.getPrometheusUserSettingWithOptions(request, headers, runtime);
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1454
1751
|
/**
|
|
1455
1752
|
* Query a specified Prometheus view instance
|
|
1456
1753
|
*
|
|
@@ -2225,6 +2522,59 @@ export default class Client extends OpenApi {
|
|
|
2225
2522
|
return await this.listIntegrationPolicyPodMonitorsWithOptions(policyId, request, headers, runtime);
|
|
2226
2523
|
}
|
|
2227
2524
|
|
|
2525
|
+
/**
|
|
2526
|
+
* 获取接入中心策略的存储要求信息
|
|
2527
|
+
*
|
|
2528
|
+
* @param request - ListIntegrationPolicyServiceMonitorsRequest
|
|
2529
|
+
* @param headers - map
|
|
2530
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2531
|
+
* @returns ListIntegrationPolicyServiceMonitorsResponse
|
|
2532
|
+
*/
|
|
2533
|
+
async listIntegrationPolicyServiceMonitorsWithOptions(policyId: string, request: $_model.ListIntegrationPolicyServiceMonitorsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyServiceMonitorsResponse> {
|
|
2534
|
+
request.validate();
|
|
2535
|
+
let query : {[key: string ]: any} = { };
|
|
2536
|
+
if (!$dara.isNull(request.addonReleaseName)) {
|
|
2537
|
+
query["addonReleaseName"] = request.addonReleaseName;
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
if (!$dara.isNull(request.encryptYaml)) {
|
|
2541
|
+
query["encryptYaml"] = request.encryptYaml;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
if (!$dara.isNull(request.namespace)) {
|
|
2545
|
+
query["namespace"] = request.namespace;
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2549
|
+
headers: headers,
|
|
2550
|
+
query: OpenApiUtil.query(query),
|
|
2551
|
+
});
|
|
2552
|
+
let params = new $OpenApiUtil.Params({
|
|
2553
|
+
action: "ListIntegrationPolicyServiceMonitors",
|
|
2554
|
+
version: "2024-03-30",
|
|
2555
|
+
protocol: "HTTPS",
|
|
2556
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/service-monitors`,
|
|
2557
|
+
method: "GET",
|
|
2558
|
+
authType: "AK",
|
|
2559
|
+
style: "ROA",
|
|
2560
|
+
reqBodyType: "json",
|
|
2561
|
+
bodyType: "json",
|
|
2562
|
+
});
|
|
2563
|
+
return $dara.cast<$_model.ListIntegrationPolicyServiceMonitorsResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyServiceMonitorsResponse({}));
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
* 获取接入中心策略的存储要求信息
|
|
2568
|
+
*
|
|
2569
|
+
* @param request - ListIntegrationPolicyServiceMonitorsRequest
|
|
2570
|
+
* @returns ListIntegrationPolicyServiceMonitorsResponse
|
|
2571
|
+
*/
|
|
2572
|
+
async listIntegrationPolicyServiceMonitors(policyId: string, request: $_model.ListIntegrationPolicyServiceMonitorsRequest): Promise<$_model.ListIntegrationPolicyServiceMonitorsResponse> {
|
|
2573
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2574
|
+
let headers : {[key: string ]: string} = { };
|
|
2575
|
+
return await this.listIntegrationPolicyServiceMonitorsWithOptions(policyId, request, headers, runtime);
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2228
2578
|
/**
|
|
2229
2579
|
* Get Storage Requirements Information for Access Center Policy
|
|
2230
2580
|
*
|
|
@@ -3014,7 +3364,7 @@ export default class Client extends OpenApi {
|
|
|
3014
3364
|
}
|
|
3015
3365
|
|
|
3016
3366
|
/**
|
|
3017
|
-
*
|
|
3367
|
+
* 更新通知策略
|
|
3018
3368
|
*
|
|
3019
3369
|
* @param request - UpdateNotifyStrategyRequest
|
|
3020
3370
|
* @param headers - map
|
|
@@ -3048,7 +3398,7 @@ export default class Client extends OpenApi {
|
|
|
3048
3398
|
}
|
|
3049
3399
|
|
|
3050
3400
|
/**
|
|
3051
|
-
*
|
|
3401
|
+
* 更新通知策略
|
|
3052
3402
|
*
|
|
3053
3403
|
* @param request - UpdateNotifyStrategyRequest
|
|
3054
3404
|
* @returns UpdateNotifyStrategyResponse
|
|
@@ -3150,6 +3500,51 @@ export default class Client extends OpenApi {
|
|
|
3150
3500
|
return await this.updatePrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
3151
3501
|
}
|
|
3152
3502
|
|
|
3503
|
+
/**
|
|
3504
|
+
* 更新Prom实例信息
|
|
3505
|
+
*
|
|
3506
|
+
* @param request - UpdatePrometheusUserSettingRequest
|
|
3507
|
+
* @param headers - map
|
|
3508
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3509
|
+
* @returns UpdatePrometheusUserSettingResponse
|
|
3510
|
+
*/
|
|
3511
|
+
async updatePrometheusUserSettingWithOptions(settingKey: string, request: $_model.UpdatePrometheusUserSettingRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdatePrometheusUserSettingResponse> {
|
|
3512
|
+
request.validate();
|
|
3513
|
+
let query : {[key: string ]: any} = { };
|
|
3514
|
+
if (!$dara.isNull(request.settingValue)) {
|
|
3515
|
+
query["settingValue"] = request.settingValue;
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3519
|
+
headers: headers,
|
|
3520
|
+
query: OpenApiUtil.query(query),
|
|
3521
|
+
});
|
|
3522
|
+
let params = new $OpenApiUtil.Params({
|
|
3523
|
+
action: "UpdatePrometheusUserSetting",
|
|
3524
|
+
version: "2024-03-30",
|
|
3525
|
+
protocol: "HTTPS",
|
|
3526
|
+
pathname: `/prometheus-user-setting/${$dara.URL.percentEncode(settingKey)}`,
|
|
3527
|
+
method: "PUT",
|
|
3528
|
+
authType: "AK",
|
|
3529
|
+
style: "ROA",
|
|
3530
|
+
reqBodyType: "json",
|
|
3531
|
+
bodyType: "json",
|
|
3532
|
+
});
|
|
3533
|
+
return $dara.cast<$_model.UpdatePrometheusUserSettingResponse>(await this.callApi(params, req, runtime), new $_model.UpdatePrometheusUserSettingResponse({}));
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
/**
|
|
3537
|
+
* 更新Prom实例信息
|
|
3538
|
+
*
|
|
3539
|
+
* @param request - UpdatePrometheusUserSettingRequest
|
|
3540
|
+
* @returns UpdatePrometheusUserSettingResponse
|
|
3541
|
+
*/
|
|
3542
|
+
async updatePrometheusUserSetting(settingKey: string, request: $_model.UpdatePrometheusUserSettingRequest): Promise<$_model.UpdatePrometheusUserSettingResponse> {
|
|
3543
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3544
|
+
let headers : {[key: string ]: string} = { };
|
|
3545
|
+
return await this.updatePrometheusUserSettingWithOptions(settingKey, request, headers, runtime);
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3153
3548
|
/**
|
|
3154
3549
|
* Update Prometheus view instance information
|
|
3155
3550
|
*
|
|
@@ -7,11 +7,13 @@ import { AlertRuleNotification } from "./AlertRuleNotification";
|
|
|
7
7
|
export class AlertRuleSend extends $dara.Model {
|
|
8
8
|
action?: AlertRuleAction;
|
|
9
9
|
notification?: AlertRuleNotification;
|
|
10
|
+
notifyStrategies?: string[];
|
|
10
11
|
sendToArms?: boolean;
|
|
11
12
|
static names(): { [key: string]: string } {
|
|
12
13
|
return {
|
|
13
14
|
action: 'action',
|
|
14
15
|
notification: 'notification',
|
|
16
|
+
notifyStrategies: 'notifyStrategies',
|
|
15
17
|
sendToArms: 'sendToArms',
|
|
16
18
|
};
|
|
17
19
|
}
|
|
@@ -20,6 +22,7 @@ export class AlertRuleSend extends $dara.Model {
|
|
|
20
22
|
return {
|
|
21
23
|
action: AlertRuleAction,
|
|
22
24
|
notification: AlertRuleNotification,
|
|
25
|
+
notifyStrategies: { 'type': 'array', 'itemType': 'string' },
|
|
23
26
|
sendToArms: 'boolean',
|
|
24
27
|
};
|
|
25
28
|
}
|
|
@@ -31,6 +34,9 @@ export class AlertRuleSend extends $dara.Model {
|
|
|
31
34
|
if(this.notification && typeof (this.notification as any).validate === 'function') {
|
|
32
35
|
(this.notification as any).validate();
|
|
33
36
|
}
|
|
37
|
+
if(Array.isArray(this.notifyStrategies)) {
|
|
38
|
+
$dara.Model.validateArray(this.notifyStrategies);
|
|
39
|
+
}
|
|
34
40
|
super.validate();
|
|
35
41
|
}
|
|
36
42
|
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { EventResourceForEventView } from "./EventResourceForEventView";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CmsEventForView extends $dara.Model {
|
|
7
|
+
annotations?: { [key: string]: any };
|
|
8
|
+
data?: any;
|
|
9
|
+
datacontenttype?: string;
|
|
10
|
+
dataschema?: string;
|
|
11
|
+
dedupId?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
integrationUuid?: string;
|
|
14
|
+
labels?: { [key: string]: any };
|
|
15
|
+
receiveTime?: number;
|
|
16
|
+
resource?: EventResourceForEventView;
|
|
17
|
+
severity?: string;
|
|
18
|
+
source?: string;
|
|
19
|
+
sourcetype?: string;
|
|
20
|
+
status?: string;
|
|
21
|
+
subject?: string;
|
|
22
|
+
subtype?: string;
|
|
23
|
+
sysId?: string;
|
|
24
|
+
time?: string;
|
|
25
|
+
timestamp?: number;
|
|
26
|
+
type?: string;
|
|
27
|
+
workspace?: string;
|
|
28
|
+
workspaceTags?: { [key: string]: any };
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
annotations: 'annotations',
|
|
32
|
+
data: 'data',
|
|
33
|
+
datacontenttype: 'datacontenttype',
|
|
34
|
+
dataschema: 'dataschema',
|
|
35
|
+
dedupId: 'dedupId',
|
|
36
|
+
id: 'id',
|
|
37
|
+
integrationUuid: 'integrationUuid',
|
|
38
|
+
labels: 'labels',
|
|
39
|
+
receiveTime: 'receiveTime',
|
|
40
|
+
resource: 'resource',
|
|
41
|
+
severity: 'severity',
|
|
42
|
+
source: 'source',
|
|
43
|
+
sourcetype: 'sourcetype',
|
|
44
|
+
status: 'status',
|
|
45
|
+
subject: 'subject',
|
|
46
|
+
subtype: 'subtype',
|
|
47
|
+
sysId: 'sysId',
|
|
48
|
+
time: 'time',
|
|
49
|
+
timestamp: 'timestamp',
|
|
50
|
+
type: 'type',
|
|
51
|
+
workspace: 'workspace',
|
|
52
|
+
workspaceTags: 'workspaceTags',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static types(): { [key: string]: any } {
|
|
57
|
+
return {
|
|
58
|
+
annotations: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
59
|
+
data: 'any',
|
|
60
|
+
datacontenttype: 'string',
|
|
61
|
+
dataschema: 'string',
|
|
62
|
+
dedupId: 'string',
|
|
63
|
+
id: 'string',
|
|
64
|
+
integrationUuid: 'string',
|
|
65
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
66
|
+
receiveTime: 'number',
|
|
67
|
+
resource: EventResourceForEventView,
|
|
68
|
+
severity: 'string',
|
|
69
|
+
source: 'string',
|
|
70
|
+
sourcetype: 'string',
|
|
71
|
+
status: 'string',
|
|
72
|
+
subject: 'string',
|
|
73
|
+
subtype: 'string',
|
|
74
|
+
sysId: 'string',
|
|
75
|
+
time: 'string',
|
|
76
|
+
timestamp: 'number',
|
|
77
|
+
type: 'string',
|
|
78
|
+
workspace: 'string',
|
|
79
|
+
workspaceTags: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
validate() {
|
|
84
|
+
if(this.annotations) {
|
|
85
|
+
$dara.Model.validateMap(this.annotations);
|
|
86
|
+
}
|
|
87
|
+
if(this.labels) {
|
|
88
|
+
$dara.Model.validateMap(this.labels);
|
|
89
|
+
}
|
|
90
|
+
if(this.resource && typeof (this.resource as any).validate === 'function') {
|
|
91
|
+
(this.resource as any).validate();
|
|
92
|
+
}
|
|
93
|
+
if(this.workspaceTags) {
|
|
94
|
+
$dara.Model.validateMap(this.workspaceTags);
|
|
95
|
+
}
|
|
96
|
+
super.validate();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
constructor(map?: { [key: string]: any }) {
|
|
100
|
+
super(map);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ContactForIncidentView extends $dara.Model {
|
|
6
|
+
contactId?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
static names(): { [key: string]: string } {
|
|
9
|
+
return {
|
|
10
|
+
contactId: 'contactId',
|
|
11
|
+
name: 'name',
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static types(): { [key: string]: any } {
|
|
16
|
+
return {
|
|
17
|
+
contactId: 'string',
|
|
18
|
+
name: 'string',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
validate() {
|
|
23
|
+
super.validate();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
constructor(map?: { [key: string]: any }) {
|
|
27
|
+
super(map);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateCloudResourceResponseBody } from "./CreateCloudResourceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateCloudResourceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateCloudResourceResponseBody;
|
|
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: CreateCloudResourceResponseBody,
|
|
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 CreateCloudResourceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC
|
|
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
|
+
|