tencentcloud-sdk-nodejs 4.0.898 → 4.0.899

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/SERVICE_CHANGELOG.md +88 -166
  3. package/package.json +1 -1
  4. package/products.md +9 -8
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cloudapp/index.ts +5 -0
  7. package/src/services/cloudapp/v20220530/cloudapp_client.ts +40 -0
  8. package/src/services/cloudapp/v20220530/cloudapp_models.ts +194 -0
  9. package/src/services/cloudapp/v20220530/index.ts +6 -0
  10. package/src/services/dsgc/v20190723/dsgc_models.ts +31 -3
  11. package/src/services/ess/v20201111/ess_models.ts +1 -1
  12. package/src/services/essbasic/v20210526/essbasic_client.ts +3 -1
  13. package/src/services/essbasic/v20210526/essbasic_models.ts +19 -5
  14. package/src/services/index.ts +1 -0
  15. package/src/services/lighthouse/v20200324/lighthouse_models.ts +6 -6
  16. package/src/services/mongodb/v20190725/mongodb_models.ts +2 -2
  17. package/src/services/monitor/v20180724/monitor_client.ts +1 -1
  18. package/src/services/monitor/v20180724/monitor_models.ts +10 -105
  19. package/src/services/tcr/v20190924/tcr_models.ts +1 -1
  20. package/tencentcloud/common/sdk_version.d.ts +1 -1
  21. package/tencentcloud/common/sdk_version.js +1 -1
  22. package/tencentcloud/services/cloudapp/index.d.ts +6 -0
  23. package/tencentcloud/services/cloudapp/index.js +7 -0
  24. package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.d.ts +14 -0
  25. package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.js +37 -0
  26. package/tencentcloud/services/cloudapp/v20220530/cloudapp_models.d.ts +174 -0
  27. package/tencentcloud/services/cloudapp/v20220530/cloudapp_models.js +18 -0
  28. package/tencentcloud/services/cloudapp/v20220530/index.d.ts +6 -0
  29. package/tencentcloud/services/cloudapp/v20220530/index.js +9 -0
  30. package/tencentcloud/services/dsgc/v20190723/dsgc_models.d.ts +31 -3
  31. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
  32. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +3 -1
  33. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +3 -1
  34. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +19 -5
  35. package/tencentcloud/services/index.d.ts +1 -0
  36. package/tencentcloud/services/index.js +2 -0
  37. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +6 -6
  38. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +2 -2
  39. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +1 -1
  40. package/tencentcloud/services/monitor/v20180724/monitor_client.js +1 -1
  41. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +10 -105
  42. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +1 -1
  43. package/test/cloudapp.v20220530.test.js +31 -0
