tencentcloud-sdk-nodejs 4.0.934 → 4.0.936

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 (117) hide show
  1. package/CHANGELOG.md +551 -0
  2. package/SERVICE_CHANGELOG.md +555 -88
  3. package/package.json +1 -1
  4. package/products.md +30 -30
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/aiart/v20221229/aiart_client.ts +13 -0
  7. package/src/services/aiart/v20221229/aiart_models.ts +69 -0
  8. package/src/services/cfg/v20210820/cfg_models.ts +6 -1
  9. package/src/services/cfw/v20190904/cfw_models.ts +42 -2
  10. package/src/services/ckafka/v20190819/ckafka_models.ts +3 -2
  11. package/src/services/dcdb/v20180411/dcdb_client.ts +35 -7
  12. package/src/services/dcdb/v20180411/dcdb_models.ts +184 -6
  13. package/src/services/dnspod/v20210323/dnspod_client.ts +14 -1
  14. package/src/services/dnspod/v20210323/dnspod_models.ts +69 -6
  15. package/src/services/emr/v20190103/emr_client.ts +88 -22
  16. package/src/services/emr/v20190103/emr_models.ts +1402 -1119
  17. package/src/services/es/v20180416/es_client.ts +12 -0
  18. package/src/services/es/v20180416/es_models.ts +28 -0
  19. package/src/services/ess/v20201111/ess_client.ts +6 -8
  20. package/src/services/ess/v20201111/ess_models.ts +28 -37
  21. package/src/services/essbasic/v20210526/essbasic_client.ts +22 -0
  22. package/src/services/essbasic/v20210526/essbasic_models.ts +60 -0
  23. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +2 -2
  24. package/src/services/iss/v20230517/iss_client.ts +38 -25
  25. package/src/services/iss/v20230517/iss_models.ts +49 -6
  26. package/src/services/mariadb/v20170312/mariadb_client.ts +41 -13
  27. package/src/services/mariadb/v20170312/mariadb_models.ts +184 -6
  28. package/src/services/mps/v20190612/mps_client.ts +5 -2
  29. package/src/services/mps/v20190612/mps_models.ts +128 -55
  30. package/src/services/ocr/v20181119/ocr_models.ts +10 -6
  31. package/src/services/redis/v20180412/redis_client.ts +29 -4
  32. package/src/services/redis/v20180412/redis_models.ts +239 -131
  33. package/src/services/sms/v20210111/sms_models.ts +9 -9
  34. package/src/services/ssl/v20191205/ssl_models.ts +3 -3
  35. package/src/services/teo/v20220901/teo_models.ts +11 -11
  36. package/src/services/tke/v20180525/tke_models.ts +4 -0
  37. package/src/services/tke/v20220501/tke_client.ts +97 -20
  38. package/src/services/tke/v20220501/tke_models.ts +494 -215
  39. package/src/services/tsf/v20180326/tsf_models.ts +34 -15
  40. package/src/services/vdb/v20230616/vdb_client.ts +66 -2
  41. package/src/services/vdb/v20230616/vdb_models.ts +273 -27
  42. package/src/services/vod/index.ts +2 -0
  43. package/src/services/vod/v20240718/index.ts +6 -0
  44. package/src/services/vod/v20240718/vod_client.ts +44 -0
  45. package/src/services/vod/v20240718/vod_models.ts +76 -0
  46. package/src/services/vpc/v20170312/vpc_models.ts +12 -5
  47. package/tencentcloud/common/sdk_version.d.ts +1 -1
  48. package/tencentcloud/common/sdk_version.js +1 -1
  49. package/tencentcloud/services/aiart/v20221229/aiart_client.d.ts +6 -1
  50. package/tencentcloud/services/aiart/v20221229/aiart_client.js +7 -0
  51. package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +67 -0
  52. package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +6 -1
  53. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +42 -2
  54. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +3 -2
  55. package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +13 -3
  56. package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +17 -3
  57. package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +178 -6
  58. package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +5 -1
  59. package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +6 -0
  60. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +66 -6
  61. package/tencentcloud/services/emr/v20190103/emr_client.d.ts +29 -5
  62. package/tencentcloud/services/emr/v20190103/emr_client.js +40 -6
  63. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +1241 -970
  64. package/tencentcloud/services/es/v20180416/es_client.d.ts +5 -1
  65. package/tencentcloud/services/es/v20180416/es_client.js +6 -0
  66. package/tencentcloud/services/es/v20180416/es_models.d.ts +26 -0
  67. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +6 -8
  68. package/tencentcloud/services/ess/v20201111/ess_client.js +6 -8
  69. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +28 -37
  70. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +15 -1
  71. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +16 -0
  72. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +58 -0
  73. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +2 -2
  74. package/tencentcloud/services/iss/v20230517/iss_client.d.ts +13 -9
  75. package/tencentcloud/services/iss/v20230517/iss_client.js +18 -12
  76. package/tencentcloud/services/iss/v20230517/iss_models.d.ts +46 -6
  77. package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +15 -5
  78. package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +20 -6
  79. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +178 -6
  80. package/tencentcloud/services/mps/v20190612/mps_client.d.ts +1 -1
  81. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +125 -55
  82. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +10 -6
  83. package/tencentcloud/services/redis/v20180412/redis_client.d.ts +9 -1
  84. package/tencentcloud/services/redis/v20180412/redis_client.js +12 -0
  85. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +234 -131
  86. package/tencentcloud/services/sms/v20210111/sms_models.d.ts +9 -9
  87. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +3 -3
  88. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +11 -11
  89. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +4 -0
  90. package/tencentcloud/services/tke/v20220501/tke_client.d.ts +29 -5
  91. package/tencentcloud/services/tke/v20220501/tke_client.js +42 -6
  92. package/tencentcloud/services/tke/v20220501/tke_models.d.ts +481 -219
  93. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +34 -15
  94. package/tencentcloud/services/vdb/v20230616/vdb_client.d.ts +21 -1
  95. package/tencentcloud/services/vdb/v20230616/vdb_client.js +30 -0
  96. package/tencentcloud/services/vdb/v20230616/vdb_models.d.ts +259 -27
  97. package/tencentcloud/services/vod/index.d.ts +4 -0
  98. package/tencentcloud/services/vod/index.js +2 -0
  99. package/tencentcloud/services/vod/v20240718/index.d.ts +6 -0
  100. package/tencentcloud/services/vod/v20240718/index.js +9 -0
  101. package/tencentcloud/services/vod/v20240718/vod_client.d.ts +14 -0
  102. package/tencentcloud/services/vod/v20240718/vod_client.js +37 -0
  103. package/tencentcloud/services/vod/v20240718/vod_models.d.ts +57 -0
  104. package/tencentcloud/services/vod/v20240718/vod_models.js +18 -0
  105. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +12 -5
  106. package/test/aiart.v20221229.test.js +10 -0
  107. package/test/dcdb.v20180411.test.js +22 -2
  108. package/test/dnspod.v20210323.test.js +10 -0
  109. package/test/emr.v20190103.test.js +54 -4
  110. package/test/es.v20180416.test.js +10 -0
  111. package/test/essbasic.v20210526.test.js +10 -0
  112. package/test/iss.v20230517.test.js +18 -8
  113. package/test/mariadb.v20170312.test.js +24 -4
  114. package/test/redis.v20180412.test.js +20 -0
  115. package/test/tke.v20220501.test.js +64 -4
  116. package/test/vdb.v20230616.test.js +50 -0
  117. package/test/vod.v20240718.test.js +31 -0
