@alicloud/cms20240330 6.3.0 → 6.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 +117 -0
- package/dist/client.js +282 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDatasetRequest.d.ts +34 -0
- package/dist/models/CreateDatasetRequest.js +66 -0
- package/dist/models/CreateDatasetRequest.js.map +1 -0
- package/dist/models/CreateDatasetResponse.d.ts +19 -0
- package/dist/models/CreateDatasetResponse.js +69 -0
- package/dist/models/CreateDatasetResponse.js.map +1 -0
- package/dist/models/CreateDatasetResponseBody.d.ts +18 -0
- package/dist/models/CreateDatasetResponseBody.js +58 -0
- package/dist/models/CreateDatasetResponseBody.js.map +1 -0
- package/dist/models/DeleteDatasetResponse.d.ts +19 -0
- package/dist/models/DeleteDatasetResponse.js +69 -0
- package/dist/models/DeleteDatasetResponse.js.map +1 -0
- package/dist/models/DeleteDatasetResponseBody.d.ts +18 -0
- package/dist/models/DeleteDatasetResponseBody.js +58 -0
- package/dist/models/DeleteDatasetResponseBody.js.map +1 -0
- package/dist/models/DeletePrometheusVirtualInstanceResponse.d.ts +19 -0
- package/dist/models/DeletePrometheusVirtualInstanceResponse.js +69 -0
- package/dist/models/DeletePrometheusVirtualInstanceResponse.js.map +1 -0
- package/dist/models/DeletePrometheusVirtualInstanceResponseBody.d.ts +18 -0
- package/dist/models/DeletePrometheusVirtualInstanceResponseBody.js +58 -0
- package/dist/models/DeletePrometheusVirtualInstanceResponseBody.js.map +1 -0
- package/dist/models/ExecuteQueryRequest.d.ts +29 -0
- package/dist/models/ExecuteQueryRequest.js +60 -0
- package/dist/models/ExecuteQueryRequest.js.map +1 -0
- package/dist/models/ExecuteQueryResponse.d.ts +19 -0
- package/dist/models/ExecuteQueryResponse.js +69 -0
- package/dist/models/ExecuteQueryResponse.js.map +1 -0
- package/dist/models/ExecuteQueryResponseBody.d.ts +54 -0
- package/dist/models/ExecuteQueryResponseBody.js +93 -0
- package/dist/models/ExecuteQueryResponseBody.js.map +1 -0
- package/dist/models/GetDatasetResponse.d.ts +19 -0
- package/dist/models/GetDatasetResponse.js +69 -0
- package/dist/models/GetDatasetResponse.js.map +1 -0
- package/dist/models/GetDatasetResponseBody.d.ts +58 -0
- package/dist/models/GetDatasetResponseBody.js +76 -0
- package/dist/models/GetDatasetResponseBody.js.map +1 -0
- package/dist/models/ListDatasetsRequest.d.ts +28 -0
- package/dist/models/ListDatasetsRequest.js +62 -0
- package/dist/models/ListDatasetsRequest.js.map +1 -0
- package/dist/models/ListDatasetsResponse.d.ts +19 -0
- package/dist/models/ListDatasetsResponse.js +69 -0
- package/dist/models/ListDatasetsResponse.js.map +1 -0
- package/dist/models/ListDatasetsResponseBody.d.ts +82 -0
- package/dist/models/ListDatasetsResponseBody.js +98 -0
- package/dist/models/ListDatasetsResponseBody.js.map +1 -0
- package/dist/models/UpdateDatasetRequest.d.ts +18 -0
- package/dist/models/UpdateDatasetRequest.js +58 -0
- package/dist/models/UpdateDatasetRequest.js.map +1 -0
- package/dist/models/UpdateDatasetResponse.d.ts +19 -0
- package/dist/models/UpdateDatasetResponse.js +69 -0
- package/dist/models/UpdateDatasetResponse.js.map +1 -0
- package/dist/models/UpdateDatasetResponseBody.d.ts +18 -0
- package/dist/models/UpdateDatasetResponseBody.js +58 -0
- package/dist/models/UpdateDatasetResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +20 -0
- package/dist/models/model.js +53 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +305 -0
- package/src/models/CreateDatasetRequest.ts +52 -0
- package/src/models/CreateDatasetResponse.ts +40 -0
- package/src/models/CreateDatasetResponseBody.ts +31 -0
- package/src/models/DeleteDatasetResponse.ts +40 -0
- package/src/models/DeleteDatasetResponseBody.ts +31 -0
- package/src/models/DeletePrometheusVirtualInstanceResponse.ts +40 -0
- package/src/models/DeletePrometheusVirtualInstanceResponseBody.ts +31 -0
- package/src/models/ExecuteQueryRequest.ts +44 -0
- package/src/models/ExecuteQueryResponse.ts +40 -0
- package/src/models/ExecuteQueryResponseBody.ts +91 -0
- package/src/models/GetDatasetResponse.ts +40 -0
- package/src/models/GetDatasetResponseBody.ts +86 -0
- package/src/models/ListDatasetsRequest.ts +45 -0
- package/src/models/ListDatasetsResponse.ts +40 -0
- package/src/models/ListDatasetsResponseBody.ts +126 -0
- package/src/models/UpdateDatasetRequest.ts +31 -0
- package/src/models/UpdateDatasetResponse.ts +40 -0
- package/src/models/UpdateDatasetResponseBody.ts +31 -0
- package/src/models/model.ts +20 -0
package/src/client.ts
CHANGED
|
@@ -654,6 +654,59 @@ export default class Client extends OpenApi {
|
|
|
654
654
|
return await this.createCloudResourceWithOptions(headers, runtime);
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
+
/**
|
|
658
|
+
* 创建数据集
|
|
659
|
+
*
|
|
660
|
+
* @param request - CreateDatasetRequest
|
|
661
|
+
* @param headers - map
|
|
662
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
663
|
+
* @returns CreateDatasetResponse
|
|
664
|
+
*/
|
|
665
|
+
async createDatasetWithOptions(workspace: string, request: $_model.CreateDatasetRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDatasetResponse> {
|
|
666
|
+
request.validate();
|
|
667
|
+
let body : {[key: string ]: any} = { };
|
|
668
|
+
if (!$dara.isNull(request.datasetName)) {
|
|
669
|
+
body["datasetName"] = request.datasetName;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
if (!$dara.isNull(request.description)) {
|
|
673
|
+
body["description"] = request.description;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
if (!$dara.isNull(request.schema)) {
|
|
677
|
+
body["schema"] = request.schema;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
681
|
+
headers: headers,
|
|
682
|
+
body: OpenApiUtil.parseToMap(body),
|
|
683
|
+
});
|
|
684
|
+
let params = new $OpenApiUtil.Params({
|
|
685
|
+
action: "CreateDataset",
|
|
686
|
+
version: "2024-03-30",
|
|
687
|
+
protocol: "HTTPS",
|
|
688
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/dataset`,
|
|
689
|
+
method: "POST",
|
|
690
|
+
authType: "AK",
|
|
691
|
+
style: "ROA",
|
|
692
|
+
reqBodyType: "json",
|
|
693
|
+
bodyType: "json",
|
|
694
|
+
});
|
|
695
|
+
return $dara.cast<$_model.CreateDatasetResponse>(await this.callApi(params, req, runtime), new $_model.CreateDatasetResponse({}));
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* 创建数据集
|
|
700
|
+
*
|
|
701
|
+
* @param request - CreateDatasetRequest
|
|
702
|
+
* @returns CreateDatasetResponse
|
|
703
|
+
*/
|
|
704
|
+
async createDataset(workspace: string, request: $_model.CreateDatasetRequest): Promise<$_model.CreateDatasetResponse> {
|
|
705
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
706
|
+
let headers : {[key: string ]: string} = { };
|
|
707
|
+
return await this.createDatasetWithOptions(workspace, request, headers, runtime);
|
|
708
|
+
}
|
|
709
|
+
|
|
657
710
|
/**
|
|
658
711
|
* 创建数据投递任务
|
|
659
712
|
*
|
|
@@ -1745,6 +1798,41 @@ export default class Client extends OpenApi {
|
|
|
1745
1798
|
return await this.deleteCloudResourceWithOptions(headers, runtime);
|
|
1746
1799
|
}
|
|
1747
1800
|
|
|
1801
|
+
/**
|
|
1802
|
+
* 删除数据集
|
|
1803
|
+
*
|
|
1804
|
+
* @param headers - map
|
|
1805
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1806
|
+
* @returns DeleteDatasetResponse
|
|
1807
|
+
*/
|
|
1808
|
+
async deleteDatasetWithOptions(workspace: string, datasetName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteDatasetResponse> {
|
|
1809
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1810
|
+
headers: headers,
|
|
1811
|
+
});
|
|
1812
|
+
let params = new $OpenApiUtil.Params({
|
|
1813
|
+
action: "DeleteDataset",
|
|
1814
|
+
version: "2024-03-30",
|
|
1815
|
+
protocol: "HTTPS",
|
|
1816
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/dataset/${$dara.URL.percentEncode(datasetName)}`,
|
|
1817
|
+
method: "DELETE",
|
|
1818
|
+
authType: "AK",
|
|
1819
|
+
style: "ROA",
|
|
1820
|
+
reqBodyType: "json",
|
|
1821
|
+
bodyType: "json",
|
|
1822
|
+
});
|
|
1823
|
+
return $dara.cast<$_model.DeleteDatasetResponse>(await this.callApi(params, req, runtime), new $_model.DeleteDatasetResponse({}));
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* 删除数据集
|
|
1828
|
+
* @returns DeleteDatasetResponse
|
|
1829
|
+
*/
|
|
1830
|
+
async deleteDataset(workspace: string, datasetName: string): Promise<$_model.DeleteDatasetResponse> {
|
|
1831
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1832
|
+
let headers : {[key: string ]: string} = { };
|
|
1833
|
+
return await this.deleteDatasetWithOptions(workspace, datasetName, headers, runtime);
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1748
1836
|
/**
|
|
1749
1837
|
* 删除数据投递任务
|
|
1750
1838
|
*
|
|
@@ -2139,6 +2227,41 @@ export default class Client extends OpenApi {
|
|
|
2139
2227
|
return await this.deletePrometheusViewWithOptions(prometheusViewId, headers, runtime);
|
|
2140
2228
|
}
|
|
2141
2229
|
|
|
2230
|
+
/**
|
|
2231
|
+
* 删除 Prometheus 虚拟实例
|
|
2232
|
+
*
|
|
2233
|
+
* @param headers - map
|
|
2234
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2235
|
+
* @returns DeletePrometheusVirtualInstanceResponse
|
|
2236
|
+
*/
|
|
2237
|
+
async deletePrometheusVirtualInstanceWithOptions(prometheusInstanceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePrometheusVirtualInstanceResponse> {
|
|
2238
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2239
|
+
headers: headers,
|
|
2240
|
+
});
|
|
2241
|
+
let params = new $OpenApiUtil.Params({
|
|
2242
|
+
action: "DeletePrometheusVirtualInstance",
|
|
2243
|
+
version: "2024-03-30",
|
|
2244
|
+
protocol: "HTTPS",
|
|
2245
|
+
pathname: `/virtual-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
|
|
2246
|
+
method: "DELETE",
|
|
2247
|
+
authType: "AK",
|
|
2248
|
+
style: "ROA",
|
|
2249
|
+
reqBodyType: "json",
|
|
2250
|
+
bodyType: "json",
|
|
2251
|
+
});
|
|
2252
|
+
return $dara.cast<$_model.DeletePrometheusVirtualInstanceResponse>(await this.callApi(params, req, runtime), new $_model.DeletePrometheusVirtualInstanceResponse({}));
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* 删除 Prometheus 虚拟实例
|
|
2257
|
+
* @returns DeletePrometheusVirtualInstanceResponse
|
|
2258
|
+
*/
|
|
2259
|
+
async deletePrometheusVirtualInstance(prometheusInstanceId: string): Promise<$_model.DeletePrometheusVirtualInstanceResponse> {
|
|
2260
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2261
|
+
let headers : {[key: string ]: string} = { };
|
|
2262
|
+
return await this.deletePrometheusVirtualInstanceWithOptions(prometheusInstanceId, headers, runtime);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2142
2265
|
/**
|
|
2143
2266
|
* Delete Service
|
|
2144
2267
|
*
|
|
@@ -2434,6 +2557,55 @@ export default class Client extends OpenApi {
|
|
|
2434
2557
|
return await this.describeRegionsWithOptions(request, headers, runtime);
|
|
2435
2558
|
}
|
|
2436
2559
|
|
|
2560
|
+
/**
|
|
2561
|
+
* 执行查询语句
|
|
2562
|
+
*
|
|
2563
|
+
* @param request - ExecuteQueryRequest
|
|
2564
|
+
* @param headers - map
|
|
2565
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2566
|
+
* @returns ExecuteQueryResponse
|
|
2567
|
+
*/
|
|
2568
|
+
async executeQueryWithOptions(workspace: string, datasetName: string, request: $_model.ExecuteQueryRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ExecuteQueryResponse> {
|
|
2569
|
+
request.validate();
|
|
2570
|
+
let body : {[key: string ]: any} = { };
|
|
2571
|
+
if (!$dara.isNull(request.query)) {
|
|
2572
|
+
body["query"] = request.query;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
if (!$dara.isNull(request.type)) {
|
|
2576
|
+
body["type"] = request.type;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2580
|
+
headers: headers,
|
|
2581
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2582
|
+
});
|
|
2583
|
+
let params = new $OpenApiUtil.Params({
|
|
2584
|
+
action: "ExecuteQuery",
|
|
2585
|
+
version: "2024-03-30",
|
|
2586
|
+
protocol: "HTTPS",
|
|
2587
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/dataset/${$dara.URL.percentEncode(datasetName)}/query`,
|
|
2588
|
+
method: "POST",
|
|
2589
|
+
authType: "AK",
|
|
2590
|
+
style: "ROA",
|
|
2591
|
+
reqBodyType: "json",
|
|
2592
|
+
bodyType: "json",
|
|
2593
|
+
});
|
|
2594
|
+
return $dara.cast<$_model.ExecuteQueryResponse>(await this.callApi(params, req, runtime), new $_model.ExecuteQueryResponse({}));
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
* 执行查询语句
|
|
2599
|
+
*
|
|
2600
|
+
* @param request - ExecuteQueryRequest
|
|
2601
|
+
* @returns ExecuteQueryResponse
|
|
2602
|
+
*/
|
|
2603
|
+
async executeQuery(workspace: string, datasetName: string, request: $_model.ExecuteQueryRequest): Promise<$_model.ExecuteQueryResponse> {
|
|
2604
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2605
|
+
let headers : {[key: string ]: string} = { };
|
|
2606
|
+
return await this.executeQueryWithOptions(workspace, datasetName, request, headers, runtime);
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2437
2609
|
/**
|
|
2438
2610
|
* 插件详情(Addon)
|
|
2439
2611
|
*
|
|
@@ -2831,6 +3003,41 @@ export default class Client extends OpenApi {
|
|
|
2831
3003
|
return await this.getCmsServiceWithOptions(request, headers, runtime);
|
|
2832
3004
|
}
|
|
2833
3005
|
|
|
3006
|
+
/**
|
|
3007
|
+
* 查询数据集
|
|
3008
|
+
*
|
|
3009
|
+
* @param headers - map
|
|
3010
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3011
|
+
* @returns GetDatasetResponse
|
|
3012
|
+
*/
|
|
3013
|
+
async getDatasetWithOptions(workspace: string, datasetName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetDatasetResponse> {
|
|
3014
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3015
|
+
headers: headers,
|
|
3016
|
+
});
|
|
3017
|
+
let params = new $OpenApiUtil.Params({
|
|
3018
|
+
action: "GetDataset",
|
|
3019
|
+
version: "2024-03-30",
|
|
3020
|
+
protocol: "HTTPS",
|
|
3021
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/dataset/${$dara.URL.percentEncode(datasetName)}`,
|
|
3022
|
+
method: "GET",
|
|
3023
|
+
authType: "AK",
|
|
3024
|
+
style: "ROA",
|
|
3025
|
+
reqBodyType: "json",
|
|
3026
|
+
bodyType: "json",
|
|
3027
|
+
});
|
|
3028
|
+
return $dara.cast<$_model.GetDatasetResponse>(await this.callApi(params, req, runtime), new $_model.GetDatasetResponse({}));
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* 查询数据集
|
|
3033
|
+
* @returns GetDatasetResponse
|
|
3034
|
+
*/
|
|
3035
|
+
async getDataset(workspace: string, datasetName: string): Promise<$_model.GetDatasetResponse> {
|
|
3036
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3037
|
+
let headers : {[key: string ]: string} = { };
|
|
3038
|
+
return await this.getDatasetWithOptions(workspace, datasetName, headers, runtime);
|
|
3039
|
+
}
|
|
3040
|
+
|
|
2834
3041
|
/**
|
|
2835
3042
|
* 获取数据投递任务详情
|
|
2836
3043
|
*
|
|
@@ -4152,6 +4359,59 @@ export default class Client extends OpenApi {
|
|
|
4152
4359
|
return await this.listBizTracesWithOptions(request, headers, runtime);
|
|
4153
4360
|
}
|
|
4154
4361
|
|
|
4362
|
+
/**
|
|
4363
|
+
* 查询数据集列表
|
|
4364
|
+
*
|
|
4365
|
+
* @param request - ListDatasetsRequest
|
|
4366
|
+
* @param headers - map
|
|
4367
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4368
|
+
* @returns ListDatasetsResponse
|
|
4369
|
+
*/
|
|
4370
|
+
async listDatasetsWithOptions(workspace: string, request: $_model.ListDatasetsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListDatasetsResponse> {
|
|
4371
|
+
request.validate();
|
|
4372
|
+
let query : {[key: string ]: any} = { };
|
|
4373
|
+
if (!$dara.isNull(request.datasetName)) {
|
|
4374
|
+
query["datasetName"] = request.datasetName;
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4377
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
4378
|
+
query["maxResults"] = request.maxResults;
|
|
4379
|
+
}
|
|
4380
|
+
|
|
4381
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4382
|
+
query["nextToken"] = request.nextToken;
|
|
4383
|
+
}
|
|
4384
|
+
|
|
4385
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4386
|
+
headers: headers,
|
|
4387
|
+
query: OpenApiUtil.query(query),
|
|
4388
|
+
});
|
|
4389
|
+
let params = new $OpenApiUtil.Params({
|
|
4390
|
+
action: "ListDatasets",
|
|
4391
|
+
version: "2024-03-30",
|
|
4392
|
+
protocol: "HTTPS",
|
|
4393
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/dataset`,
|
|
4394
|
+
method: "GET",
|
|
4395
|
+
authType: "AK",
|
|
4396
|
+
style: "ROA",
|
|
4397
|
+
reqBodyType: "json",
|
|
4398
|
+
bodyType: "json",
|
|
4399
|
+
});
|
|
4400
|
+
return $dara.cast<$_model.ListDatasetsResponse>(await this.callApi(params, req, runtime), new $_model.ListDatasetsResponse({}));
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4403
|
+
/**
|
|
4404
|
+
* 查询数据集列表
|
|
4405
|
+
*
|
|
4406
|
+
* @param request - ListDatasetsRequest
|
|
4407
|
+
* @returns ListDatasetsResponse
|
|
4408
|
+
*/
|
|
4409
|
+
async listDatasets(workspace: string, request: $_model.ListDatasetsRequest): Promise<$_model.ListDatasetsResponse> {
|
|
4410
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4411
|
+
let headers : {[key: string ]: string} = { };
|
|
4412
|
+
return await this.listDatasetsWithOptions(workspace, request, headers, runtime);
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4155
4415
|
/**
|
|
4156
4416
|
* 获取数据投递任务列表
|
|
4157
4417
|
*
|
|
@@ -6062,6 +6322,51 @@ export default class Client extends OpenApi {
|
|
|
6062
6322
|
return await this.updateBizTraceWithOptions(bizTraceId, request, headers, runtime);
|
|
6063
6323
|
}
|
|
6064
6324
|
|
|
6325
|
+
/**
|
|
6326
|
+
* 更新数据集
|
|
6327
|
+
*
|
|
6328
|
+
* @param request - UpdateDatasetRequest
|
|
6329
|
+
* @param headers - map
|
|
6330
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6331
|
+
* @returns UpdateDatasetResponse
|
|
6332
|
+
*/
|
|
6333
|
+
async updateDatasetWithOptions(workspace: string, datasetName: string, request: $_model.UpdateDatasetRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateDatasetResponse> {
|
|
6334
|
+
request.validate();
|
|
6335
|
+
let body : {[key: string ]: any} = { };
|
|
6336
|
+
if (!$dara.isNull(request.description)) {
|
|
6337
|
+
body["description"] = request.description;
|
|
6338
|
+
}
|
|
6339
|
+
|
|
6340
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6341
|
+
headers: headers,
|
|
6342
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6343
|
+
});
|
|
6344
|
+
let params = new $OpenApiUtil.Params({
|
|
6345
|
+
action: "UpdateDataset",
|
|
6346
|
+
version: "2024-03-30",
|
|
6347
|
+
protocol: "HTTPS",
|
|
6348
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/dataset/${$dara.URL.percentEncode(datasetName)}`,
|
|
6349
|
+
method: "PUT",
|
|
6350
|
+
authType: "AK",
|
|
6351
|
+
style: "ROA",
|
|
6352
|
+
reqBodyType: "json",
|
|
6353
|
+
bodyType: "json",
|
|
6354
|
+
});
|
|
6355
|
+
return $dara.cast<$_model.UpdateDatasetResponse>(await this.callApi(params, req, runtime), new $_model.UpdateDatasetResponse({}));
|
|
6356
|
+
}
|
|
6357
|
+
|
|
6358
|
+
/**
|
|
6359
|
+
* 更新数据集
|
|
6360
|
+
*
|
|
6361
|
+
* @param request - UpdateDatasetRequest
|
|
6362
|
+
* @returns UpdateDatasetResponse
|
|
6363
|
+
*/
|
|
6364
|
+
async updateDataset(workspace: string, datasetName: string, request: $_model.UpdateDatasetRequest): Promise<$_model.UpdateDatasetResponse> {
|
|
6365
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6366
|
+
let headers : {[key: string ]: string} = { };
|
|
6367
|
+
return await this.updateDatasetWithOptions(workspace, datasetName, request, headers, runtime);
|
|
6368
|
+
}
|
|
6369
|
+
|
|
6065
6370
|
/**
|
|
6066
6371
|
* 更新数据投递任务
|
|
6067
6372
|
*
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { IndexKey } from "./IndexKey";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateDatasetRequest extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* This parameter is required.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* test_dataset
|
|
13
|
+
*/
|
|
14
|
+
datasetName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @example
|
|
17
|
+
* test
|
|
18
|
+
*/
|
|
19
|
+
description?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @remarks
|
|
22
|
+
* This parameter is required.
|
|
23
|
+
*/
|
|
24
|
+
schema?: { [key: string]: IndexKey };
|
|
25
|
+
static names(): { [key: string]: string } {
|
|
26
|
+
return {
|
|
27
|
+
datasetName: 'datasetName',
|
|
28
|
+
description: 'description',
|
|
29
|
+
schema: 'schema',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static types(): { [key: string]: any } {
|
|
34
|
+
return {
|
|
35
|
+
datasetName: 'string',
|
|
36
|
+
description: 'string',
|
|
37
|
+
schema: { 'type': 'map', 'keyType': 'string', 'valueType': IndexKey },
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
validate() {
|
|
42
|
+
if(this.schema) {
|
|
43
|
+
$dara.Model.validateMap(this.schema);
|
|
44
|
+
}
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateDatasetResponseBody } from "./CreateDatasetResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateDatasetResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateDatasetResponseBody;
|
|
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: CreateDatasetResponseBody,
|
|
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 CreateDatasetResponseBody 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
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteDatasetResponseBody } from "./DeleteDatasetResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteDatasetResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteDatasetResponseBody;
|
|
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: DeleteDatasetResponseBody,
|
|
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 DeleteDatasetResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 0CEC5375-C554-562B-A65F-9A629907C1F0
|
|
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
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeletePrometheusVirtualInstanceResponseBody } from "./DeletePrometheusVirtualInstanceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeletePrometheusVirtualInstanceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeletePrometheusVirtualInstanceResponseBody;
|
|
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: DeletePrometheusVirtualInstanceResponseBody,
|
|
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 DeletePrometheusVirtualInstanceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 8FDE2569-626B-5176-9844-28877A*****
|
|
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
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ExecuteQueryRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* SELECT count(1) from "datasetname"
|
|
12
|
+
*/
|
|
13
|
+
query?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* SQL
|
|
20
|
+
*/
|
|
21
|
+
type?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
query: 'query',
|
|
25
|
+
type: 'type',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
query: 'string',
|
|
32
|
+
type: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|