@@ -0,0 +1,194 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * 表示商品 SKU 的单个售卖参数
20
+ */
21
+ export interface SaleParam {
22
+ /**
23
+ * 售卖参数标识
24
+ */
25
+ ParamKey?: string
26
+ /**
27
+ * 售卖参数值
28
+ */
29
+ ParamValue?: string
30
+ /**
31
+ * 售卖参数的展示名称
32
+ 注意:此字段可能返回 null,表示取不到有效值。
33
+ */
34
+ ParamKeyName?: string
35
+ /**
36
+ * 售卖参数值的展示名称
37
+ 注意:此字段可能返回 null,表示取不到有效值。
38
+ */
39
+ ParamValueName?: string
40
+ }
41
+
42
+ /**
43
+ * VerifyLicense请求参数结构体
44
+ */
45
+ export type VerifyLicenseRequest = null
46
+
47
+ /**
48
+ * VerifyLicense返回参数结构体
49
+ */
50
+ export interface VerifyLicenseResponse {
51
+ /**
52
+ * 软件的详细授权信息。
53
+ */
54
+ License?: License
55
+ /**
56
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
57
+ */
58
+ RequestId?: string
59
+ }
60
+
61
+ /**
62
+ * 表示应用实例的软件授权,包含颁发信息、激活信息等内容。
63
+ */
64
+ export interface License {
65
+ /**
66
+ * License ID
67
+ */
68
+ LicenseId?: string
69
+ /**
70
+ * 软件授权模式。
71
+
72
+ <table>
73
+ <thead>
74
+ <tr>
75
+ <th>枚举值</th>
76
+ <th>说明</th>
77
+ </tr>
78
+ </thead>
79
+ <tbody><tr>
80
+ <td>Permanent</td>
81
+ <td>永久授权。该授权不受有效期限制。</td>
82
+ </tr>
83
+ <tr>
84
+ <td>Subscription</td>
85
+ <td>订阅授权。授权如果过了有效期,则会进入过期状态。</td>
86
+ </tr>
87
+ </tbody></table>
88
+ */
89
+ LicenseMode?: string
90
+ /**
91
+ * 软件的授权状态。
92
+
93
+ <table>
94
+ <thead>
95
+ <tr>
96
+ <th>枚举值</th>
97
+ <th>说明</th>
98
+ </tr>
99
+ </thead>
100
+ <tbody><tr>
101
+ <td>Issued</td>
102
+ <td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td>
103
+ </tr>
104
+ <tr>
105
+ <td>Active</td>
106
+ <td>授权在有效期内,这是软件运行期间最常见的状态。</td>
107
+ </tr>
108
+ <tr>
109
+ <td>Expired</td>
110
+ <td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td>
111
+ </tr>
112
+ <tr>
113
+ <td>Deactivated</td>
114
+ <td>授权已失效。用户如果退货软件,则授权会自动失效。</td>
115
+ </tr>
116
+ </tbody></table>
117
+ */
118
+ LicenseStatus?: string
119
+ /**
120
+ * 软件供应方 ID。
121
+ */
122
+ ProviderId?: number
123
+ /**
124
+ * 软件包 ID。
125
+ */
126
+ SoftwarePackageId?: string
127
+ /**
128
+ * 软件包版本。
129
+ */
130
+ SoftwarePackageVersion?: string
131
+ /**
132
+ * 被授权的用户 UIN。
133
+ */
134
+ AuthorizedUserUin?: string
135
+ /**
136
+ * 被授权的应用实例 ID。
137
+ */
138
+ AuthorizedCloudappId?: string
139
+ /**
140
+ * 被授权的角色 ID。
141
+ */
142
+ AuthorizedCloudappRoleId?: string
143
+ /**
144
+ * 被授权的软件规格,具体字段请参考结构SaleParam
145
+ */
146
+ AuthorizedSpecification?: Array<SaleParam>
147
+ /**
148
+ * 被授权的软件的计费模式。
149
+
150
+ <table>
151
+ <thead>
152
+ <tr>
153
+ <th>枚举值</th>
154
+ <th>说明</th>
155
+ </tr>
156
+ </thead>
157
+ <tbody><tr>
158
+ <td>1</td>
159
+ <td>线上计费,软件的授权从腾讯云线上购买,支持续费、退款等操作。</td>
160
+ </tr>
161
+ <tr>
162
+ <td>2</td>
163
+ <td>线下计费,软件的授权线下签订合同购买,定向客户交付,无法从线上续费和退款。</td>
164
+ </tr>
165
+ <tr>
166
+ <td>4</td>
167
+ <td>免费</td>
168
+ </tr>
169
+ </tbody></table>
170
+ */
171
+ BillingMode?: number
172
+ /**
173
+ * 授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
174
+ */
175
+ LifeSpan?: number
176
+ /**
177
+ * 授权颁发时间。
178
+ */
179
+ IssueDate?: string
180
+ /**
181
+ * 授权激活时间,如从未激活则返回 null。
182
+ 注意:此字段可能返回 null,表示取不到有效值。
183
+ */
184
+ ActivationDate?: string
185
+ /**
186
+ * 授权过期时间,如未过期或者是永久授权,则返回 null。
187
+ 注意:此字段可能返回 null,表示取不到有效值。
188
+ */
189
+ ExpirationDate?: string
190
+ /**
191
+ * 授权时长单位,枚举值有Y年/M月/D日三种
192
+ */
193
+ LifeSpanUnit?: string
194
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./cloudapp_models"
2
+ import { Client } from "./cloudapp_client"
3
+ export const v20220530 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -339,12 +339,12 @@ export interface CreateDSPADiscoveryTaskResponse {
339
339
  /**
340
340
  * 任务ID
341
341
  */
342
- TaskId: number
342
+ TaskId?: number
343
343
  /**
344
344
  * 扫描结果ID
345
345
  注意:此字段可能返回 null,表示取不到有效值。
346
346
  */
347
- ResultId: number
347
+ ResultId?: number
348
348
  /**
349
349
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
350
350
  */
@@ -2871,6 +2871,18 @@ selfbuilt-db 表示自建数据库
2871
2871
  当执行计划(Plan字段)为”立即“时,定时启动时间不会生效,此场景下给该字段传值不会被保存。
2872
2872
  */
2873
2873
  TimingStartTime?: string
2874
+ /**
2875
+ * random-随机,asc生序,desc降序
2876
+ */
2877
+ Order?: string
2878
+ /**
2879
+ * 抽样的条数,范围30-1000
2880
+ */
2881
+ Rows?: number
2882
+ /**
2883
+ * 抽样的排序字段
2884
+ */
2885
+ GlobalOrderField?: string
2874
2886
  }
2875
2887
 
2876
2888
  /**
@@ -4431,7 +4443,7 @@ export interface DescribeDSPATaskResultDataSampleResponse {
4431
4443
  * 数据样本列表,最多10条数据
4432
4444
  注意:此字段可能返回 null,表示取不到有效值。
4433
4445
  */
4434
- Items: Array<DspaFieldResultDataSample>
4446
+ Items?: Array<DspaFieldResultDataSample>
4435
4447
  /**
4436
4448
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4437
4449
  */
@@ -5597,6 +5609,14 @@ export interface DescribeDSPAESDataSampleRequest {
5597
5609
  * 字段扫描结果ID
5598
5610
  */
5599
5611
  FieldResultId: number
5612
+ /**
5613
+ * 排序方式
5614
+ */
5615
+ Order?: string
5616
+ /**
5617
+ * 排序字段
5618
+ */
5619
+ OrderField?: string
5600
5620
  }
5601
5621
 
5602
5622
  /**
@@ -7744,6 +7764,14 @@ export interface DescribeDSPATaskResultDataSampleRequest {
7744
7764
  * 字段扫描结果ID
7745
7765
  */
7746
7766
  FieldResultId: number
7767
+ /**
7768
+ * 排序方式
7769
+ */
7770
+ Order?: string
7771
+ /**
7772
+ * 排序字段
7773
+ */
7774
+ OrderField?: string
7747
7775
  }