@@ -9334,6 +9334,10 @@ export interface CreateAllGatewayApiAsyncRequest {
9334
9334
  * 微服务ID
9335
9335
  */
9336
9336
  MicroserviceId: string
9337
+ /**
9338
+ * 命名空间ID
9339
+ */
9340
+ NamespaceId?: string
9337
9341
  }
9338
9342
 
9339
9343
  /**
@@ -11240,25 +11244,25 @@ export interface GatewayGroupApiVo {
11240
11244
  /**
11241
11245
  * API ID
11242
11246
  */
11243
- ApiId: string
11247
+ ApiId?: string
11244
11248
  /**
11245
11249
  * API 请求路径
11246
11250
  */
11247
- Path: string
11251
+ Path?: string
11248
11252
  /**
11249
11253
  * API 微服务名称
11250
11254
  */
11251
- MicroserviceName: string
11255
+ MicroserviceName?: string
11252
11256
  /**
11253
11257
  * API 请求方法
11254
11258
  注意:此字段可能返回 null,表示取不到有效值。
11255
11259
  */
11256
- Method: string
11260
+ Method?: string
11257
11261
  /**
11258
11262
  * 命名空间名称
11259
11263
  注意:此字段可能返回 null,表示取不到有效值。
11260
11264
  */
11261
- NamespaceName: string
11265
+ NamespaceName?: string
11262
11266
  }
