@alicloud/oos20190601 3.2.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/oos20190601",
3
- "version": "3.2.3",
3
+ "version": "3.3.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
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
@@ -7491,6 +7589,110 @@ export class ListGitRepositoriesResponse extends $tea.Model {
7491
7589
  }
7492
7590
  }
7493
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
+
7494
7696
  export class ListInstancePackageStatesRequest extends $tea.Model {
7495
7697
  /**
7496
7698
  * @remarks
@@ -15578,6 +15780,50 @@ export class ValidateTemplateContentResponse extends $tea.Model {
15578
15780
  }
15579
15781
  }
15580
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
+
15581
15827
  export class CreateApplicationRequestAlarmConfig extends $tea.Model {
15582
15828
  /**
15583
15829
  * @remarks
@@ -19733,6 +19979,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
19733
19979
  * Automatic
19734
19980
  */
19735
19981
  mode?: string;
19982
+ nextScheduleTime?: string;
19736
19983
  /**
19737
19984
  * @remarks
19738
19985
  * The output of the execution.
@@ -19894,6 +20141,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
19894
20141
  lastTriggerStatusMessage: 'LastTriggerStatusMessage',
19895
20142
  lastTriggerTime: 'LastTriggerTime',
19896
20143
  mode: 'Mode',
20144
+ nextScheduleTime: 'NextScheduleTime',
19897
20145
  outputs: 'Outputs',
19898
20146
  parameters: 'Parameters',
19899
20147
  parentExecutionId: 'ParentExecutionId',
@@ -19932,6 +20180,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
19932
20180
  lastTriggerStatusMessage: 'string',
19933
20181
  lastTriggerTime: 'string',
19934
20182
  mode: 'string',
20183
+ nextScheduleTime: 'string',
19935
20184
  outputs: 'string',
19936
20185
  parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
19937
20186
  parentExecutionId: 'string',
@@ -19989,6 +20238,34 @@ export class ListGitRepositoriesResponseBodyGitRepos extends $tea.Model {
19989
20238
  }
19990
20239
  }
19991
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',
20261
+ };
20262
+ }
20263
+
20264
+ constructor(map?: { [key: string]: any }) {
20265
+ super(map);
20266
+ }
20267
+ }
20268
+
19992
20269
  export class ListInstancePackageStatesResponseBodyPackageStates extends $tea.Model {
19993
20270
  /**
19994
20271
  * @example
@@ -23891,6 +24168,76 @@ export default class Client extends OpenApi {
23891
24168
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
23892
24169
  }
23893
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
+
23894
24241
  /**
23895
24242
  * Cancels an execution.
23896
24243
  *
@@ -26633,6 +26980,84 @@ export default class Client extends OpenApi {
26633
26980
  return await this.listGitRepositoriesWithOptions(request, runtime);
26634
26981
  }
26635
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
+
26636
27061
  /**
26637
27062
  * 列出实例软件包状态
26638
27063
  *