7748
7776
 
7749
7777
  /**
@@ -207,7 +207,7 @@ export interface CreateSealRequest {
207
207
  */
208
208
  GenerateSource?: string
209
209
  /**
210
- * 电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li></ul>注: `同企业下只能有<font color="red">一个</font>公章, 重复创建会报错`
210
+ * 电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li><li>**OTHER**: 其他</li></ul>注: 同企业下只能有<font color="red">一个</font>公章, 重复创建会报错
211
211
  */
212
212
  SealType?: string
213
213
  /**
@@ -1083,7 +1083,9 @@ Web链接访问后,会根据子客企业(**Agent中ProxyOrganizationOpenId表
1083
1083
  注:
1084
1084
  - 使用此接口生成链接,需要提前开通 `使用手机号验证签署方身份` 功能,在 `腾讯电子签网页端-企业设置-拓展服务` 中可以找到。
1085
1085
  - 参与人点击链接后需短信验证码才能查看合同内容。
1086
- - 企业用户批量签署,需要传OrganizationName(参与方所在企业名称)参数生成签署链接,<font color="red">请确保此企业已完成腾讯电子签企业认证</font>。暂时仅支持给<font color="red">自建应用集成企业</font>生成员工批签链接,不支持子客企业。
1086
+ - 个人用户批量签署,需要传Name,Mobile,IdCardNumber(IdCardType) 参数。
1087
+ - saas企业员工用户批量签署,在传递了姓名等基本信息参数的情况下,还需要传OrganizationName(参与方所在企业名称)参数生成签署链接,<font color="red">请确保此企业已完成腾讯电子签企业认证</font>。
1088
+ - 子客企业员工用户批签签署,需要传递员工OpenId和子客企业的OrganizationOpenId。<font color="red">请确保此OrganizationOpenId对应子客已经认证,且OpenId对应员工此子客下已经实名</font>。Name,Mobile, IdCard等信息此时可以不传,系统会查询此OpenId实名信息自动补充。
1087
1089
  - 生成批量签署链接时,合同目标参与方状态需为<font color="red">待签署</font>状态。
1088
1090
  - 个人批量签署进行的合同的签名区, 全部变成<font color="red">手写签名</font>(不管合同里边设置的签名限制)来进行。
1089
1091
  */