11263
11267
 
11264
11268
  /**
@@ -14090,52 +14094,67 @@ export interface ApiRateLimitRule {
14090
14094
  * rule Id
14091
14095
  注意:此字段可能返回 null,表示取不到有效值。
14092
14096
  */
14093
- RuleId: string
14097
+ RuleId?: string
14094
14098
  /**
14095
14099
  * API ID
14096
14100
  注意:此字段可能返回 null,表示取不到有效值。
14097
14101
  */
14098
- ApiId: string
14102
+ ApiId?: string
14099
14103
  /**
14100
14104
  * 限流名称
14101
14105
  注意:此字段可能返回 null,表示取不到有效值。
14102
14106
  */
14103
- RuleName: string
14107
+ RuleName?: string
14104
14108
  /**
14105
14109
  * 最大限流qps
14106
14110
  注意:此字段可能返回 null,表示取不到有效值。
14107
14111
  */
14108
- MaxQps: number
14112
+ MaxQps?: number
14109
14113
  /**
14110
14114
  * 生效/禁用, enabled/disabled
14111
14115
  注意:此字段可能返回 null,表示取不到有效值。
14112
14116
  */
14113
- UsableStatus: string
14117
+ UsableStatus?: string
14114
14118
  /**
14115
14119
  * 规则内容
14116
14120
  注意:此字段可能返回 null,表示取不到有效值。
14117
14121
  */
14118
- RuleContent: string
14122
+ RuleContent?: string
14119
14123
  /**
14120
14124
  * Tsf Rule ID
14121
14125
  注意:此字段可能返回 null,表示取不到有效值。
14122
14126
  */
14123
- TsfRuleId: string
14127
+ TsfRuleId?: string
14124
14128
  /**
14125
14129
  * 描述
14126
14130
  注意:此字段可能返回 null,表示取不到有效值。
14127
14131
  */
14128
- Description: string
14132
+ Description?: string
14129
14133
  /**
14130
14134
  * 创建时间
14131
14135
  注意:此字段可能返回 null,表示取不到有效值。
14132
14136
  */
14133
- CreatedTime: string
14137
+ CreatedTime?: string
14134
14138
  /**
14135
14139
  * 更新时间
14136
14140
  注意:此字段可能返回 null,表示取不到有效值。
14137
14141
  */
14138
- UpdatedTime: string
14142
+ UpdatedTime?: string
14143
+ /**
14144
+ * 分页参数limit
14145
+ 注意:此字段可能返回 null,表示取不到有效值。
14146
+ */
14147
+ Limit?: number
14148
+ /**
14149
+ * 分页参数offset
14150
+ 注意:此字段可能返回 null,表示取不到有效值。
14151
+ */
14152
+ Offset?: number
14153
+ /**
14154
+ * AppId
14155
+ 注意:此字段可能返回 null,表示取不到有效值。
14156
+ */
14157
+ AppId?: string
14139
14158
  }
14140
14159
 
