@alicloud/oos20190601 3.2.2 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +200 -2
- package/dist/client.js +366 -16
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +447 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/oos20190601",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.9",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.12",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -7,6 +7,104 @@ import OpenApiUtil from '@alicloud/openapi-util';
|
|
|
7
7
|
import EndpointUtil from '@alicloud/endpoint-util';
|
|
8
8
|
import * as $tea from '@alicloud/tea-typescript';
|
|
9
9
|
|
|
10
|
+
export class AnalyzeGitRepositoryRequest extends $tea.Model {
|
|
11
|
+
branch?: string;
|
|
12
|
+
clientToken?: string;
|
|
13
|
+
orgId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*/
|
|
18
|
+
owner?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* This parameter is required.
|
|
22
|
+
*/
|
|
23
|
+
platform?: string;
|
|
24
|
+
regionId?: string;
|
|
25
|
+
repoFullName?: string;
|
|
26
|
+
repoId?: string;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
branch: 'Branch',
|
|
30
|
+
clientToken: 'ClientToken',
|
|
31
|
+
orgId: 'OrgId',
|
|
32
|
+
owner: 'Owner',
|
|
33
|
+
platform: 'Platform',
|
|
34
|
+
regionId: 'RegionId',
|
|
35
|
+
repoFullName: 'RepoFullName',
|
|
36
|
+
repoId: 'RepoId',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static types(): { [key: string]: any } {
|
|
41
|
+
return {
|
|
42
|
+
branch: 'string',
|
|
43
|
+
clientToken: 'string',
|
|
44
|
+
orgId: 'string',
|
|
45
|
+
owner: 'string',
|
|
46
|
+
platform: 'string',
|
|
47
|
+
regionId: 'string',
|
|
48
|
+
repoFullName: 'string',
|
|
49
|
+
repoId: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor(map?: { [key: string]: any }) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class AnalyzeGitRepositoryResponseBody extends $tea.Model {
|
|
59
|
+
analysisResults?: AnalyzeGitRepositoryResponseBodyAnalysisResults[];
|
|
60
|
+
count?: number;
|
|
61
|
+
requestId?: string;
|
|
62
|
+
static names(): { [key: string]: string } {
|
|
63
|
+
return {
|
|
64
|
+
analysisResults: 'AnalysisResults',
|
|
65
|
+
count: 'Count',
|
|
66
|
+
requestId: 'RequestId',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
analysisResults: { 'type': 'array', 'itemType': AnalyzeGitRepositoryResponseBodyAnalysisResults },
|
|
73
|
+
count: 'number',
|
|
74
|
+
requestId: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
constructor(map?: { [key: string]: any }) {
|
|
79
|
+
super(map);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export class AnalyzeGitRepositoryResponse extends $tea.Model {
|
|
84
|
+
headers?: { [key: string]: string };
|
|
85
|
+
statusCode?: number;
|
|
86
|
+
body?: AnalyzeGitRepositoryResponseBody;
|
|
87
|
+
static names(): { [key: string]: string } {
|
|
88
|
+
return {
|
|
89
|
+
headers: 'headers',
|
|
90
|
+
statusCode: 'statusCode',
|
|
91
|
+
body: 'body',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
98
|
+
statusCode: 'number',
|
|
99
|
+
body: AnalyzeGitRepositoryResponseBody,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
constructor(map?: { [key: string]: any }) {
|
|
104
|
+
super(map);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
10
108
|
export class CancelExecutionRequest extends $tea.Model {
|
|
11
109
|
/**
|
|
12
110
|
* @remarks
|
|
@@ -3080,6 +3178,13 @@ export class DeleteExecutionsRequest extends $tea.Model {
|
|
|
3080
3178
|
* ["exec-xxx"]
|
|
3081
3179
|
*/
|
|
3082
3180
|
executionIds?: string;
|
|
3181
|
+
/**
|
|
3182
|
+
* @remarks
|
|
3183
|
+
* Whether to force delete the running task, the default value is false.
|
|
3184
|
+
*
|
|
3185
|
+
* @example
|
|
3186
|
+
* false
|
|
3187
|
+
*/
|
|
3083
3188
|
force?: boolean;
|
|
3084
3189
|
/**
|
|
3085
3190
|
* @remarks
|
|
@@ -7388,6 +7493,7 @@ export class ListExecutionsResponse extends $tea.Model {
|
|
|
7388
7493
|
|
|
7389
7494
|
export class ListGitRepositoriesRequest extends $tea.Model {
|
|
7390
7495
|
clientToken?: string;
|
|
7496
|
+
orgId?: string;
|
|
7391
7497
|
orgName?: string;
|
|
7392
7498
|
/**
|
|
7393
7499
|
* @remarks
|
|
@@ -7405,6 +7511,7 @@ export class ListGitRepositoriesRequest extends $tea.Model {
|
|
|
7405
7511
|
static names(): { [key: string]: string } {
|
|
7406
7512
|
return {
|
|
7407
7513
|
clientToken: 'ClientToken',
|
|
7514
|
+
orgId: 'OrgId',
|
|
7408
7515
|
orgName: 'OrgName',
|
|
7409
7516
|
owner: 'Owner',
|
|
7410
7517
|
pageNumber: 'PageNumber',
|
|
@@ -7417,6 +7524,7 @@ export class ListGitRepositoriesRequest extends $tea.Model {
|
|
|
7417
7524
|
static types(): { [key: string]: any } {
|
|
7418
7525
|
return {
|
|
7419
7526
|
clientToken: 'string',
|
|
7527
|
+
orgId: 'string',
|
|
7420
7528
|
orgName: 'string',
|
|
7421
7529
|
owner: 'string',
|
|
7422
7530
|
pageNumber: 'number',
|
|
@@ -7481,6 +7589,110 @@ export class ListGitRepositoriesResponse extends $tea.Model {
|
|
|
7481
7589
|
}
|
|
7482
7590
|
}
|
|
7483
7591
|
|
|
7592
|
+
export class ListGitRepositoryContentsRequest extends $tea.Model {
|
|
7593
|
+
branch?: string;
|
|
7594
|
+
clientToken?: string;
|
|
7595
|
+
contentType?: string;
|
|
7596
|
+
orgId?: string;
|
|
7597
|
+
/**
|
|
7598
|
+
* @remarks
|
|
7599
|
+
* This parameter is required.
|
|
7600
|
+
*/
|
|
7601
|
+
owner?: string;
|
|
7602
|
+
path?: string;
|
|
7603
|
+
/**
|
|
7604
|
+
* @remarks
|
|
7605
|
+
* This parameter is required.
|
|
7606
|
+
*/
|
|
7607
|
+
platform?: string;
|
|
7608
|
+
regionId?: string;
|
|
7609
|
+
repoFullName?: string;
|
|
7610
|
+
repoId?: number;
|
|
7611
|
+
static names(): { [key: string]: string } {
|
|
7612
|
+
return {
|
|
7613
|
+
branch: 'Branch',
|
|
7614
|
+
clientToken: 'ClientToken',
|
|
7615
|
+
contentType: 'ContentType',
|
|
7616
|
+
orgId: 'OrgId',
|
|
7617
|
+
owner: 'Owner',
|
|
7618
|
+
path: 'Path',
|
|
7619
|
+
platform: 'Platform',
|
|
7620
|
+
regionId: 'RegionId',
|
|
7621
|
+
repoFullName: 'RepoFullName',
|
|
7622
|
+
repoId: 'RepoId',
|
|
7623
|
+
};
|
|
7624
|
+
}
|
|
7625
|
+
|
|
7626
|
+
static types(): { [key: string]: any } {
|
|
7627
|
+
return {
|
|
7628
|
+
branch: 'string',
|
|
7629
|
+
clientToken: 'string',
|
|
7630
|
+
contentType: 'string',
|
|
7631
|
+
orgId: 'string',
|
|
7632
|
+
owner: 'string',
|
|
7633
|
+
path: 'string',
|
|
7634
|
+
platform: 'string',
|
|
7635
|
+
regionId: 'string',
|
|
7636
|
+
repoFullName: 'string',
|
|
7637
|
+
repoId: 'number',
|
|
7638
|
+
};
|
|
7639
|
+
}
|
|
7640
|
+
|
|
7641
|
+
constructor(map?: { [key: string]: any }) {
|
|
7642
|
+
super(map);
|
|
7643
|
+
}
|
|
7644
|
+
}
|
|
7645
|
+
|
|
7646
|
+
export class ListGitRepositoryContentsResponseBody extends $tea.Model {
|
|
7647
|
+
contents?: ListGitRepositoryContentsResponseBodyContents[];
|
|
7648
|
+
count?: number;
|
|
7649
|
+
requestId?: string;
|
|
7650
|
+
static names(): { [key: string]: string } {
|
|
7651
|
+
return {
|
|
7652
|
+
contents: 'Contents',
|
|
7653
|
+
count: 'Count',
|
|
7654
|
+
requestId: 'RequestId',
|
|
7655
|
+
};
|
|
7656
|
+
}
|
|
7657
|
+
|
|
7658
|
+
static types(): { [key: string]: any } {
|
|
7659
|
+
return {
|
|
7660
|
+
contents: { 'type': 'array', 'itemType': ListGitRepositoryContentsResponseBodyContents },
|
|
7661
|
+
count: 'number',
|
|
7662
|
+
requestId: 'string',
|
|
7663
|
+
};
|
|
7664
|
+
}
|
|
7665
|
+
|
|
7666
|
+
constructor(map?: { [key: string]: any }) {
|
|
7667
|
+
super(map);
|
|
7668
|
+
}
|
|
7669
|
+
}
|
|
7670
|
+
|
|
7671
|
+
export class ListGitRepositoryContentsResponse extends $tea.Model {
|
|
7672
|
+
headers?: { [key: string]: string };
|
|
7673
|
+
statusCode?: number;
|
|
7674
|
+
body?: ListGitRepositoryContentsResponseBody;
|
|
7675
|
+
static names(): { [key: string]: string } {
|
|
7676
|
+
return {
|
|
7677
|
+
headers: 'headers',
|
|
7678
|
+
statusCode: 'statusCode',
|
|
7679
|
+
body: 'body',
|
|
7680
|
+
};
|
|
7681
|
+
}
|
|
7682
|
+
|
|
7683
|
+
static types(): { [key: string]: any } {
|
|
7684
|
+
return {
|
|
7685
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7686
|
+
statusCode: 'number',
|
|
7687
|
+
body: ListGitRepositoryContentsResponseBody,
|
|
7688
|
+
};
|
|
7689
|
+
}
|
|
7690
|
+
|
|
7691
|
+
constructor(map?: { [key: string]: any }) {
|
|
7692
|
+
super(map);
|
|
7693
|
+
}
|
|
7694
|
+
}
|
|
7695
|
+
|
|
7484
7696
|
export class ListInstancePackageStatesRequest extends $tea.Model {
|
|
7485
7697
|
/**
|
|
7486
7698
|
* @remarks
|
|
@@ -15568,6 +15780,50 @@ export class ValidateTemplateContentResponse extends $tea.Model {
|
|
|
15568
15780
|
}
|
|
15569
15781
|
}
|
|
15570
15782
|
|
|
15783
|
+
export class AnalyzeGitRepositoryResponseBodyAnalysisResultsBuildFiles extends $tea.Model {
|
|
15784
|
+
fileType?: string;
|
|
15785
|
+
paths?: string[];
|
|
15786
|
+
static names(): { [key: string]: string } {
|
|
15787
|
+
return {
|
|
15788
|
+
fileType: 'FileType',
|
|
15789
|
+
paths: 'Paths',
|
|
15790
|
+
};
|
|
15791
|
+
}
|
|
15792
|
+
|
|
15793
|
+
static types(): { [key: string]: any } {
|
|
15794
|
+
return {
|
|
15795
|
+
fileType: 'string',
|
|
15796
|
+
paths: { 'type': 'array', 'itemType': 'string' },
|
|
15797
|
+
};
|
|
15798
|
+
}
|
|
15799
|
+
|
|
15800
|
+
constructor(map?: { [key: string]: any }) {
|
|
15801
|
+
super(map);
|
|
15802
|
+
}
|
|
15803
|
+
}
|
|
15804
|
+
|
|
15805
|
+
export class AnalyzeGitRepositoryResponseBodyAnalysisResults extends $tea.Model {
|
|
15806
|
+
buildFiles?: AnalyzeGitRepositoryResponseBodyAnalysisResultsBuildFiles[];
|
|
15807
|
+
buildType?: string;
|
|
15808
|
+
static names(): { [key: string]: string } {
|
|
15809
|
+
return {
|
|
15810
|
+
buildFiles: 'BuildFiles',
|
|
15811
|
+
buildType: 'BuildType',
|
|
15812
|
+
};
|
|
15813
|
+
}
|
|
15814
|
+
|
|
15815
|
+
static types(): { [key: string]: any } {
|
|
15816
|
+
return {
|
|
15817
|
+
buildFiles: { 'type': 'array', 'itemType': AnalyzeGitRepositoryResponseBodyAnalysisResultsBuildFiles },
|
|
15818
|
+
buildType: 'string',
|
|
15819
|
+
};
|
|
15820
|
+
}
|
|
15821
|
+
|
|
15822
|
+
constructor(map?: { [key: string]: any }) {
|
|
15823
|
+
super(map);
|
|
15824
|
+
}
|
|
15825
|
+
}
|
|
15826
|
+
|
|
15571
15827
|
export class CreateApplicationRequestAlarmConfig extends $tea.Model {
|
|
15572
15828
|
/**
|
|
15573
15829
|
* @remarks
|
|
@@ -19723,6 +19979,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
|
|
|
19723
19979
|
* Automatic
|
|
19724
19980
|
*/
|
|
19725
19981
|
mode?: string;
|
|
19982
|
+
nextScheduleTime?: string;
|
|
19726
19983
|
/**
|
|
19727
19984
|
* @remarks
|
|
19728
19985
|
* The output of the execution.
|
|
@@ -19884,6 +20141,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
|
|
|
19884
20141
|
lastTriggerStatusMessage: 'LastTriggerStatusMessage',
|
|
19885
20142
|
lastTriggerTime: 'LastTriggerTime',
|
|
19886
20143
|
mode: 'Mode',
|
|
20144
|
+
nextScheduleTime: 'NextScheduleTime',
|
|
19887
20145
|
outputs: 'Outputs',
|
|
19888
20146
|
parameters: 'Parameters',
|
|
19889
20147
|
parentExecutionId: 'ParentExecutionId',
|
|
@@ -19922,6 +20180,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
|
|
|
19922
20180
|
lastTriggerStatusMessage: 'string',
|
|
19923
20181
|
lastTriggerTime: 'string',
|
|
19924
20182
|
mode: 'string',
|
|
20183
|
+
nextScheduleTime: 'string',
|
|
19925
20184
|
outputs: 'string',
|
|
19926
20185
|
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
19927
20186
|
parentExecutionId: 'string',
|
|
@@ -19953,12 +20212,14 @@ export class ListGitRepositoriesResponseBodyGitRepos extends $tea.Model {
|
|
|
19953
20212
|
fullName?: string;
|
|
19954
20213
|
htmlUrl?: string;
|
|
19955
20214
|
isPrivate?: boolean;
|
|
20215
|
+
repoId?: number;
|
|
19956
20216
|
static names(): { [key: string]: string } {
|
|
19957
20217
|
return {
|
|
19958
20218
|
description: 'Description',
|
|
19959
20219
|
fullName: 'FullName',
|
|
19960
20220
|
htmlUrl: 'HtmlUrl',
|
|
19961
20221
|
isPrivate: 'IsPrivate',
|
|
20222
|
+
repoId: 'RepoId',
|
|
19962
20223
|
};
|
|
19963
20224
|
}
|
|
19964
20225
|
|
|
@@ -19968,6 +20229,35 @@ export class ListGitRepositoriesResponseBodyGitRepos extends $tea.Model {
|
|
|
19968
20229
|
fullName: 'string',
|
|
19969
20230
|
htmlUrl: 'string',
|
|
19970
20231
|
isPrivate: 'boolean',
|
|
20232
|
+
repoId: 'number',
|
|
20233
|
+
};
|
|
20234
|
+
}
|
|
20235
|
+
|
|
20236
|
+
constructor(map?: { [key: string]: any }) {
|
|
20237
|
+
super(map);
|
|
20238
|
+
}
|
|
20239
|
+
}
|
|
20240
|
+
|
|
20241
|
+
export class ListGitRepositoryContentsResponseBodyContents extends $tea.Model {
|
|
20242
|
+
content?: string;
|
|
20243
|
+
name?: string;
|
|
20244
|
+
path?: string;
|
|
20245
|
+
type?: string;
|
|
20246
|
+
static names(): { [key: string]: string } {
|
|
20247
|
+
return {
|
|
20248
|
+
content: 'Content',
|
|
20249
|
+
name: 'Name',
|
|
20250
|
+
path: 'Path',
|
|
20251
|
+
type: 'Type',
|
|
20252
|
+
};
|
|
20253
|
+
}
|
|
20254
|
+
|
|
20255
|
+
static types(): { [key: string]: any } {
|
|
20256
|
+
return {
|
|
20257
|
+
content: 'string',
|
|
20258
|
+
name: 'string',
|
|
20259
|
+
path: 'string',
|
|
20260
|
+
type: 'string',
|
|
19971
20261
|
};
|
|
19972
20262
|
}
|
|
19973
20263
|
|
|
@@ -21921,6 +22211,7 @@ export class ListTemplatesResponseBodyTemplates extends $tea.Model {
|
|
|
21921
22211
|
* 2019-05-16T10:26:14Z
|
|
21922
22212
|
*/
|
|
21923
22213
|
updatedDate?: string;
|
|
22214
|
+
versionName?: string;
|
|
21924
22215
|
static names(): { [key: string]: string } {
|
|
21925
22216
|
return {
|
|
21926
22217
|
category: 'Category',
|
|
@@ -21944,6 +22235,7 @@ export class ListTemplatesResponseBodyTemplates extends $tea.Model {
|
|
|
21944
22235
|
totalExecutionCount: 'TotalExecutionCount',
|
|
21945
22236
|
updatedBy: 'UpdatedBy',
|
|
21946
22237
|
updatedDate: 'UpdatedDate',
|
|
22238
|
+
versionName: 'VersionName',
|
|
21947
22239
|
};
|
|
21948
22240
|
}
|
|
21949
22241
|
|
|
@@ -21970,6 +22262,7 @@ export class ListTemplatesResponseBodyTemplates extends $tea.Model {
|
|
|
21970
22262
|
totalExecutionCount: 'number',
|
|
21971
22263
|
updatedBy: 'string',
|
|
21972
22264
|
updatedDate: 'string',
|
|
22265
|
+
versionName: 'string',
|
|
21973
22266
|
};
|
|
21974
22267
|
}
|
|
21975
22268
|
|
|
@@ -23875,6 +24168,76 @@ export default class Client extends OpenApi {
|
|
|
23875
24168
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
23876
24169
|
}
|
|
23877
24170
|
|
|
24171
|
+
/**
|
|
24172
|
+
* 分析仓库
|
|
24173
|
+
*
|
|
24174
|
+
* @param request - AnalyzeGitRepositoryRequest
|
|
24175
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
24176
|
+
* @returns AnalyzeGitRepositoryResponse
|
|
24177
|
+
*/
|
|
24178
|
+
async analyzeGitRepositoryWithOptions(request: AnalyzeGitRepositoryRequest, runtime: $Util.RuntimeOptions): Promise<AnalyzeGitRepositoryResponse> {
|
|
24179
|
+
Util.validateModel(request);
|
|
24180
|
+
let query = { };
|
|
24181
|
+
if (!Util.isUnset(request.branch)) {
|
|
24182
|
+
query["Branch"] = request.branch;
|
|
24183
|
+
}
|
|
24184
|
+
|
|
24185
|
+
if (!Util.isUnset(request.clientToken)) {
|
|
24186
|
+
query["ClientToken"] = request.clientToken;
|
|
24187
|
+
}
|
|
24188
|
+
|
|
24189
|
+
if (!Util.isUnset(request.orgId)) {
|
|
24190
|
+
query["OrgId"] = request.orgId;
|
|
24191
|
+
}
|
|
24192
|
+
|
|
24193
|
+
if (!Util.isUnset(request.owner)) {
|
|
24194
|
+
query["Owner"] = request.owner;
|
|
24195
|
+
}
|
|
24196
|
+
|
|
24197
|
+
if (!Util.isUnset(request.platform)) {
|
|
24198
|
+
query["Platform"] = request.platform;
|
|
24199
|
+
}
|
|
24200
|
+
|
|
24201
|
+
if (!Util.isUnset(request.regionId)) {
|
|
24202
|
+
query["RegionId"] = request.regionId;
|
|
24203
|
+
}
|
|
24204
|
+
|
|
24205
|
+
if (!Util.isUnset(request.repoFullName)) {
|
|
24206
|
+
query["RepoFullName"] = request.repoFullName;
|
|
24207
|
+
}
|
|
24208
|
+
|
|
24209
|
+
if (!Util.isUnset(request.repoId)) {
|
|
24210
|
+
query["RepoId"] = request.repoId;
|
|
24211
|
+
}
|
|
24212
|
+
|
|
24213
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
24214
|
+
query: OpenApiUtil.query(query),
|
|
24215
|
+
});
|
|
24216
|
+
let params = new $OpenApi.Params({
|
|
24217
|
+
action: "AnalyzeGitRepository",
|
|
24218
|
+
version: "2019-06-01",
|
|
24219
|
+
protocol: "HTTPS",
|
|
24220
|
+
pathname: "/",
|
|
24221
|
+
method: "POST",
|
|
24222
|
+
authType: "AK",
|
|
24223
|
+
style: "RPC",
|
|
24224
|
+
reqBodyType: "formData",
|
|
24225
|
+
bodyType: "json",
|
|
24226
|
+
});
|
|
24227
|
+
return $tea.cast<AnalyzeGitRepositoryResponse>(await this.callApi(params, req, runtime), new AnalyzeGitRepositoryResponse({}));
|
|
24228
|
+
}
|
|
24229
|
+
|
|
24230
|
+
/**
|
|
24231
|
+
* 分析仓库
|
|
24232
|
+
*
|
|
24233
|
+
* @param request - AnalyzeGitRepositoryRequest
|
|
24234
|
+
* @returns AnalyzeGitRepositoryResponse
|
|
24235
|
+
*/
|
|
24236
|
+
async analyzeGitRepository(request: AnalyzeGitRepositoryRequest): Promise<AnalyzeGitRepositoryResponse> {
|
|
24237
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
24238
|
+
return await this.analyzeGitRepositoryWithOptions(request, runtime);
|
|
24239
|
+
}
|
|
24240
|
+
|
|
23878
24241
|
/**
|
|
23879
24242
|
* Cancels an execution.
|
|
23880
24243
|
*
|
|
@@ -26561,6 +26924,10 @@ export default class Client extends OpenApi {
|
|
|
26561
26924
|
query["ClientToken"] = request.clientToken;
|
|
26562
26925
|
}
|
|
26563
26926
|
|
|
26927
|
+
if (!Util.isUnset(request.orgId)) {
|
|
26928
|
+
query["OrgId"] = request.orgId;
|
|
26929
|
+
}
|
|
26930
|
+
|
|
26564
26931
|
if (!Util.isUnset(request.orgName)) {
|
|
26565
26932
|
query["OrgName"] = request.orgName;
|
|
26566
26933
|
}
|
|
@@ -26613,6 +26980,84 @@ export default class Client extends OpenApi {
|
|
|
26613
26980
|
return await this.listGitRepositoriesWithOptions(request, runtime);
|
|
26614
26981
|
}
|
|
26615
26982
|
|
|
26983
|
+
/**
|
|
26984
|
+
* 获取仓库文件与目录信息
|
|
26985
|
+
*
|
|
26986
|
+
* @param request - ListGitRepositoryContentsRequest
|
|
26987
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
26988
|
+
* @returns ListGitRepositoryContentsResponse
|
|
26989
|
+
*/
|
|
26990
|
+
async listGitRepositoryContentsWithOptions(request: ListGitRepositoryContentsRequest, runtime: $Util.RuntimeOptions): Promise<ListGitRepositoryContentsResponse> {
|
|
26991
|
+
Util.validateModel(request);
|
|
26992
|
+
let query = { };
|
|
26993
|
+
if (!Util.isUnset(request.branch)) {
|
|
26994
|
+
query["Branch"] = request.branch;
|
|
26995
|
+
}
|
|
26996
|
+
|
|
26997
|
+
if (!Util.isUnset(request.clientToken)) {
|
|
26998
|
+
query["ClientToken"] = request.clientToken;
|
|
26999
|
+
}
|
|
27000
|
+
|
|
27001
|
+
if (!Util.isUnset(request.contentType)) {
|
|
27002
|
+
query["ContentType"] = request.contentType;
|
|
27003
|
+
}
|
|
27004
|
+
|
|
27005
|
+
if (!Util.isUnset(request.orgId)) {
|
|
27006
|
+
query["OrgId"] = request.orgId;
|
|
27007
|
+
}
|
|
27008
|
+
|
|
27009
|
+
if (!Util.isUnset(request.owner)) {
|
|
27010
|
+
query["Owner"] = request.owner;
|
|
27011
|
+
}
|
|
27012
|
+
|
|
27013
|
+
if (!Util.isUnset(request.path)) {
|
|
27014
|
+
query["Path"] = request.path;
|
|
27015
|
+
}
|
|
27016
|
+
|
|
27017
|
+
if (!Util.isUnset(request.platform)) {
|
|
27018
|
+
query["Platform"] = request.platform;
|
|
27019
|
+
}
|
|
27020
|
+
|
|
27021
|
+
if (!Util.isUnset(request.regionId)) {
|
|
27022
|
+
query["RegionId"] = request.regionId;
|
|
27023
|
+
}
|
|
27024
|
+
|
|
27025
|
+
if (!Util.isUnset(request.repoFullName)) {
|
|
27026
|
+
query["RepoFullName"] = request.repoFullName;
|
|
27027
|
+
}
|
|
27028
|
+
|
|
27029
|
+
if (!Util.isUnset(request.repoId)) {
|
|
27030
|
+
query["RepoId"] = request.repoId;
|
|
27031
|
+
}
|
|
27032
|
+
|
|
27033
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
27034
|
+
query: OpenApiUtil.query(query),
|
|
27035
|
+
});
|
|
27036
|
+
let params = new $OpenApi.Params({
|
|
27037
|
+
action: "ListGitRepositoryContents",
|
|
27038
|
+
version: "2019-06-01",
|
|
27039
|
+
protocol: "HTTPS",
|
|
27040
|
+
pathname: "/",
|
|
27041
|
+
method: "POST",
|
|
27042
|
+
authType: "AK",
|
|
27043
|
+
style: "RPC",
|
|
27044
|
+
reqBodyType: "formData",
|
|
27045
|
+
bodyType: "json",
|
|
27046
|
+
});
|
|
27047
|
+
return $tea.cast<ListGitRepositoryContentsResponse>(await this.callApi(params, req, runtime), new ListGitRepositoryContentsResponse({}));
|
|
27048
|
+
}
|
|
27049
|
+
|
|
27050
|
+
/**
|
|
27051
|
+
* 获取仓库文件与目录信息
|
|
27052
|
+
*
|
|
27053
|
+
* @param request - ListGitRepositoryContentsRequest
|
|
27054
|
+
* @returns ListGitRepositoryContentsResponse
|
|
27055
|
+
*/
|
|
27056
|
+
async listGitRepositoryContents(request: ListGitRepositoryContentsRequest): Promise<ListGitRepositoryContentsResponse> {
|
|
27057
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
27058
|
+
return await this.listGitRepositoryContentsWithOptions(request, runtime);
|
|
27059
|
+
}
|
|
27060
|
+
|
|
26616
27061
|
/**
|
|
26617
27062
|
* 列出实例软件包状态
|
|
26618
27063
|
*
|
|
@@ -28592,7 +29037,7 @@ export default class Client extends OpenApi {
|
|
|
28592
29037
|
}
|
|
28593
29038
|
|
|
28594
29039
|
/**
|
|
28595
|
-
*
|
|
29040
|
+
* Update executions that are in Running or Waiting status.
|
|
28596
29041
|
*
|
|
28597
29042
|
* @param request - UpdateExecutionRequest
|
|
28598
29043
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -28647,7 +29092,7 @@ export default class Client extends OpenApi {
|
|
|
28647
29092
|
}
|
|
28648
29093
|
|
|
28649
29094
|
/**
|
|
28650
|
-
*
|
|
29095
|
+
* Update executions that are in Running or Waiting status.
|
|
28651
29096
|
*
|
|
28652
29097
|
* @param request - UpdateExecutionRequest
|
|
28653
29098
|
* @returns UpdateExecutionResponse
|