@@ -6538,14 +6538,14 @@ export interface ChannelCreateBatchSignUrlRequest {
6538
6538
  * 签署方经办人的姓名。
6539
6539
  经办人的姓名将用于身份认证和电子签名,请确保填写的姓名为签署方的真实姓名,而非昵称等代名。
6540
6540
 
6541
- 注:`请确保和合同中填入的一致`,`除动态签署人场景外,此参数必填`
6541
+ 注:`请确保和合同中填入的一致`,`除动态签署人或子客员工经办人场景外,此参数必填`
6542
6542
  */
6543
6543
  Name?: string
6544
6544
  /**
6545
6545
  * 手机号码, 支持国内手机号11位数字(无需加+86前缀或其他字符)。
6546
6546
  请确认手机号所有方为此业务通知方。
6547
6547
 
6548
- 注:`请确保和合同中填入的一致, 若无法保持一致,请确保在发起和生成批量签署链接时传入相同的参与方证件信息`,`除动态签署人场景外,此参数必填`
6548
+ 注:`请确保和合同中填入的一致, 若无法保持一致,请确保在发起和生成批量签署链接时传入相同的参与方证件信息`,`除动态签署人或子客员工经办人场景外,此参数必填`
6549
6549
  */
6550
6550
  Mobile?: string
6551
6551
  /**
@@ -6585,14 +6585,14 @@ export interface ChannelCreateBatchSignUrlRequest {
6585
6585
  */
6586
6586
  FlowIds?: Array<string>
6587
6587
  /**
6588
- * 目标签署人的企业名称,签署人如果是企业员工身份,需要传此参数。
6588
+ * SaaS平台企业员工签署方的企业名称。目标签署人如果为saas应用企业员工身份,此参数必填。
6589
6589
 
6590
6590
  注:
6591
6591
  <ul>
6592
6592
  <li>请确认该名称与企业营业执照中注册的名称一致。</li>
6593
6593
  <li>如果名称中包含英文括号(),请使用中文括号()代替。</li>
6594
6594
  <li>请确保此企业已完成腾讯电子签企业认证。</li>
6595
- <li>暂时仅支持给`自建应用集成企业` 生成员工批签链接,不支持子客企业。</li>
6595
+ <li>**若为子客企业员工,请使用OpenId,OrganizationOpenId参数,此参数留空即可**</li>
6596
6596
  </ul>
6597
6597
  */
6598
6598
  OrganizationName?: string
@@ -6608,6 +6608,20 @@ export interface ChannelCreateBatchSignUrlRequest {
6608
6608
  * 批量签署合同相关信息,指定合同和签署方的信息,用于补充动态签署人。
6609
6609
  */
6610
6610
  FlowBatchUrlInfo?: FlowBatchUrlInfo
6611
+ /**
6612
+ * 第三方平台子客企业员工的标识OpenId,批签合同经办人为子客员工的情况下为必填。
6613
+
6614
+ 注:
6615
+ <ul>
6616
+ <li>传入的OpenId对应员工在此子客企业下必须已经实名</li>
6617
+ <li>传递了此参数可以无需传递Name,Mobile,IdCardNumber,IdCardType参数。系统会根据员工OpenId自动拉取实名信息。</li>
6618
+ </ul>
6619
+ */
6620
+ OpenId?: string
6621
+ /**
6622
+ * 第三方平台子客企业的企业的标识, 即OrganizationOpenId,批签合同经办人为子客企业员工是为必填。
6623
+ */
6624
+ OrganizationOpenId?: string
6611
6625
  }
6612
6626
 
6613
6627
  /**
@@ -7663,7 +7677,7 @@ export interface CreateSealByImageRequest {
7663
7677
  */
7664
7678
  GenerateSource?: string
7665
7679
  /**
7666
- * 电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li></ul>注: `同企业下只能有<font color="red">一个</font>公章, 重复创建会报错`
7680
+ * 电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li><li>**OTHER**: 其他</li></ul>注: 同企业下只能有<font color="red">一个</font>公章, 重复创建会报错
7667
7681
  */
7668
7682
  SealType?: string
7669
7683
  /**
@@ -56,6 +56,7 @@ export { cim } from "./cim"
56
56
  export { cis } from "./cis"
57
57
  export { ckafka } from "./ckafka"
58
58
  export { clb } from "./clb"
59
+ export { cloudapp } from "./cloudapp"
59
60
  export { cloudaudit } from "./cloudaudit"
60
61
  export { cloudhsm } from "./cloudhsm"
61
62
  export { cloudstudio } from "./cloudstudio"
@@ -301,15 +301,15 @@ false(默认):发送正常请求,通过检查后直接创建实例
301
301
  export interface DescribeZonesRequest {
302
302
  /**
303
303
  * 可用区列表排序的依据字段。取值范围:
304
- <li>ZONE:依据可用区排序。
304
+ <li>ZONE:依据可用区排序。</li>
305
305
  <li>INSTANCE_DISPLAY_LABEL:依据可用区展示标签排序,可用区展示标签包括:HIDDEN(隐藏)、NORMAL(普通)、SELECTED(默认选中),默认采用的升序排列为:['HIDDEN', 'NORMAL', 'SELECTED']。
306
- 默认按可用区排序。
306
+ 默认按可用区排序。</li>
307
307
  */
308
308
  OrderField?: string
309
309
  /**
310
310
  * 输出可用区列表的排列顺序。取值范围:
311
- <li>ASC:升序排列。
312
- <li>DESC:降序排列。
311
+ <li>ASC:升序排列。 </li>
312
+ <li>DESC:降序排列。</li>
313
313
  默认按升序排列。
314
314
  */
315
315
  Order?: string
@@ -4078,11 +4078,11 @@ export interface DescribeZonesResponse {
4078
4078
  /**
4079
4079
  * 可用区数量
4080
4080
  */
4081
- TotalCount: number
4081
+ TotalCount?: number
4082
4082
  /**
4083
4083
  * 可用区详细信息列表
4084
4084
  */
4085
- ZoneInfoSet: Array<ZoneInfo>
4085
+ ZoneInfoSet?: Array<ZoneInfo>
4086
4086
  /**
4087
4087
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4088
4088
  */
@@ -30,7 +30,7 @@ export interface DescribeSpecInfoRequest {
30
30
  */
31
31
  export interface CreateDBInstanceRequest {
32
32
  /**
33
- * - 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
33
+ * - 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
34
34
  - 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
35
35
  */
36
36
  NodeNum: number
@@ -2268,7 +2268,7 @@ export interface CreateDBInstanceHourRequest {
2268
2268
  */
2269
2269
  ReplicateSetNum: number
2270
2270
  /**
2271
- * - 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
2271
+ * - 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
2272
2272
  - 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
2273
2273
  */
2274
2274
  NodeNum: number
@@ -2061,7 +2061,7 @@ export class Client extends AbstractClient {
2061
2061
  }
2062
2062
 
2063
2063
  /**
2064
- * 修改prometheus配置,如果配置项不存在,则会新增
2064
+ * 修改prometheus采集配置
2065
2065
  */
2066
2066
  async ModifyPrometheusConfig(
2067
2067
  req: ModifyPrometheusConfigRequest,
@@ -96,11 +96,11 @@ export interface DescribePolicyGroupListResponse {
96
96
  */
97
97
  export interface DescribePrometheusInstancesOverviewRequest {
98
98
  /**
99
- * 用于分页
99
+ * 分页偏移量,默认为0
100
100
  */
101
101
  Offset?: number
102
102
  /**
103
- * 用于分页
103
+ * 返回数量,默认为20,最大值为100
104
104
  */
105
105
  Limit?: number
106
106
  /**
@@ -564,38 +564,7 @@ export interface UpdateServiceDiscoveryRequest {
564
564
  */
565
565
  Type: number
566
566
  /**
567
- * 服务发现配置信息,YAML 格式
568
-
569
- 示例值:
570
-
571
- ```
572
- apiVersion: monitoring.coreos.com/v1
573
- kind: ServiceMonitor
574
- metadata:
575
- name: go-demo # 填写一个唯一名称
576
- namespace: cm-prometheus # namespace固定,不要修改
577
- spec:
578
- endpoints:
579
- - interval: 30s
580
- # 填写service yaml中Prometheus Exporter对应的Port的Name
581
- port: 2112
582
- # 填写Prometheus Exporter对应的Path的值,不填默认/metrics
583
- path: /metrics
584
- relabelings:
585
- # ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
586
- # 我们通过 relabel 的 replace 动作把它替换成了 application
587
- - action: replace
588
- sourceLabels: [__meta_kubernetes_pod_label_app]
589
- targetLabel: application
590
- # 选择要监控service所在的namespace
591
- namespaceSelector:
592
- matchNames:
593
- - golang-demo
594
- # 填写要监控service的Label值,以定位目标service
595
- selector:
596
- matchLabels:
597
- app: golang-app-demo
598
- ```
567
+ * 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor)
599
568
  */
600
569
  Yaml: string
601
570
  }
@@ -4986,7 +4955,7 @@ export interface DescribePrometheusTargetsTMPRequest {
4986
4955
  */
4987
4956
  Filters?: Array<Filter>
4988
4957
  /**
4989
- * targets偏移量,默认为0
4958
+ * targets分页偏移量,默认为0
4990
4959
  */
4991
4960
  Offset?: number
4992
4961
  /**
@@ -6101,38 +6070,7 @@ export interface CreateServiceDiscoveryRequest {
6101
6070
  */
6102
6071
  Type: number
6103
6072
  /**
6104
- * 服务发现配置信息,YAML 格式
6105
-
6106
- 示例值:
6107
-
6108
- ```
6109
- apiVersion: monitoring.coreos.com/v1
6110
- kind: ServiceMonitor
6111
- metadata:
6112
- name: go-demo # 填写一个唯一名称
6113
- namespace: cm-prometheus # namespace固定,不要修改
6114
- spec:
6115
- endpoints:
6116
- - interval: 30s
6117
- # 填写service yaml中Prometheus Exporter对应的Port的Name
6118
- port: 2112
6119
- # 填写Prometheus Exporter对应的Path的值,不填默认/metrics
6120
- path: /metrics
6121
- relabelings:
6122
- # ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
6123
- # 我们通过 relabel 的 replace 动作把它替换成了 application
6124
- - action: replace
6125
- sourceLabels: [__meta_kubernetes_pod_label_app]
6126
- targetLabel: application
6127
- # 选择要监控service所在的namespace
6128
- namespaceSelector:
6129
- matchNames:
6130
- - golang-demo
6131
- # 填写要监控service的Label值,以定位目标service
6132
- selector:
6133
- matchLabels:
6134
- app: golang-app-demo
6135
- ```
6073
+ * 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor)
6136
6074
  */
6137
6075
  Yaml: string
6138
6076
  }
@@ -7503,11 +7441,11 @@ export interface DescribePrometheusClusterAgentsRequest {
7503
7441
  */
7504
7442
  InstanceId: string
7505
7443
  /**
7506
- * 用于分页
7444
+ * 偏移量,默认为0。
7507
7445
  */
7508
7446
  Offset?: number
7509
7447
  /**
7510
- * 用于分页
7448
+ * 返回数量,默认为20,最大值为100。
7511
7449
  */
7512
7450
  Limit?: number
7513
7451
  /**
@@ -8544,38 +8482,7 @@ export interface DeleteServiceDiscoveryRequest {
8544
8482
  */
8545
8483
  Type: number
8546
8484
  /**
8547
- * 服务发现配置信息,YAML 格式
8548
-
8549
- 示例值:
8550
-
8551
- ```
8552
- apiVersion: monitoring.coreos.com/v1
8553
- kind: ServiceMonitor
8554
- metadata:
8555
- name: go-demo # 填写一个唯一名称
8556
- namespace: cm-prometheus # namespace固定,不要修改
8557
- spec:
8558
- endpoints:
8559
- - interval: 30s
8560
- # 填写service yaml中Prometheus Exporter对应的Port的Name
8561
- port: 2112
8562
- # 填写Prometheus Exporter对应的Path的值,不填默认/metrics
8563
- path: /metrics
8564
- relabelings:
8565
- # ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
8566
- # 我们通过 relabel 的 replace 动作把它替换成了 application
8567
- - action: replace
8568
- sourceLabels: [__meta_kubernetes_pod_label_app]
8569
- targetLabel: application
8570
- # 选择要监控service所在的namespace
8571
- namespaceSelector:
8572
- matchNames:
8573
- - golang-demo
8574
- # 填写要监控service的Label值,以定位目标service
8575
- selector:
8576
- matchLabels:
8577
- app: golang-app-demo
8578
- ```
8485
+ * 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor)
8579
8486
  */
8580
8487
  Yaml: string
8581
8488
  }
@@ -8829,13 +8736,11 @@ export interface UpdateGrafanaWhiteListRequest {
8829
8736
  */
8830
8737
  export interface UpdatePrometheusAgentStatusRequest {
8831
8738
  /**
8832
- * Prometheus 实例 ID,例如:prom-abcd1234
8739
+ * Prometheus 实例 ID
8833
8740
  */
8834
8741
  InstanceId: string
8835
8742
  /**
8836
8743
  * Agent ID 列表,例如:agent-abcd1234,可在控制台 Agent 管理中获取
8837
-
8838
- 示例值:["agent-abcd1234"]
8839
8744
  */
8840
8745
  AgentIds: Array<string>
8841
8746
  /**
@@ -9917,7 +9822,7 @@ ID 按templateId过滤
9917
9822
  */
9918
9823
  Filters?: Array<Filter>
9919
9824
  /**
9920
- * 分页偏移
9825
+ * 分页偏移量,默认为0
9921
9826
  */
9922
9827
  Offset?: number
9923
9828
  /**
@@ -4178,7 +4178,7 @@ export interface CheckInstanceNameResponse {
4178
4178
  */
4179
4179
  IsValidated?: boolean
4180
4180
  /**
4181
- * 1: Illegal(名子非法), 2:Reserved(名字保留), 3:Existed(名字已存在)
4181
+ * 1: Illegal(名称非法), 2:Reserved(名字保留), 3:Existed(名字已存在)
4182
4182
  注意:此字段可能返回 null,表示取不到有效值。
4183
4183
  */
4184
4184
  DetailCode?: number
@@ -1 +1 @@
1
- export declare const sdkVersion = "4.0.898";
1
+ export declare const sdkVersion = "4.0.899";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sdkVersion = void 0;
4
- exports.sdkVersion = "4.0.898";
4
+ exports.sdkVersion = "4.0.899";
@@ -0,0 +1,6 @@
1
+ export declare const cloudapp: {
2
+ v20220530: {
3
+ Client: typeof import("./v20220530/cloudapp_client").Client;
4
+ Models: typeof import("./v20220530/cloudapp_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cloudapp = void 0;
4
+ const v20220530_1 = require("./v20220530");
5
+ exports.cloudapp = {
6
+ v20220530: v20220530_1.v20220530,
7
+ };
@@ -0,0 +1,14 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { VerifyLicenseRequest, VerifyLicenseResponse } from "./cloudapp_models";
4
+ /**
5
+ * cloudapp client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 通过运行时roleId查询对应的软件 LICENSE
12
+ */
13
+ VerifyLicense(req?: VerifyLicenseRequest, cb?: (error: string, rep: VerifyLicenseResponse) => void): Promise<VerifyLicenseResponse>;
14
+ }