14141
14160
  /**
@@ -18,11 +18,25 @@
18
18
  import { AbstractClient } from "../../../common/abstract_client"
19
19
  import { ClientConfig } from "../../../common/interface"
20
20
  import {
21
+ Network,
22
+ AssociateSecurityGroupsResponse,
23
+ Outbound,
24
+ DescribeDBSecurityGroupsRequest,
21
25
  DescribeInstancesRequest,
22
- InstanceInfo,
26
+ AssociateSecurityGroupsRequest,
27
+ DisassociateSecurityGroupsRequest,
28
+ DescribeInstanceNodesResponse,
29
+ SecurityGroup,
30
+ ModifyDBInstanceSecurityGroupsResponse,
31
+ Inbound,
23
32
  Tag,
33
+ DescribeDBSecurityGroupsResponse,
34
+ DisassociateSecurityGroupsResponse,
35
+ DescribeInstanceNodesRequest,
36
+ InstanceInfo,
37
+ NodeInfo,
24
38
  DescribeInstancesResponse,
25
- Network,
39
+ ModifyDBInstanceSecurityGroupsRequest,
26
40
  } from "./vdb_models"
27
41
 
28
42
  /**
@@ -34,6 +48,16 @@ export class Client extends AbstractClient {
34
48
  super("vdb.tencentcloudapi.com", "2023-06-16", clientConfig)
35
49
  }
36
50
 
51
+ /**
52
+ * 本接口 (AssociateSecurityGroups) 用于安全组批量绑定多个指定实例。
53
+ */
54
+ async AssociateSecurityGroups(
55
+ req: AssociateSecurityGroupsRequest,
56
+ cb?: (error: string, rep: AssociateSecurityGroupsResponse) => void
57
+ ): Promise<AssociateSecurityGroupsResponse> {
58
+ return this.request("AssociateSecurityGroups", req, cb)
59
+ }
60
+
37
61
  /**
38
62
  * 查询实例列表
39
63
  */
@@ -43,4 +67,44 @@ export class Client extends AbstractClient {
43
67
  ): Promise<DescribeInstancesResponse> {
44
68
  return this.request("DescribeInstances", req, cb)
45
69
  }
70
+
71
+ /**
72
+ * 本接口(DescribeDBSecurityGroups)用于查询实例的安全组详情。
73
+ */
74
+ async DescribeDBSecurityGroups(
75
+ req: DescribeDBSecurityGroupsRequest,
76
+ cb?: (error: string, rep: DescribeDBSecurityGroupsResponse) => void
77
+ ): Promise<DescribeDBSecurityGroupsResponse> {
78
+ return this.request("DescribeDBSecurityGroups", req, cb)
79
+ }
80
+
81
+ /**
82
+ * 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
83
+ */
84
+ async ModifyDBInstanceSecurityGroups(
85
+ req: ModifyDBInstanceSecurityGroupsRequest,
86
+ cb?: (error: string, rep: ModifyDBInstanceSecurityGroupsResponse) => void
87
+ ): Promise<ModifyDBInstanceSecurityGroupsResponse> {
88
+ return this.request("ModifyDBInstanceSecurityGroups", req, cb)
89
+ }
90
+
91
+ /**
92
+ * 实例节点列表
93
+ */
94
+ async DescribeInstanceNodes(
95
+ req?: DescribeInstanceNodesRequest,
96
+ cb?: (error: string, rep: DescribeInstanceNodesResponse) => void
97
+ ): Promise<DescribeInstanceNodesResponse> {
98
+ return this.request("DescribeInstanceNodes", req, cb)
99
+ }
100
+
101
+ /**
102
+ * 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
103
+ */
104
+ async DisassociateSecurityGroups(
105
+ req: DisassociateSecurityGroupsRequest,
106
+ cb?: (error: string, rep: DisassociateSecurityGroupsResponse) => void
107
+ ): Promise<DisassociateSecurityGroupsResponse> {
108
+ return this.request("DisassociateSecurityGroups", req, cb)
109
+ }
46
110
  }
@@ -15,6 +15,90 @@
15
15
  * under the License.
16
16
  */
17
17
 
