@alicloud/cms20240330 9.0.1 → 9.1.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 +90 -0
- package/dist/client.js +233 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreatePipelineRequest.d.ts +213 -0
- package/dist/models/CreatePipelineRequest.js +291 -0
- package/dist/models/CreatePipelineRequest.js.map +1 -0
- package/dist/models/CreatePipelineResponse.d.ts +19 -0
- package/dist/models/CreatePipelineResponse.js +69 -0
- package/dist/models/CreatePipelineResponse.js.map +1 -0
- package/dist/models/CreatePipelineResponseBody.d.ts +18 -0
- package/dist/models/CreatePipelineResponseBody.js +58 -0
- package/dist/models/CreatePipelineResponseBody.js.map +1 -0
- package/dist/models/DeletePipelineRequest.d.ts +13 -0
- package/dist/models/DeletePipelineRequest.js +54 -0
- package/dist/models/DeletePipelineRequest.js.map +1 -0
- package/dist/models/DeletePipelineResponse.d.ts +19 -0
- package/dist/models/DeletePipelineResponse.js +69 -0
- package/dist/models/DeletePipelineResponse.js.map +1 -0
- package/dist/models/DeletePipelineResponseBody.d.ts +18 -0
- package/dist/models/DeletePipelineResponseBody.js +58 -0
- package/dist/models/DeletePipelineResponseBody.js.map +1 -0
- package/dist/models/GetPipelineRequest.d.ts +13 -0
- package/dist/models/GetPipelineRequest.js +54 -0
- package/dist/models/GetPipelineRequest.js.map +1 -0
- package/dist/models/GetPipelineResponse.d.ts +19 -0
- package/dist/models/GetPipelineResponse.js +69 -0
- package/dist/models/GetPipelineResponse.js.map +1 -0
- package/dist/models/GetPipelineResponseBody.d.ts +239 -0
- package/dist/models/GetPipelineResponseBody.js +299 -0
- package/dist/models/GetPipelineResponseBody.js.map +1 -0
- package/dist/models/ListPipelinesRequest.d.ts +28 -0
- package/dist/models/ListPipelinesRequest.js +62 -0
- package/dist/models/ListPipelinesRequest.js.map +1 -0
- package/dist/models/ListPipelinesResponse.d.ts +19 -0
- package/dist/models/ListPipelinesResponse.js +69 -0
- package/dist/models/ListPipelinesResponse.js.map +1 -0
- package/dist/models/ListPipelinesResponseBody.d.ts +80 -0
- package/dist/models/ListPipelinesResponseBody.js +96 -0
- package/dist/models/ListPipelinesResponseBody.js.map +1 -0
- package/dist/models/UpdatePipelineRequest.d.ts +203 -0
- package/dist/models/UpdatePipelineRequest.js +287 -0
- package/dist/models/UpdatePipelineRequest.js.map +1 -0
- package/dist/models/UpdatePipelineResponse.d.ts +19 -0
- package/dist/models/UpdatePipelineResponse.js +69 -0
- package/dist/models/UpdatePipelineResponse.js.map +1 -0
- package/dist/models/UpdatePipelineResponseBody.d.ts +18 -0
- package/dist/models/UpdatePipelineResponseBody.js +58 -0
- package/dist/models/UpdatePipelineResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +43 -0
- package/dist/models/model.js +100 -14
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +257 -0
- package/src/models/CreatePipelineRequest.ts +376 -0
- package/src/models/CreatePipelineResponse.ts +40 -0
- package/src/models/CreatePipelineResponseBody.ts +31 -0
- package/src/models/DeletePipelineRequest.ts +24 -0
- package/src/models/DeletePipelineResponse.ts +40 -0
- package/src/models/DeletePipelineResponseBody.ts +31 -0
- package/src/models/GetPipelineRequest.ts +24 -0
- package/src/models/GetPipelineResponse.ts +40 -0
- package/src/models/GetPipelineResponseBody.ts +410 -0
- package/src/models/ListPipelinesRequest.ts +45 -0
- package/src/models/ListPipelinesResponse.ts +40 -0
- package/src/models/ListPipelinesResponseBody.ts +122 -0
- package/src/models/UpdatePipelineRequest.ts +362 -0
- package/src/models/UpdatePipelineResponse.ts +40 -0
- package/src/models/UpdatePipelineResponseBody.ts +31 -0
- package/src/models/model.ts +43 -0
package/src/client.ts
CHANGED
|
@@ -839,6 +839,71 @@ export default class Client extends OpenApi {
|
|
|
839
839
|
return await this.createMemoryStoreWithOptions(workspace, request, headers, runtime);
|
|
840
840
|
}
|
|
841
841
|
|
|
842
|
+
/**
|
|
843
|
+
* 创建流水线
|
|
844
|
+
*
|
|
845
|
+
* @param request - CreatePipelineRequest
|
|
846
|
+
* @param headers - map
|
|
847
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
848
|
+
* @returns CreatePipelineResponse
|
|
849
|
+
*/
|
|
850
|
+
async createPipelineWithOptions(workspace: string, request: $_model.CreatePipelineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePipelineResponse> {
|
|
851
|
+
request.validate();
|
|
852
|
+
let body : {[key: string ]: any} = { };
|
|
853
|
+
if (!$dara.isNull(request.description)) {
|
|
854
|
+
body["description"] = request.description;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
if (!$dara.isNull(request.executePolicy)) {
|
|
858
|
+
body["executePolicy"] = request.executePolicy;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
if (!$dara.isNull(request.pipeline)) {
|
|
862
|
+
body["pipeline"] = request.pipeline;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
if (!$dara.isNull(request.pipelineName)) {
|
|
866
|
+
body["pipelineName"] = request.pipelineName;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
if (!$dara.isNull(request.sink)) {
|
|
870
|
+
body["sink"] = request.sink;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
if (!$dara.isNull(request.source)) {
|
|
874
|
+
body["source"] = request.source;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
878
|
+
headers: headers,
|
|
879
|
+
body: OpenApiUtil.parseToMap(body),
|
|
880
|
+
});
|
|
881
|
+
let params = new $OpenApiUtil.Params({
|
|
882
|
+
action: "CreatePipeline",
|
|
883
|
+
version: "2024-03-30",
|
|
884
|
+
protocol: "HTTPS",
|
|
885
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/pipeline`,
|
|
886
|
+
method: "POST",
|
|
887
|
+
authType: "AK",
|
|
888
|
+
style: "ROA",
|
|
889
|
+
reqBodyType: "json",
|
|
890
|
+
bodyType: "json",
|
|
891
|
+
});
|
|
892
|
+
return $dara.cast<$_model.CreatePipelineResponse>(await this.callApi(params, req, runtime), new $_model.CreatePipelineResponse({}));
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* 创建流水线
|
|
897
|
+
*
|
|
898
|
+
* @param request - CreatePipelineRequest
|
|
899
|
+
* @returns CreatePipelineResponse
|
|
900
|
+
*/
|
|
901
|
+
async createPipeline(workspace: string, request: $_model.CreatePipelineRequest): Promise<$_model.CreatePipelineResponse> {
|
|
902
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
903
|
+
let headers : {[key: string ]: string} = { };
|
|
904
|
+
return await this.createPipelineWithOptions(workspace, request, headers, runtime);
|
|
905
|
+
}
|
|
906
|
+
|
|
842
907
|
/**
|
|
843
908
|
* Create a Prometheus monitoring instance
|
|
844
909
|
*
|
|
@@ -1800,6 +1865,45 @@ export default class Client extends OpenApi {
|
|
|
1800
1865
|
return await this.deleteMemoryStoreWithOptions(workspace, memoryStoreName, request, headers, runtime);
|
|
1801
1866
|
}
|
|
1802
1867
|
|
|
1868
|
+
/**
|
|
1869
|
+
* 删除流水线
|
|
1870
|
+
*
|
|
1871
|
+
* @param request - DeletePipelineRequest
|
|
1872
|
+
* @param headers - map
|
|
1873
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1874
|
+
* @returns DeletePipelineResponse
|
|
1875
|
+
*/
|
|
1876
|
+
async deletePipelineWithOptions(workspace: string, pipelineName: string, request: $_model.DeletePipelineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePipelineResponse> {
|
|
1877
|
+
request.validate();
|
|
1878
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1879
|
+
headers: headers,
|
|
1880
|
+
});
|
|
1881
|
+
let params = new $OpenApiUtil.Params({
|
|
1882
|
+
action: "DeletePipeline",
|
|
1883
|
+
version: "2024-03-30",
|
|
1884
|
+
protocol: "HTTPS",
|
|
1885
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/pipeline/${$dara.URL.percentEncode(pipelineName)}`,
|
|
1886
|
+
method: "DELETE",
|
|
1887
|
+
authType: "AK",
|
|
1888
|
+
style: "ROA",
|
|
1889
|
+
reqBodyType: "json",
|
|
1890
|
+
bodyType: "json",
|
|
1891
|
+
});
|
|
1892
|
+
return $dara.cast<$_model.DeletePipelineResponse>(await this.callApi(params, req, runtime), new $_model.DeletePipelineResponse({}));
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* 删除流水线
|
|
1897
|
+
*
|
|
1898
|
+
* @param request - DeletePipelineRequest
|
|
1899
|
+
* @returns DeletePipelineResponse
|
|
1900
|
+
*/
|
|
1901
|
+
async deletePipeline(workspace: string, pipelineName: string, request: $_model.DeletePipelineRequest): Promise<$_model.DeletePipelineResponse> {
|
|
1902
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1903
|
+
let headers : {[key: string ]: string} = { };
|
|
1904
|
+
return await this.deletePipelineWithOptions(workspace, pipelineName, request, headers, runtime);
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1803
1907
|
/**
|
|
1804
1908
|
* Delete prom instance
|
|
1805
1909
|
*
|
|
@@ -3183,6 +3287,45 @@ export default class Client extends OpenApi {
|
|
|
3183
3287
|
return await this.getMemoryStoreWithOptions(workspace, memoryStoreName, request, headers, runtime);
|
|
3184
3288
|
}
|
|
3185
3289
|
|
|
3290
|
+
/**
|
|
3291
|
+
* 查询流水线
|
|
3292
|
+
*
|
|
3293
|
+
* @param request - GetPipelineRequest
|
|
3294
|
+
* @param headers - map
|
|
3295
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3296
|
+
* @returns GetPipelineResponse
|
|
3297
|
+
*/
|
|
3298
|
+
async getPipelineWithOptions(workspace: string, pipelineName: string, request: $_model.GetPipelineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetPipelineResponse> {
|
|
3299
|
+
request.validate();
|
|
3300
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3301
|
+
headers: headers,
|
|
3302
|
+
});
|
|
3303
|
+
let params = new $OpenApiUtil.Params({
|
|
3304
|
+
action: "GetPipeline",
|
|
3305
|
+
version: "2024-03-30",
|
|
3306
|
+
protocol: "HTTPS",
|
|
3307
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/pipeline/${$dara.URL.percentEncode(pipelineName)}`,
|
|
3308
|
+
method: "GET",
|
|
3309
|
+
authType: "AK",
|
|
3310
|
+
style: "ROA",
|
|
3311
|
+
reqBodyType: "json",
|
|
3312
|
+
bodyType: "json",
|
|
3313
|
+
});
|
|
3314
|
+
return $dara.cast<$_model.GetPipelineResponse>(await this.callApi(params, req, runtime), new $_model.GetPipelineResponse({}));
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
/**
|
|
3318
|
+
* 查询流水线
|
|
3319
|
+
*
|
|
3320
|
+
* @param request - GetPipelineRequest
|
|
3321
|
+
* @returns GetPipelineResponse
|
|
3322
|
+
*/
|
|
3323
|
+
async getPipeline(workspace: string, pipelineName: string, request: $_model.GetPipelineRequest): Promise<$_model.GetPipelineResponse> {
|
|
3324
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3325
|
+
let headers : {[key: string ]: string} = { };
|
|
3326
|
+
return await this.getPipelineWithOptions(workspace, pipelineName, request, headers, runtime);
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3186
3329
|
/**
|
|
3187
3330
|
* Query the instance in a specified environment
|
|
3188
3331
|
*
|
|
@@ -4860,6 +5003,59 @@ export default class Client extends OpenApi {
|
|
|
4860
5003
|
return await this.listMemoryStoresWithOptions(workspace, request, headers, runtime);
|
|
4861
5004
|
}
|
|
4862
5005
|
|
|
5006
|
+
/**
|
|
5007
|
+
* 查询流水线列表
|
|
5008
|
+
*
|
|
5009
|
+
* @param request - ListPipelinesRequest
|
|
5010
|
+
* @param headers - map
|
|
5011
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5012
|
+
* @returns ListPipelinesResponse
|
|
5013
|
+
*/
|
|
5014
|
+
async listPipelinesWithOptions(workspace: string, request: $_model.ListPipelinesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPipelinesResponse> {
|
|
5015
|
+
request.validate();
|
|
5016
|
+
let query : {[key: string ]: any} = { };
|
|
5017
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
5018
|
+
query["maxResults"] = request.maxResults;
|
|
5019
|
+
}
|
|
5020
|
+
|
|
5021
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
5022
|
+
query["nextToken"] = request.nextToken;
|
|
5023
|
+
}
|
|
5024
|
+
|
|
5025
|
+
if (!$dara.isNull(request.pipelineName)) {
|
|
5026
|
+
query["pipelineName"] = request.pipelineName;
|
|
5027
|
+
}
|
|
5028
|
+
|
|
5029
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5030
|
+
headers: headers,
|
|
5031
|
+
query: OpenApiUtil.query(query),
|
|
5032
|
+
});
|
|
5033
|
+
let params = new $OpenApiUtil.Params({
|
|
5034
|
+
action: "ListPipelines",
|
|
5035
|
+
version: "2024-03-30",
|
|
5036
|
+
protocol: "HTTPS",
|
|
5037
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/pipeline`,
|
|
5038
|
+
method: "GET",
|
|
5039
|
+
authType: "AK",
|
|
5040
|
+
style: "ROA",
|
|
5041
|
+
reqBodyType: "json",
|
|
5042
|
+
bodyType: "json",
|
|
5043
|
+
});
|
|
5044
|
+
return $dara.cast<$_model.ListPipelinesResponse>(await this.callApi(params, req, runtime), new $_model.ListPipelinesResponse({}));
|
|
5045
|
+
}
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
* 查询流水线列表
|
|
5049
|
+
*
|
|
5050
|
+
* @param request - ListPipelinesRequest
|
|
5051
|
+
* @returns ListPipelinesResponse
|
|
5052
|
+
*/
|
|
5053
|
+
async listPipelines(workspace: string, request: $_model.ListPipelinesRequest): Promise<$_model.ListPipelinesResponse> {
|
|
5054
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5055
|
+
let headers : {[key: string ]: string} = { };
|
|
5056
|
+
return await this.listPipelinesWithOptions(workspace, request, headers, runtime);
|
|
5057
|
+
}
|
|
5058
|
+
|
|
4863
5059
|
/**
|
|
4864
5060
|
* Get Prometheus Instance Dashboard List
|
|
4865
5061
|
*
|
|
@@ -6407,6 +6603,67 @@ export default class Client extends OpenApi {
|
|
|
6407
6603
|
return await this.updateNotifyStrategyWithOptions(notifyStrategyId, request, headers, runtime);
|
|
6408
6604
|
}
|
|
6409
6605
|
|
|
6606
|
+
/**
|
|
6607
|
+
* 更新流水线
|
|
6608
|
+
*
|
|
6609
|
+
* @param request - UpdatePipelineRequest
|
|
6610
|
+
* @param headers - map
|
|
6611
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6612
|
+
* @returns UpdatePipelineResponse
|
|
6613
|
+
*/
|
|
6614
|
+
async updatePipelineWithOptions(workspace: string, pipelineName: string, request: $_model.UpdatePipelineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdatePipelineResponse> {
|
|
6615
|
+
request.validate();
|
|
6616
|
+
let body : {[key: string ]: any} = { };
|
|
6617
|
+
if (!$dara.isNull(request.description)) {
|
|
6618
|
+
body["description"] = request.description;
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
if (!$dara.isNull(request.executePolicy)) {
|
|
6622
|
+
body["executePolicy"] = request.executePolicy;
|
|
6623
|
+
}
|
|
6624
|
+
|
|
6625
|
+
if (!$dara.isNull(request.pipeline)) {
|
|
6626
|
+
body["pipeline"] = request.pipeline;
|
|
6627
|
+
}
|
|
6628
|
+
|
|
6629
|
+
if (!$dara.isNull(request.sink)) {
|
|
6630
|
+
body["sink"] = request.sink;
|
|
6631
|
+
}
|
|
6632
|
+
|
|
6633
|
+
if (!$dara.isNull(request.source)) {
|
|
6634
|
+
body["source"] = request.source;
|
|
6635
|
+
}
|
|
6636
|
+
|
|
6637
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6638
|
+
headers: headers,
|
|
6639
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6640
|
+
});
|
|
6641
|
+
let params = new $OpenApiUtil.Params({
|
|
6642
|
+
action: "UpdatePipeline",
|
|
6643
|
+
version: "2024-03-30",
|
|
6644
|
+
protocol: "HTTPS",
|
|
6645
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/pipeline/${$dara.URL.percentEncode(pipelineName)}`,
|
|
6646
|
+
method: "PUT",
|
|
6647
|
+
authType: "AK",
|
|
6648
|
+
style: "ROA",
|
|
6649
|
+
reqBodyType: "json",
|
|
6650
|
+
bodyType: "json",
|
|
6651
|
+
});
|
|
6652
|
+
return $dara.cast<$_model.UpdatePipelineResponse>(await this.callApi(params, req, runtime), new $_model.UpdatePipelineResponse({}));
|
|
6653
|
+
}
|
|
6654
|
+
|
|
6655
|
+
/**
|
|
6656
|
+
* 更新流水线
|
|
6657
|
+
*
|
|
6658
|
+
* @param request - UpdatePipelineRequest
|
|
6659
|
+
* @returns UpdatePipelineResponse
|
|
6660
|
+
*/
|
|
6661
|
+
async updatePipeline(workspace: string, pipelineName: string, request: $_model.UpdatePipelineRequest): Promise<$_model.UpdatePipelineResponse> {
|
|
6662
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6663
|
+
let headers : {[key: string ]: string} = { };
|
|
6664
|
+
return await this.updatePipelineWithOptions(workspace, pipelineName, request, headers, runtime);
|
|
6665
|
+
}
|
|
6666
|
+
|
|
6410
6667
|
/**
|
|
6411
6668
|
* Update Prometheus instance information
|
|
6412
6669
|
*
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreatePipelineRequestExecutePolicyRunOnce extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1772519013
|
|
9
|
+
*/
|
|
10
|
+
fromTime?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1772519013
|
|
14
|
+
*/
|
|
15
|
+
toTime?: number;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
fromTime: 'fromTime',
|
|
19
|
+
toTime: 'toTime',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
fromTime: 'number',
|
|
26
|
+
toTime: 'number',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class CreatePipelineRequestExecutePolicyScheduled extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* 1772519013
|
|
43
|
+
*/
|
|
44
|
+
fromTime?: number;
|
|
45
|
+
/**
|
|
46
|
+
* @example
|
|
47
|
+
* 86400
|
|
48
|
+
*/
|
|
49
|
+
interval?: string;
|
|
50
|
+
static names(): { [key: string]: string } {
|
|
51
|
+
return {
|
|
52
|
+
fromTime: 'fromTime',
|
|
53
|
+
interval: 'interval',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static types(): { [key: string]: any } {
|
|
58
|
+
return {
|
|
59
|
+
fromTime: 'number',
|
|
60
|
+
interval: 'string',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validate() {
|
|
65
|
+
super.validate();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
constructor(map?: { [key: string]: any }) {
|
|
69
|
+
super(map);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class CreatePipelineRequestExecutePolicy extends $dara.Model {
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* runOnce
|
|
77
|
+
*/
|
|
78
|
+
mode?: string;
|
|
79
|
+
runOnce?: CreatePipelineRequestExecutePolicyRunOnce;
|
|
80
|
+
scheduled?: CreatePipelineRequestExecutePolicyScheduled;
|
|
81
|
+
static names(): { [key: string]: string } {
|
|
82
|
+
return {
|
|
83
|
+
mode: 'mode',
|
|
84
|
+
runOnce: 'runOnce',
|
|
85
|
+
scheduled: 'scheduled',
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static types(): { [key: string]: any } {
|
|
90
|
+
return {
|
|
91
|
+
mode: 'string',
|
|
92
|
+
runOnce: CreatePipelineRequestExecutePolicyRunOnce,
|
|
93
|
+
scheduled: CreatePipelineRequestExecutePolicyScheduled,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
validate() {
|
|
98
|
+
if(this.runOnce && typeof (this.runOnce as any).validate === 'function') {
|
|
99
|
+
(this.runOnce as any).validate();
|
|
100
|
+
}
|
|
101
|
+
if(this.scheduled && typeof (this.scheduled as any).validate === 'function') {
|
|
102
|
+
(this.scheduled as any).validate();
|
|
103
|
+
}
|
|
104
|
+
super.validate();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
constructor(map?: { [key: string]: any }) {
|
|
108
|
+
super(map);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export class CreatePipelineRequestPipelineNodes extends $dara.Model {
|
|
113
|
+
/**
|
|
114
|
+
* @example
|
|
115
|
+
* node_1
|
|
116
|
+
*/
|
|
117
|
+
id?: string;
|
|
118
|
+
parameters?: { [key: string]: any };
|
|
119
|
+
/**
|
|
120
|
+
* @example
|
|
121
|
+
* dedup-fuzzy
|
|
122
|
+
*/
|
|
123
|
+
type?: string;
|
|
124
|
+
static names(): { [key: string]: string } {
|
|
125
|
+
return {
|
|
126
|
+
id: 'id',
|
|
127
|
+
parameters: 'parameters',
|
|
128
|
+
type: 'type',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static types(): { [key: string]: any } {
|
|
133
|
+
return {
|
|
134
|
+
id: 'string',
|
|
135
|
+
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
136
|
+
type: 'string',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
validate() {
|
|
141
|
+
if(this.parameters) {
|
|
142
|
+
$dara.Model.validateMap(this.parameters);
|
|
143
|
+
}
|
|
144
|
+
super.validate();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
constructor(map?: { [key: string]: any }) {
|
|
148
|
+
super(map);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export class CreatePipelineRequestPipeline extends $dara.Model {
|
|
153
|
+
nodes?: CreatePipelineRequestPipelineNodes[];
|
|
154
|
+
static names(): { [key: string]: string } {
|
|
155
|
+
return {
|
|
156
|
+
nodes: 'nodes',
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
static types(): { [key: string]: any } {
|
|
161
|
+
return {
|
|
162
|
+
nodes: { 'type': 'array', 'itemType': CreatePipelineRequestPipelineNodes },
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
validate() {
|
|
167
|
+
if(Array.isArray(this.nodes)) {
|
|
168
|
+
$dara.Model.validateArray(this.nodes);
|
|
169
|
+
}
|
|
170
|
+
super.validate();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
constructor(map?: { [key: string]: any }) {
|
|
174
|
+
super(map);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export class CreatePipelineRequestSinkDataset extends $dara.Model {
|
|
179
|
+
/**
|
|
180
|
+
* @example
|
|
181
|
+
* dataset_1
|
|
182
|
+
*/
|
|
183
|
+
dataset?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @example
|
|
186
|
+
* workspace-test
|
|
187
|
+
*/
|
|
188
|
+
workspace?: string;
|
|
189
|
+
static names(): { [key: string]: string } {
|
|
190
|
+
return {
|
|
191
|
+
dataset: 'dataset',
|
|
192
|
+
workspace: 'workspace',
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
static types(): { [key: string]: any } {
|
|
197
|
+
return {
|
|
198
|
+
dataset: 'string',
|
|
199
|
+
workspace: 'string',
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
validate() {
|
|
204
|
+
super.validate();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
constructor(map?: { [key: string]: any }) {
|
|
208
|
+
super(map);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export class CreatePipelineRequestSink extends $dara.Model {
|
|
213
|
+
dataset?: CreatePipelineRequestSinkDataset;
|
|
214
|
+
/**
|
|
215
|
+
* @example
|
|
216
|
+
* dataset
|
|
217
|
+
*/
|
|
218
|
+
type?: string;
|
|
219
|
+
static names(): { [key: string]: string } {
|
|
220
|
+
return {
|
|
221
|
+
dataset: 'dataset',
|
|
222
|
+
type: 'type',
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static types(): { [key: string]: any } {
|
|
227
|
+
return {
|
|
228
|
+
dataset: CreatePipelineRequestSinkDataset,
|
|
229
|
+
type: 'string',
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
validate() {
|
|
234
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
235
|
+
(this.dataset as any).validate();
|
|
236
|
+
}
|
|
237
|
+
super.validate();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
constructor(map?: { [key: string]: any }) {
|
|
241
|
+
super(map);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export class CreatePipelineRequestSourceLogstore extends $dara.Model {
|
|
246
|
+
/**
|
|
247
|
+
* @example
|
|
248
|
+
* test-logstore
|
|
249
|
+
*/
|
|
250
|
+
logstore?: string;
|
|
251
|
+
/**
|
|
252
|
+
* @example
|
|
253
|
+
* test-project
|
|
254
|
+
*/
|
|
255
|
+
project?: string;
|
|
256
|
+
/**
|
|
257
|
+
* @example
|
|
258
|
+
* status:500 and method:GET
|
|
259
|
+
*/
|
|
260
|
+
query?: string;
|
|
261
|
+
static names(): { [key: string]: string } {
|
|
262
|
+
return {
|
|
263
|
+
logstore: 'logstore',
|
|
264
|
+
project: 'project',
|
|
265
|
+
query: 'query',
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
static types(): { [key: string]: any } {
|
|
270
|
+
return {
|
|
271
|
+
logstore: 'string',
|
|
272
|
+
project: 'string',
|
|
273
|
+
query: 'string',
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
validate() {
|
|
278
|
+
super.validate();
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
constructor(map?: { [key: string]: any }) {
|
|
282
|
+
super(map);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export class CreatePipelineRequestSource extends $dara.Model {
|
|
287
|
+
logstore?: CreatePipelineRequestSourceLogstore;
|
|
288
|
+
/**
|
|
289
|
+
* @example
|
|
290
|
+
* logstore
|
|
291
|
+
*/
|
|
292
|
+
type?: string;
|
|
293
|
+
static names(): { [key: string]: string } {
|
|
294
|
+
return {
|
|
295
|
+
logstore: 'logstore',
|
|
296
|
+
type: 'type',
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static types(): { [key: string]: any } {
|
|
301
|
+
return {
|
|
302
|
+
logstore: CreatePipelineRequestSourceLogstore,
|
|
303
|
+
type: 'string',
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
validate() {
|
|
308
|
+
if(this.logstore && typeof (this.logstore as any).validate === 'function') {
|
|
309
|
+
(this.logstore as any).validate();
|
|
310
|
+
}
|
|
311
|
+
super.validate();
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
constructor(map?: { [key: string]: any }) {
|
|
315
|
+
super(map);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export class CreatePipelineRequest extends $dara.Model {
|
|
320
|
+
/**
|
|
321
|
+
* @example
|
|
322
|
+
* test
|
|
323
|
+
*/
|
|
324
|
+
description?: string;
|
|
325
|
+
executePolicy?: CreatePipelineRequestExecutePolicy;
|
|
326
|
+
pipeline?: CreatePipelineRequestPipeline;
|
|
327
|
+
/**
|
|
328
|
+
* @example
|
|
329
|
+
* pipeline-name-1
|
|
330
|
+
*/
|
|
331
|
+
pipelineName?: string;
|
|
332
|
+
sink?: CreatePipelineRequestSink;
|
|
333
|
+
source?: CreatePipelineRequestSource;
|
|
334
|
+
static names(): { [key: string]: string } {
|
|
335
|
+
return {
|
|
336
|
+
description: 'description',
|
|
337
|
+
executePolicy: 'executePolicy',
|
|
338
|
+
pipeline: 'pipeline',
|
|
339
|
+
pipelineName: 'pipelineName',
|
|
340
|
+
sink: 'sink',
|
|
341
|
+
source: 'source',
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
static types(): { [key: string]: any } {
|
|
346
|
+
return {
|
|
347
|
+
description: 'string',
|
|
348
|
+
executePolicy: CreatePipelineRequestExecutePolicy,
|
|
349
|
+
pipeline: CreatePipelineRequestPipeline,
|
|
350
|
+
pipelineName: 'string',
|
|
351
|
+
sink: CreatePipelineRequestSink,
|
|
352
|
+
source: CreatePipelineRequestSource,
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
validate() {
|
|
357
|
+
if(this.executePolicy && typeof (this.executePolicy as any).validate === 'function') {
|
|
358
|
+
(this.executePolicy as any).validate();
|
|
359
|
+
}
|
|
360
|
+
if(this.pipeline && typeof (this.pipeline as any).validate === 'function') {
|
|
361
|
+
(this.pipeline as any).validate();
|
|
362
|
+
}
|
|
363
|
+
if(this.sink && typeof (this.sink as any).validate === 'function') {
|
|
364
|
+
(this.sink as any).validate();
|
|
365
|
+
}
|
|
366
|
+
if(this.source && typeof (this.source as any).validate === 'function') {
|
|
367
|
+
(this.source as any).validate();
|
|
368
|
+
}
|
|
369
|
+
super.validate();
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
constructor(map?: { [key: string]: any }) {
|
|
373
|
+
super(map);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreatePipelineResponseBody } from "./CreatePipelineResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreatePipelineResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreatePipelineResponseBody;
|
|
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: CreatePipelineResponseBody,
|
|
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
|
+
|