tencentcloud-sdk-nodejs-tem 4.0.260 → 4.0.264
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/CHANGELOG.md +615 -0
- package/SERVICE_CHANGELOG.md +68144 -0
- package/package.json +1 -1
- package/products.md +42 -41
- package/src/services/tem/v20210701/tem_client.ts +136 -97
- package/src/services/tem/v20210701/tem_models.ts +116 -6
- package/tencentcloud/services/tem/v20210701/tem_client.d.ts +52 -37
- package/tencentcloud/services/tem/v20210701/tem_client.js +75 -54
- package/tencentcloud/services/tem/v20210701/tem_models.d.ts +100 -6
|
@@ -51,6 +51,31 @@ export interface RestartApplicationPodResponse {
|
|
|
51
51
|
RequestId?: string
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* DeleteApplication请求参数结构体
|
|
56
|
+
*/
|
|
57
|
+
export interface DeleteApplicationRequest {
|
|
58
|
+
/**
|
|
59
|
+
* 服务Id
|
|
60
|
+
*/
|
|
61
|
+
ApplicationId: string
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 环境ID
|
|
65
|
+
*/
|
|
66
|
+
EnvironmentId: string
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 来源渠道
|
|
70
|
+
*/
|
|
71
|
+
SourceChannel?: number
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 当服务没有任何运行版本时,是否删除此服务
|
|
75
|
+
*/
|
|
76
|
+
DeleteApplicationIfNoRunningVersion?: boolean
|
|
77
|
+
}
|
|
78
|
+
|
|
54
79
|
/**
|
|
55
80
|
* CreateResource请求参数结构体
|
|
56
81
|
*/
|
|
@@ -91,6 +116,41 @@ export interface ResumeDeployApplicationResponse {
|
|
|
91
116
|
RequestId?: string
|
|
92
117
|
}
|
|
93
118
|
|
|
119
|
+
/**
|
|
120
|
+
* RestartApplication返回参数结构体
|
|
121
|
+
*/
|
|
122
|
+
export interface RestartApplicationResponse {
|
|
123
|
+
/**
|
|
124
|
+
* 返回结果
|
|
125
|
+
*/
|
|
126
|
+
Result: boolean
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
130
|
+
*/
|
|
131
|
+
RequestId?: string
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* StopApplication请求参数结构体
|
|
136
|
+
*/
|
|
137
|
+
export interface StopApplicationRequest {
|
|
138
|
+
/**
|
|
139
|
+
* 服务id
|
|
140
|
+
*/
|
|
141
|
+
ApplicationId: string
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* 来源渠道
|
|
145
|
+
*/
|
|
146
|
+
SourceChannel?: number
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* 环境ID
|
|
150
|
+
*/
|
|
151
|
+
EnvironmentId?: string
|
|
152
|
+
}
|
|
153
|
+
|
|
94
154
|
/**
|
|
95
155
|
* 健康检查配置
|
|
96
156
|
*/
|
|
@@ -1555,18 +1615,18 @@ export interface ModifyApplicationInfoResponse {
|
|
|
1555
1615
|
}
|
|
1556
1616
|
|
|
1557
1617
|
/**
|
|
1558
|
-
*
|
|
1618
|
+
* DeleteApplication返回参数结构体
|
|
1559
1619
|
*/
|
|
1560
|
-
export interface
|
|
1620
|
+
export interface DeleteApplicationResponse {
|
|
1561
1621
|
/**
|
|
1562
|
-
*
|
|
1622
|
+
* 返回结果
|
|
1563
1623
|
*/
|
|
1564
|
-
|
|
1624
|
+
Result: boolean
|
|
1565
1625
|
|
|
1566
1626
|
/**
|
|
1567
|
-
*
|
|
1627
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1568
1628
|
*/
|
|
1569
|
-
|
|
1629
|
+
RequestId?: string
|
|
1570
1630
|
}
|
|
1571
1631
|
|
|
1572
1632
|
/**
|
|
@@ -1625,6 +1685,26 @@ export interface NamespacePage {
|
|
|
1625
1685
|
Pages: number
|
|
1626
1686
|
}
|
|
1627
1687
|
|
|
1688
|
+
/**
|
|
1689
|
+
* RestartApplication请求参数结构体
|
|
1690
|
+
*/
|
|
1691
|
+
export interface RestartApplicationRequest {
|
|
1692
|
+
/**
|
|
1693
|
+
* 服务id
|
|
1694
|
+
*/
|
|
1695
|
+
ApplicationId: string
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* 来源渠道
|
|
1699
|
+
*/
|
|
1700
|
+
SourceChannel?: number
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* 环境ID
|
|
1704
|
+
*/
|
|
1705
|
+
EnvironmentId?: string
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1628
1708
|
/**
|
|
1629
1709
|
* CreateApplication返回参数结构体
|
|
1630
1710
|
*/
|
|
@@ -1665,6 +1745,21 @@ export interface HorizontalAutoscaler {
|
|
|
1665
1745
|
Threshold: number
|
|
1666
1746
|
}
|
|
1667
1747
|
|
|
1748
|
+
/**
|
|
1749
|
+
* RevertDeployApplication请求参数结构体
|
|
1750
|
+
*/
|
|
1751
|
+
export interface RevertDeployApplicationRequest {
|
|
1752
|
+
/**
|
|
1753
|
+
* 需要回滚的服务id
|
|
1754
|
+
*/
|
|
1755
|
+
ApplicationId?: string
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* 需要回滚的服务所在环境id
|
|
1759
|
+
*/
|
|
1760
|
+
EnvironmentId?: string
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1668
1763
|
/**
|
|
1669
1764
|
* 数据卷挂载信息
|
|
1670
1765
|
*/
|
|
@@ -1850,6 +1945,21 @@ export interface DescribeEnvironmentsRequest {
|
|
|
1850
1945
|
SourceChannel?: number
|
|
1851
1946
|
}
|
|
1852
1947
|
|
|
1948
|
+
/**
|
|
1949
|
+
* StopApplication返回参数结构体
|
|
1950
|
+
*/
|
|
1951
|
+
export interface StopApplicationResponse {
|
|
1952
|
+
/**
|
|
1953
|
+
* 返回结果
|
|
1954
|
+
*/
|
|
1955
|
+
Result: boolean
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1959
|
+
*/
|
|
1960
|
+
RequestId?: string
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1853
1963
|
/**
|
|
1854
1964
|
* eks service info
|
|
1855
1965
|
*/
|
|
@@ -1,75 +1,82 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { RestartApplicationPodResponse, CreateResourceRequest, ResumeDeployApplicationResponse, DescribeDeployApplicationDetailRequest, DescribeApplicationPodsResponse, DeleteIngressRequest, RestartApplicationPodRequest, DescribeRelatedIngressesRequest, ModifyEnvironmentResponse, GenerateApplicationPackageDownloadUrlRequest, DeployApplicationRequest, ModifyIngressResponse, DescribeEnvironmentsResponse, ModifyIngressRequest, DescribeApplicationPodsRequest, CreateApplicationRequest, DescribeRelatedIngressesResponse, DescribeIngressesRequest, ModifyApplicationReplicasResponse, ModifyApplicationReplicasRequest, DescribeIngressesResponse, DeleteIngressResponse, GenerateApplicationPackageDownloadUrlResponse, DescribeIngressResponse, CreateCosTokenResponse, RollingUpdateApplicationByVersionResponse, RollingUpdateApplicationByVersionRequest, DescribeDeployApplicationDetailResponse, CreateResourceResponse, ModifyApplicationInfoRequest, ModifyApplicationInfoResponse,
|
|
2
|
+
import { RestartApplicationPodResponse, DeleteApplicationRequest, CreateResourceRequest, ResumeDeployApplicationResponse, RestartApplicationResponse, StopApplicationRequest, DescribeDeployApplicationDetailRequest, DescribeApplicationPodsResponse, DeleteIngressRequest, RestartApplicationPodRequest, DescribeRelatedIngressesRequest, ModifyEnvironmentResponse, GenerateApplicationPackageDownloadUrlRequest, DeployApplicationRequest, ModifyIngressResponse, DescribeEnvironmentsResponse, ModifyIngressRequest, DescribeApplicationPodsRequest, CreateApplicationRequest, DescribeRelatedIngressesResponse, DescribeIngressesRequest, ModifyApplicationReplicasResponse, ModifyApplicationReplicasRequest, DescribeIngressesResponse, DeleteIngressResponse, GenerateApplicationPackageDownloadUrlResponse, DescribeIngressResponse, CreateCosTokenResponse, RollingUpdateApplicationByVersionResponse, RollingUpdateApplicationByVersionRequest, DescribeDeployApplicationDetailResponse, CreateResourceResponse, ModifyApplicationInfoRequest, ModifyApplicationInfoResponse, DeleteApplicationResponse, CreateEnvironmentResponse, RestartApplicationRequest, CreateApplicationResponse, RevertDeployApplicationRequest, ModifyEnvironmentRequest, RevertDeployApplicationResponse, DescribeIngressRequest, CreateCosTokenRequest, DescribeEnvironmentsRequest, StopApplicationResponse, ResumeDeployApplicationRequest, DeployApplicationResponse, CreateEnvironmentRequest } from "./tem_models";
|
|
3
3
|
/**
|
|
4
4
|
* tem client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
-
/**
|
|
10
|
-
* 应用部署
|
|
11
|
-
*/
|
|
12
|
-
DeployApplication(req: DeployApplicationRequest, cb?: (error: string, rep: DeployApplicationResponse) => void): Promise<DeployApplicationResponse>;
|
|
13
9
|
/**
|
|
14
10
|
* 修改应用实例数量
|
|
15
11
|
*/
|
|
16
12
|
ModifyApplicationReplicas(req: ModifyApplicationReplicasRequest, cb?: (error: string, rep: ModifyApplicationReplicasResponse) => void): Promise<ModifyApplicationReplicasResponse>;
|
|
17
13
|
/**
|
|
18
|
-
*
|
|
14
|
+
* 创建或者更新 Ingress 规则
|
|
19
15
|
*/
|
|
20
|
-
|
|
16
|
+
ModifyIngress(req: ModifyIngressRequest, cb?: (error: string, rep: ModifyIngressResponse) => void): Promise<ModifyIngressResponse>;
|
|
21
17
|
/**
|
|
22
|
-
|
|
18
|
+
* 服务删除
|
|
19
|
+
- 停止当前运行服务
|
|
20
|
+
- 删除服务相关资源
|
|
21
|
+
- 删除服务
|
|
22
|
+
*/
|
|
23
|
+
DeleteApplication(req: DeleteApplicationRequest, cb?: (error: string, rep: DeleteApplicationResponse) => void): Promise<DeleteApplicationResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* 删除 Ingress 规则
|
|
23
26
|
*/
|
|
24
|
-
|
|
27
|
+
DeleteIngress(req: DeleteIngressRequest, cb?: (error: string, rep: DeleteIngressResponse) => void): Promise<DeleteIngressResponse>;
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
29
|
+
* 应用部署
|
|
27
30
|
*/
|
|
28
|
-
|
|
31
|
+
DeployApplication(req: DeployApplicationRequest, cb?: (error: string, rep: DeployApplicationResponse) => void): Promise<DeployApplicationResponse>;
|
|
29
32
|
/**
|
|
30
|
-
*
|
|
33
|
+
* 获取分批发布详情
|
|
31
34
|
*/
|
|
32
|
-
|
|
35
|
+
DescribeDeployApplicationDetail(req: DescribeDeployApplicationDetailRequest, cb?: (error: string, rep: DescribeDeployApplicationDetailResponse) => void): Promise<DescribeDeployApplicationDetailResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* 开始下一批次发布
|
|
38
|
+
*/
|
|
39
|
+
ResumeDeployApplication(req: ResumeDeployApplicationRequest, cb?: (error: string, rep: ResumeDeployApplicationResponse) => void): Promise<ResumeDeployApplicationResponse>;
|
|
33
40
|
/**
|
|
34
41
|
* 编辑环境
|
|
35
42
|
*/
|
|
36
43
|
ModifyEnvironment(req: ModifyEnvironmentRequest, cb?: (error: string, rep: ModifyEnvironmentResponse) => void): Promise<ModifyEnvironmentResponse>;
|
|
37
44
|
/**
|
|
38
|
-
*
|
|
45
|
+
* 服务停止
|
|
39
46
|
*/
|
|
40
|
-
|
|
47
|
+
StopApplication(req: StopApplicationRequest, cb?: (error: string, rep: StopApplicationResponse) => void): Promise<StopApplicationResponse>;
|
|
41
48
|
/**
|
|
42
|
-
*
|
|
49
|
+
* 获取应用实例列表
|
|
43
50
|
*/
|
|
44
|
-
|
|
51
|
+
DescribeApplicationPods(req: DescribeApplicationPodsRequest, cb?: (error: string, rep: DescribeApplicationPodsResponse) => void): Promise<DescribeApplicationPodsResponse>;
|
|
45
52
|
/**
|
|
46
|
-
*
|
|
53
|
+
* 服务重启
|
|
47
54
|
*/
|
|
48
|
-
|
|
55
|
+
RestartApplication(req: RestartApplicationRequest, cb?: (error: string, rep: RestartApplicationResponse) => void): Promise<RestartApplicationResponse>;
|
|
49
56
|
/**
|
|
50
|
-
*
|
|
57
|
+
* 修改应用基本信息
|
|
51
58
|
*/
|
|
52
|
-
|
|
59
|
+
ModifyApplicationInfo(req: ModifyApplicationInfoRequest, cb?: (error: string, rep: ModifyApplicationInfoResponse) => void): Promise<ModifyApplicationInfoResponse>;
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
61
|
+
* 获取租户环境列表
|
|
55
62
|
*/
|
|
56
|
-
|
|
63
|
+
DescribeEnvironments(req: DescribeEnvironmentsRequest, cb?: (error: string, rep: DescribeEnvironmentsResponse) => void): Promise<DescribeEnvironmentsResponse>;
|
|
57
64
|
/**
|
|
58
|
-
*
|
|
65
|
+
* 生成Cos临时秘钥
|
|
59
66
|
*/
|
|
60
|
-
|
|
67
|
+
CreateCosToken(req: CreateCosTokenRequest, cb?: (error: string, rep: CreateCosTokenResponse) => void): Promise<CreateCosTokenResponse>;
|
|
61
68
|
/**
|
|
62
|
-
*
|
|
69
|
+
* 查询 Ingress 规则
|
|
63
70
|
*/
|
|
64
|
-
|
|
71
|
+
DescribeIngress(req: DescribeIngressRequest, cb?: (error: string, rep: DescribeIngressResponse) => void): Promise<DescribeIngressResponse>;
|
|
65
72
|
/**
|
|
66
|
-
*
|
|
73
|
+
* 生成应用程序包预签名下载链接
|
|
67
74
|
*/
|
|
68
|
-
|
|
75
|
+
GenerateApplicationPackageDownloadUrl(req: GenerateApplicationPackageDownloadUrlRequest, cb?: (error: string, rep: GenerateApplicationPackageDownloadUrlResponse) => void): Promise<GenerateApplicationPackageDownloadUrlResponse>;
|
|
69
76
|
/**
|
|
70
|
-
*
|
|
77
|
+
* 创建环境
|
|
71
78
|
*/
|
|
72
|
-
|
|
79
|
+
CreateEnvironment(req: CreateEnvironmentRequest, cb?: (error: string, rep: CreateEnvironmentResponse) => void): Promise<CreateEnvironmentResponse>;
|
|
73
80
|
/**
|
|
74
81
|
* 查询 Ingress 规则列表
|
|
75
82
|
*/
|
|
@@ -79,15 +86,23 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
79
86
|
*/
|
|
80
87
|
CreateApplication(req: CreateApplicationRequest, cb?: (error: string, rep: CreateApplicationResponse) => void): Promise<CreateApplicationResponse>;
|
|
81
88
|
/**
|
|
82
|
-
*
|
|
89
|
+
* 重启应用实例
|
|
83
90
|
*/
|
|
84
|
-
|
|
91
|
+
RestartApplicationPod(req: RestartApplicationPodRequest, cb?: (error: string, rep: RestartApplicationPodResponse) => void): Promise<RestartApplicationPodResponse>;
|
|
85
92
|
/**
|
|
86
|
-
*
|
|
93
|
+
* 更新应用部署版本
|
|
87
94
|
*/
|
|
88
|
-
|
|
95
|
+
RollingUpdateApplicationByVersion(req: RollingUpdateApplicationByVersionRequest, cb?: (error: string, rep: RollingUpdateApplicationByVersionResponse) => void): Promise<RollingUpdateApplicationByVersionResponse>;
|
|
89
96
|
/**
|
|
90
|
-
*
|
|
97
|
+
* 回滚分批发布
|
|
91
98
|
*/
|
|
92
|
-
|
|
99
|
+
RevertDeployApplication(req: RevertDeployApplicationRequest, cb?: (error: string, rep: RevertDeployApplicationResponse) => void): Promise<RevertDeployApplicationResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* 查询应用关联的 Ingress 规则列表
|
|
102
|
+
*/
|
|
103
|
+
DescribeRelatedIngresses(req: DescribeRelatedIngressesRequest, cb?: (error: string, rep: DescribeRelatedIngressesResponse) => void): Promise<DescribeRelatedIngressesResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* 绑定云资源
|
|
106
|
+
*/
|
|
107
|
+
CreateResource(req: CreateResourceRequest, cb?: (error: string, rep: CreateResourceResponse) => void): Promise<CreateResourceResponse>;
|
|
93
108
|
}
|
|
@@ -27,12 +27,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("tem.tencentcloudapi.com", "2021-07-01", clientConfig);
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
31
|
-
* 应用部署
|
|
32
|
-
*/
|
|
33
|
-
async DeployApplication(req, cb) {
|
|
34
|
-
return this.request("DeployApplication", req, cb);
|
|
35
|
-
}
|
|
36
30
|
/**
|
|
37
31
|
* 修改应用实例数量
|
|
38
32
|
*/
|
|
@@ -40,28 +34,43 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
40
34
|
return this.request("ModifyApplicationReplicas", req, cb);
|
|
41
35
|
}
|
|
42
36
|
/**
|
|
43
|
-
*
|
|
37
|
+
* 创建或者更新 Ingress 规则
|
|
44
38
|
*/
|
|
45
|
-
async
|
|
46
|
-
return this.request("
|
|
39
|
+
async ModifyIngress(req, cb) {
|
|
40
|
+
return this.request("ModifyIngress", req, cb);
|
|
47
41
|
}
|
|
48
42
|
/**
|
|
49
|
-
|
|
43
|
+
* 服务删除
|
|
44
|
+
- 停止当前运行服务
|
|
45
|
+
- 删除服务相关资源
|
|
46
|
+
- 删除服务
|
|
47
|
+
*/
|
|
48
|
+
async DeleteApplication(req, cb) {
|
|
49
|
+
return this.request("DeleteApplication", req, cb);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 删除 Ingress 规则
|
|
50
53
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.request("
|
|
54
|
+
async DeleteIngress(req, cb) {
|
|
55
|
+
return this.request("DeleteIngress", req, cb);
|
|
53
56
|
}
|
|
54
57
|
/**
|
|
55
|
-
*
|
|
58
|
+
* 应用部署
|
|
56
59
|
*/
|
|
57
|
-
async
|
|
58
|
-
return this.request("
|
|
60
|
+
async DeployApplication(req, cb) {
|
|
61
|
+
return this.request("DeployApplication", req, cb);
|
|
59
62
|
}
|
|
60
63
|
/**
|
|
61
|
-
*
|
|
64
|
+
* 获取分批发布详情
|
|
62
65
|
*/
|
|
63
|
-
async
|
|
64
|
-
return this.request("
|
|
66
|
+
async DescribeDeployApplicationDetail(req, cb) {
|
|
67
|
+
return this.request("DescribeDeployApplicationDetail", req, cb);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 开始下一批次发布
|
|
71
|
+
*/
|
|
72
|
+
async ResumeDeployApplication(req, cb) {
|
|
73
|
+
return this.request("ResumeDeployApplication", req, cb);
|
|
65
74
|
}
|
|
66
75
|
/**
|
|
67
76
|
* 编辑环境
|
|
@@ -70,58 +79,58 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
70
79
|
return this.request("ModifyEnvironment", req, cb);
|
|
71
80
|
}
|
|
72
81
|
/**
|
|
73
|
-
*
|
|
82
|
+
* 服务停止
|
|
74
83
|
*/
|
|
75
|
-
async
|
|
76
|
-
return this.request("
|
|
84
|
+
async StopApplication(req, cb) {
|
|
85
|
+
return this.request("StopApplication", req, cb);
|
|
77
86
|
}
|
|
78
87
|
/**
|
|
79
|
-
*
|
|
88
|
+
* 获取应用实例列表
|
|
80
89
|
*/
|
|
81
|
-
async
|
|
82
|
-
return this.request("
|
|
90
|
+
async DescribeApplicationPods(req, cb) {
|
|
91
|
+
return this.request("DescribeApplicationPods", req, cb);
|
|
83
92
|
}
|
|
84
93
|
/**
|
|
85
|
-
*
|
|
94
|
+
* 服务重启
|
|
86
95
|
*/
|
|
87
|
-
async
|
|
88
|
-
return this.request("
|
|
96
|
+
async RestartApplication(req, cb) {
|
|
97
|
+
return this.request("RestartApplication", req, cb);
|
|
89
98
|
}
|
|
90
99
|
/**
|
|
91
|
-
*
|
|
100
|
+
* 修改应用基本信息
|
|
92
101
|
*/
|
|
93
|
-
async
|
|
94
|
-
return this.request("
|
|
102
|
+
async ModifyApplicationInfo(req, cb) {
|
|
103
|
+
return this.request("ModifyApplicationInfo", req, cb);
|
|
95
104
|
}
|
|
96
105
|
/**
|
|
97
|
-
*
|
|
106
|
+
* 获取租户环境列表
|
|
98
107
|
*/
|
|
99
|
-
async
|
|
100
|
-
return this.request("
|
|
108
|
+
async DescribeEnvironments(req, cb) {
|
|
109
|
+
return this.request("DescribeEnvironments", req, cb);
|
|
101
110
|
}
|
|
102
111
|
/**
|
|
103
|
-
*
|
|
112
|
+
* 生成Cos临时秘钥
|
|
104
113
|
*/
|
|
105
|
-
async
|
|
106
|
-
return this.request("
|
|
114
|
+
async CreateCosToken(req, cb) {
|
|
115
|
+
return this.request("CreateCosToken", req, cb);
|
|
107
116
|
}
|
|
108
117
|
/**
|
|
109
|
-
*
|
|
118
|
+
* 查询 Ingress 规则
|
|
110
119
|
*/
|
|
111
|
-
async
|
|
112
|
-
return this.request("
|
|
120
|
+
async DescribeIngress(req, cb) {
|
|
121
|
+
return this.request("DescribeIngress", req, cb);
|
|
113
122
|
}
|
|
114
123
|
/**
|
|
115
|
-
*
|
|
124
|
+
* 生成应用程序包预签名下载链接
|
|
116
125
|
*/
|
|
117
|
-
async
|
|
118
|
-
return this.request("
|
|
126
|
+
async GenerateApplicationPackageDownloadUrl(req, cb) {
|
|
127
|
+
return this.request("GenerateApplicationPackageDownloadUrl", req, cb);
|
|
119
128
|
}
|
|
120
129
|
/**
|
|
121
|
-
*
|
|
130
|
+
* 创建环境
|
|
122
131
|
*/
|
|
123
|
-
async
|
|
124
|
-
return this.request("
|
|
132
|
+
async CreateEnvironment(req, cb) {
|
|
133
|
+
return this.request("CreateEnvironment", req, cb);
|
|
125
134
|
}
|
|
126
135
|
/**
|
|
127
136
|
* 查询 Ingress 规则列表
|
|
@@ -136,22 +145,34 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
136
145
|
return this.request("CreateApplication", req, cb);
|
|
137
146
|
}
|
|
138
147
|
/**
|
|
139
|
-
*
|
|
148
|
+
* 重启应用实例
|
|
140
149
|
*/
|
|
141
|
-
async
|
|
142
|
-
return this.request("
|
|
150
|
+
async RestartApplicationPod(req, cb) {
|
|
151
|
+
return this.request("RestartApplicationPod", req, cb);
|
|
143
152
|
}
|
|
144
153
|
/**
|
|
145
|
-
*
|
|
154
|
+
* 更新应用部署版本
|
|
146
155
|
*/
|
|
147
|
-
async
|
|
148
|
-
return this.request("
|
|
156
|
+
async RollingUpdateApplicationByVersion(req, cb) {
|
|
157
|
+
return this.request("RollingUpdateApplicationByVersion", req, cb);
|
|
149
158
|
}
|
|
150
159
|
/**
|
|
151
|
-
*
|
|
160
|
+
* 回滚分批发布
|
|
152
161
|
*/
|
|
153
|
-
async
|
|
154
|
-
return this.request("
|
|
162
|
+
async RevertDeployApplication(req, cb) {
|
|
163
|
+
return this.request("RevertDeployApplication", req, cb);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 查询应用关联的 Ingress 规则列表
|
|
167
|
+
*/
|
|
168
|
+
async DescribeRelatedIngresses(req, cb) {
|
|
169
|
+
return this.request("DescribeRelatedIngresses", req, cb);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* 绑定云资源
|
|
173
|
+
*/
|
|
174
|
+
async CreateResource(req, cb) {
|
|
175
|
+
return this.request("CreateResource", req, cb);
|
|
155
176
|
}
|
|
156
177
|
}
|
|
157
178
|
exports.Client = Client;
|
|
@@ -29,6 +29,27 @@ export interface RestartApplicationPodResponse {
|
|
|
29
29
|
*/
|
|
30
30
|
RequestId?: string;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* DeleteApplication请求参数结构体
|
|
34
|
+
*/
|
|
35
|
+
export interface DeleteApplicationRequest {
|
|
36
|
+
/**
|
|
37
|
+
* 服务Id
|
|
38
|
+
*/
|
|
39
|
+
ApplicationId: string;
|
|
40
|
+
/**
|
|
41
|
+
* 环境ID
|
|
42
|
+
*/
|
|
43
|
+
EnvironmentId: string;
|
|
44
|
+
/**
|
|
45
|
+
* 来源渠道
|
|
46
|
+
*/
|
|
47
|
+
SourceChannel?: number;
|
|
48
|
+
/**
|
|
49
|
+
* 当服务没有任何运行版本时,是否删除此服务
|
|
50
|
+
*/
|
|
51
|
+
DeleteApplicationIfNoRunningVersion?: boolean;
|
|
52
|
+
}
|
|
32
53
|
/**
|
|
33
54
|
* CreateResource请求参数结构体
|
|
34
55
|
*/
|
|
@@ -63,6 +84,36 @@ export interface ResumeDeployApplicationResponse {
|
|
|
63
84
|
*/
|
|
64
85
|
RequestId?: string;
|
|
65
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* RestartApplication返回参数结构体
|
|
89
|
+
*/
|
|
90
|
+
export interface RestartApplicationResponse {
|
|
91
|
+
/**
|
|
92
|
+
* 返回结果
|
|
93
|
+
*/
|
|
94
|
+
Result: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
97
|
+
*/
|
|
98
|
+
RequestId?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* StopApplication请求参数结构体
|
|
102
|
+
*/
|
|
103
|
+
export interface StopApplicationRequest {
|
|
104
|
+
/**
|
|
105
|
+
* 服务id
|
|
106
|
+
*/
|
|
107
|
+
ApplicationId: string;
|
|
108
|
+
/**
|
|
109
|
+
* 来源渠道
|
|
110
|
+
*/
|
|
111
|
+
SourceChannel?: number;
|
|
112
|
+
/**
|
|
113
|
+
* 环境ID
|
|
114
|
+
*/
|
|
115
|
+
EnvironmentId?: string;
|
|
116
|
+
}
|
|
66
117
|
/**
|
|
67
118
|
* 健康检查配置
|
|
68
119
|
*/
|
|
@@ -1292,17 +1343,17 @@ export interface ModifyApplicationInfoResponse {
|
|
|
1292
1343
|
RequestId?: string;
|
|
1293
1344
|
}
|
|
1294
1345
|
/**
|
|
1295
|
-
*
|
|
1346
|
+
* DeleteApplication返回参数结构体
|
|
1296
1347
|
*/
|
|
1297
|
-
export interface
|
|
1348
|
+
export interface DeleteApplicationResponse {
|
|
1298
1349
|
/**
|
|
1299
|
-
*
|
|
1350
|
+
* 返回结果
|
|
1300
1351
|
*/
|
|
1301
|
-
|
|
1352
|
+
Result: boolean;
|
|
1302
1353
|
/**
|
|
1303
|
-
*
|
|
1354
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1304
1355
|
*/
|
|
1305
|
-
|
|
1356
|
+
RequestId?: string;
|
|
1306
1357
|
}
|
|
1307
1358
|
/**
|
|
1308
1359
|
* Ingress Rule Path 配置
|
|
@@ -1352,6 +1403,23 @@ export interface NamespacePage {
|
|
|
1352
1403
|
*/
|
|
1353
1404
|
Pages: number;
|
|
1354
1405
|
}
|
|
1406
|
+
/**
|
|
1407
|
+
* RestartApplication请求参数结构体
|
|
1408
|
+
*/
|
|
1409
|
+
export interface RestartApplicationRequest {
|
|
1410
|
+
/**
|
|
1411
|
+
* 服务id
|
|
1412
|
+
*/
|
|
1413
|
+
ApplicationId: string;
|
|
1414
|
+
/**
|
|
1415
|
+
* 来源渠道
|
|
1416
|
+
*/
|
|
1417
|
+
SourceChannel?: number;
|
|
1418
|
+
/**
|
|
1419
|
+
* 环境ID
|
|
1420
|
+
*/
|
|
1421
|
+
EnvironmentId?: string;
|
|
1422
|
+
}
|
|
1355
1423
|
/**
|
|
1356
1424
|
* CreateApplication返回参数结构体
|
|
1357
1425
|
*/
|
|
@@ -1386,6 +1454,19 @@ export interface HorizontalAutoscaler {
|
|
|
1386
1454
|
*/
|
|
1387
1455
|
Threshold: number;
|
|
1388
1456
|
}
|
|
1457
|
+
/**
|
|
1458
|
+
* RevertDeployApplication请求参数结构体
|
|
1459
|
+
*/
|
|
1460
|
+
export interface RevertDeployApplicationRequest {
|
|
1461
|
+
/**
|
|
1462
|
+
* 需要回滚的服务id
|
|
1463
|
+
*/
|
|
1464
|
+
ApplicationId?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* 需要回滚的服务所在环境id
|
|
1467
|
+
*/
|
|
1468
|
+
EnvironmentId?: string;
|
|
1469
|
+
}
|
|
1389
1470
|
/**
|
|
1390
1471
|
* 数据卷挂载信息
|
|
1391
1472
|
*/
|
|
@@ -1542,6 +1623,19 @@ export interface DescribeEnvironmentsRequest {
|
|
|
1542
1623
|
*/
|
|
1543
1624
|
SourceChannel?: number;
|
|
1544
1625
|
}
|
|
1626
|
+
/**
|
|
1627
|
+
* StopApplication返回参数结构体
|
|
1628
|
+
*/
|
|
1629
|
+
export interface StopApplicationResponse {
|
|
1630
|
+
/**
|
|
1631
|
+
* 返回结果
|
|
1632
|
+
*/
|
|
1633
|
+
Result: boolean;
|
|
1634
|
+
/**
|
|
1635
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1636
|
+
*/
|
|
1637
|
+
RequestId?: string;
|
|
1638
|
+
}
|
|
1545
1639
|
/**
|
|
1546
1640
|
* eks service info
|
|
1547
1641
|
*/
|