18
+ /**
19
+ * 网络信息
20
+ */
21
+ export interface Network {
22
+ /**
23
+ * VpcId(VPC网络下有效)
24
+ 注意:此字段可能返回 null,表示取不到有效值。
25
+ */
26
+ VpcId?: string
27
+ /**
28
+ * 子网Id(VPC网络下有效)。
29
+ 注意:此字段可能返回 null,表示取不到有效值。
30
+ */
31
+ SubnetId?: string
32
+ /**
33
+ * 内网访问IP。
34
+ 注意:此字段可能返回 null,表示取不到有效值。
35
+ */
36
+ Vip?: string
37
+ /**
38
+ * 内网访问Port。
39
+ 注意:此字段可能返回 null,表示取不到有效值。
40
+ */
41
+ Port?: number
42
+ }
43
+
44
+ /**
45
+ * AssociateSecurityGroups返回参数结构体
46
+ */
47
+ export interface AssociateSecurityGroupsResponse {
48
+ /**
49
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
50
+ */
51
+ RequestId?: string
52
+ }
53
+
54
+ /**
55
+ * 安全组出站规则
56
+ */
57
+ export interface Outbound {
58
+ /**
59
+ * 策略,ACCEPT或者DROP。
60
+ */
61
+ Action: string
62
+ /**
63
+ * 地址组id代表的地址集合。
64
+ */
65
+ AddressModule: string
66
+ /**
67
+ * 来源Ip或Ip段,例如192.168.0.0/16。
68
+ */
69
+ CidrIp: string
70
+ /**
71
+ * 描述。
72
+ */
73
+ Desc: string
74
+ /**
75
+ * 网络协议,支持udp、tcp等。
76
+ */
77
+ IpProtocol: string
78
+ /**
79
+ * 端口。
80
+ */
81
+ PortRange: string
82
+ /**
83
+ * 服务组id代表的协议和端口集合。
84
+ */
85
+ ServiceModule: string
86
+ /**
87
+ * 安全组id代表的地址集合。
88
+ */
89
+ Id: string
90
+ }
91
+
92
+ /**
93
+ * DescribeDBSecurityGroups请求参数结构体
94
+ */
95
+ export interface DescribeDBSecurityGroupsRequest {
96
+ /**
97
+ * 实例ID,格式如:vdb-c1nl9***。
98
+ */
99
+ InstanceId: string
100
+ }
101
+
18
102
  /**
19
103
  * DescribeInstances请求参数结构体
20
104
  */
@@ -73,6 +157,185 @@ export interface DescribeInstancesRequest {
73
157
  ResourceTags?: Array<Tag>
74
158
  }
75
159
 
160
+ /**
161
+ * AssociateSecurityGroups请求参数结构体
162
+ */
163
+ export interface AssociateSecurityGroupsRequest {
164
+ /**
165
+ * 要绑定的安全组 ID,类似sg-efil7***。
166
+ */
167
+ SecurityGroupIds: Array<string>
168
+ /**
169
+ * 实例 ID,格式如:vdb-c1nl9***,支持指定多个实例
170
+ */
171
+ InstanceIds: Array<string>
172
+ }
173
+
174
+ /**
175
+ * DisassociateSecurityGroups请求参数结构体
176
+ */
177
+ export interface DisassociateSecurityGroupsRequest {
178
+ /**
179
+ * 要绑定的安全组 ID,类似sg-efil****。
180
+ */
181
+ SecurityGroupIds: string
182
+ /**
183
+ * 实例 ID,格式如:vdb-c1nl****,支持指定多个实例。
184
+ */
185
+ InstanceIds: Array<string>
186
+ }
187
+
188
+ /**
189
+ * DescribeInstanceNodes返回参数结构体
190
+ */
191
+ export interface DescribeInstanceNodesResponse {
192
+ /**
193
+ * 实例pod列表。
194
+ 注意:此字段可能返回 null,表示取不到有效值。
195
+ */
196
+ Items?: Array<NodeInfo>
197
+ /**
198
+ * 查询结果总数量。
199
+ */
200
+ TotalCount?: number
201
+ /**
202
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
203
+ */
204
+ RequestId?: string
205
+ }
206
+
207
+ /**
208
+ * 安全组规则
209
+ */
210
+ export interface SecurityGroup {
211
+ /**
212
+ * 创建时间,时间格式:yyyy-mm-dd hh:mm:ss。
213
+ */
214
+ CreateTime?: string
215
+ /**
216
+ * 项目ID。
217
+ */
218
+ ProjectId?: string
219
+ /**
220
+ * 安全组ID。
221
+ */
222
+ SecurityGroupId?: string
223
+ /**
224
+ * 安全组名称。
225
+ */
226
+ SecurityGroupName?: string
227
+ /**
228
+ * 安全组备注。
229
+ */
230
+ SecurityGroupRemark?: string
231
+ /**
232
+ * 出站规则。
233
+ */
234
+ Outbound?: Array<Outbound>
235
+ /**
236
+ * 入站规则。
237
+ */
238
+ Inbound?: Array<Inbound>
239
+ /**
240
+ * 修改时间,时间格式:yyyy-mm-dd hh:mm:ss。
241
+ */
242
+ UpdateTime?: string
243
+ }
244
+
245
+ /**
246
+ * ModifyDBInstanceSecurityGroups返回参数结构体
247
+ */
248
+ export interface ModifyDBInstanceSecurityGroupsResponse {
249
+ /**
250
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
251
+ */
252
+ RequestId?: string
253
+ }
254
+
255
+ /**
256
+ * 安全组入站规则
257
+ */
258
+ export interface Inbound {
259
+ /**
260
+ * 策略,ACCEPT或者DROP。
261
+ */
262
+ Action: string
263
+ /**
264
+ * 地址组id代表的地址集合。
265
+ */
266
+ AddressModule: string
267
+ /**
268
+ * 来源Ip或Ip段,例如192.168.0.0/16。
269
+ */
270
+ CidrIp: string
271
+ /**
272
+ * 描述。
273
+ */
274
+ Desc: string
275
+ /**
276
+ * 网络协议,支持udp、tcp等。
277
+ */
278
+ IpProtocol: string
279
+ /**
280
+ * 端口。
281
+ */
282
+ PortRange: string
283
+ /**
284
+ * 服务组id代表的协议和端口集合。
285
+ */
286
+ ServiceModule: string
287
+ /**
288
+ * 安全组id代表的地址集合。
289
+ */
290
+ Id: string
291
+ }
292
+
293
+ /**
294
+ * 标签键值对
295
+ */
296
+ export interface Tag {
297
+ /**
298
+ * 标签键
299
+ 注意:此字段可能返回 null,表示取不到有效值。
300
+ */
301
+ TagKey: string
302
+ /**
303
+ * 标签值
304
+ 注意:此字段可能返回 null,表示取不到有效值。
305
+ */
306
+ TagValue: string
307
+ }
308
+
309
+ /**
310
+ * DescribeDBSecurityGroups返回参数结构体
311
+ */
312
+ export interface DescribeDBSecurityGroupsResponse {
313
+ /**
314
+ * 安全组规则。
315
+ 注意:此字段可能返回 null,表示取不到有效值。
316
+ */
317
+ Groups?: Array<SecurityGroup>
318
+ /**
319
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
320
+ */
321
+ RequestId?: string
322
+ }
323
+
324
+ /**
325
+ * DisassociateSecurityGroups返回参数结构体
326
+ */
327
+ export interface DisassociateSecurityGroupsResponse {
328
+ /**
329
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
330
+ */
331
+ RequestId?: string
332
+ }
333
+
334
+ /**
335
+ * DescribeInstanceNodes请求参数结构体
336
+ */
337
+ export type DescribeInstanceNodesRequest = null
338
+
76
339
  /**
77
340
  * 实例信息,用于实例列表
78
341
  */
@@ -215,19 +478,14 @@ export interface InstanceInfo {
215
478
  }
216
479
 
217
480
  /**
218
- * 标签键值对
481
+ * 实例pod信息,仅包含 pod 名称
219
482
  */
220
- export interface Tag {
483
+ export interface NodeInfo {
221
484
  /**
222
- * 标签键
485
+ * Pod名称。
223
486
  注意:此字段可能返回 null,表示取不到有效值。
224
487
  */
225
- TagKey: string
226
- /**
227
- * 标签值
228
- 注意:此字段可能返回 null,表示取不到有效值。
229
- */
230
- TagValue: string
488
+ Name?: string
231
489
  }
232
490
 
233
491
  /**
@@ -250,27 +508,15 @@ export interface DescribeInstancesResponse {
250
508
  }
251
509
 
252
510
  /**
253
- * 网络信息
511
+ * ModifyDBInstanceSecurityGroups请求参数结构体
254
512
  */
255
- export interface Network {
513
+ export interface ModifyDBInstanceSecurityGroupsRequest {
256
514
  /**
257
- * VpcId(VPC网络下有效)
258
- 注意:此字段可能返回 null,表示取不到有效值。
515
+ * 要修改的安全组ID列表,一个或者多个安全组 ID 组成的数组。
259
516
  */
260
- VpcId?: string
517
+ SecurityGroupIds: Array<string>
261
518
  /**
262
- * 子网Id(VPC网络下有效)。
263
- 注意:此字段可能返回 null,表示取不到有效值。
264
- */
265
- SubnetId?: string
266
- /**
267
- * 内网访问IP。
268
- 注意:此字段可能返回 null,表示取不到有效值。
519
+ * 实例ID,格式如:vdb-c9s3****。
269
520
  */
270
- Vip?: string
271
- /**
272
- * 内网访问Port。
273
- 注意:此字段可能返回 null,表示取不到有效值。
274
- */
275
- Port?: number
521
+ InstanceIds: Array<string>
276
522
  }
@@ -1,5 +1,7 @@
1
1
  import { v20180717 } from "./v20180717"
2
+ import { v20240718 } from "./v20240718"
2
3
 
3
4
  export const vod = {
4
5
  v20180717: v20180717,
6
+ v20240718: v20240718,
5
7
  }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./vod_models"
2
+ import { Client } from "./vod_client"
3
+ export const v20240718 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1,44 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import {
21
+ Credentials,
22
+ CreateStorageCredentialsRequest,
23
+ CreateStorageCredentialsResponse,
24
+ } from "./vod_models"
25
+
26
+ /**
27
+ * vod client
28
+ * @class
29
+ */
30
+ export class Client extends AbstractClient {
31
+ constructor(clientConfig: ClientConfig) {
32
+ super("vod.tencentcloudapi.com", "2024-07-18", clientConfig)
33
+ }
34
+
35
+ /**
36
+ * 用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
37
+ */
38
+ async CreateStorageCredentials(
39
+ req: CreateStorageCredentialsRequest,
40
+ cb?: (error: string, rep: CreateStorageCredentialsResponse) => void
41
+ ): Promise<CreateStorageCredentialsResponse> {
42
+ return this.request("CreateStorageCredentials", req, cb)
43
+ }
44
+ }
@@ -0,0 +1,76 @@
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
+ * 临时证书。
20
+ */
21
+ export interface Credentials {
22
+ /**
23
+ * 秘钥 ID。
24
+ */
25
+ AccessKeyId?: string
26
+ /**
27
+ * 秘钥 Key。
28
+ */
29
+ SecretAccessKey?: string
30
+ /**
31
+ * token。token长度和绑定的策略有关,最长不超过4096字节。
32
+ */
33
+ SessionToken?: string
34
+ /**
35
+ * 凭据的过期时间。
36
+ */
37
+ Expiration?: string
38
+ }
39
+
40
+ /**
41
+ * CreateStorageCredentials请求参数结构体
42
+ */
43
+ export interface CreateStorageCredentialsRequest {
44
+ /**
45
+ * <b>点播[应用](/document/product/266/14574) ID。</b>
46
+ */
47
+ SubAppId: number
48
+ /**
49
+ * 按照下方语法组装好策略后,先序列化为字符串,再做 urlencode,结果作为 Policy 字段入参。服务端会对该字段做 urldecode,并按解析后的策略授予临时访问凭证权限,请按规范传入参数。
50
+ 注意:
51
+ 1.策略语法参照[访问管理策略](/document/product/598/10603)。
52
+ 2.策略中不能包含 principal 元素。
53
+ 3.策略的 action 元素仅支持:<li>name/vod:PutObject;</li><li>name/vod:ListParts;</li><li>name/vod:PostObject;</li><li>name/vod:InitiateMultipartUpload;</li><li>name/vod:UploadPart;</li><li>name/vod:CompleteMultipartUpload;</li><li>name/vod:AbortMultipartUpload;</li><li>name/vod:ListMultipartUploads;</li>4.策略的 resource 元素填写格式为:qcs::vod::uid/[账号AppID]:prefix//[子应用ID]/[存储桶ID]/[存储路径],其中账号AppID、子应用ID、存储桶ID和存储路径要按需填写,其他内容不允许改动,例:qcs::vod::uid/1:prefix//1/1/path。
54
+
55
+ */
56
+ Policy: string
57
+ /**
58
+ * 指定临时证书的有效期,单位:秒。
59
+ 默认 1800 秒,最大 129600 秒。
60
+ */
61
+ DurationSeconds?: number
62
+ }
63
+
64
+ /**
65
+ * CreateStorageCredentials返回参数结构体
66
+ */
67
+ export interface CreateStorageCredentialsResponse {
68
+ /**
69
+ * 临时访问凭证。
70
+ */
71
+ Credentials?: Credentials
72
+ /**
73
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
74
+ */
75
+ RequestId?: string
76
+ }