1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package v20180411
16
17import (
18    "encoding/json"
19    tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
20    tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
21)
22
23type AddShardConfig struct {
24
25	// 新增分片的数量
26	ShardCount *int64 `json:"ShardCount,omitempty" name:"ShardCount"`
27
28	// 分片内存大小,单位 GB
29	ShardMemory *int64 `json:"ShardMemory,omitempty" name:"ShardMemory"`
30
31	// 分片存储大小,单位 GB
32	ShardStorage *int64 `json:"ShardStorage,omitempty" name:"ShardStorage"`
33}
34
35type AssociateSecurityGroupsRequest struct {
36	*tchttp.BaseRequest
37
38	// 数据库引擎名称,本接口取值:dcdb。
39	Product *string `json:"Product,omitempty" name:"Product"`
40
41	// 要绑定的安全组ID,类似sg-efil73jd。
42	SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"`
43
44	// 被绑定的实例ID,类似tdsqlshard-lesecurk,支持指定多个实例。
45	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
46}
47
48func (r *AssociateSecurityGroupsRequest) ToJsonString() string {
49    b, _ := json.Marshal(r)
50    return string(b)
51}
52
53// FromJsonString It is highly **NOT** recommended to use this function
54// because it has no param check, nor strict type check
55func (r *AssociateSecurityGroupsRequest) FromJsonString(s string) error {
56	f := make(map[string]interface{})
57	if err := json.Unmarshal([]byte(s), &f); err != nil {
58		return err
59	}
60	delete(f, "Product")
61	delete(f, "SecurityGroupId")
62	delete(f, "InstanceIds")
63	if len(f) > 0 {
64		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AssociateSecurityGroupsRequest has unknown keys!", "")
65	}
66	return json.Unmarshal([]byte(s), &r)
67}
68
69type AssociateSecurityGroupsResponse struct {
70	*tchttp.BaseResponse
71	Response *struct {
72
73		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
74		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
75	} `json:"Response"`
76}
77
78func (r *AssociateSecurityGroupsResponse) ToJsonString() string {
79    b, _ := json.Marshal(r)
80    return string(b)
81}
82
83// FromJsonString It is highly **NOT** recommended to use this function
84// because it has no param check, nor strict type check
85func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error {
86	return json.Unmarshal([]byte(s), &r)
87}
88
89type BriefNodeInfo struct {
90
91	// DB节点ID
92	NodeId *string `json:"NodeId,omitempty" name:"NodeId"`
93
94	// DB节点角色,取值为master或者slave
95	Role *string `json:"Role,omitempty" name:"Role"`
96
97	// 节点所属分片的分片ID
98	ShardId *string `json:"ShardId,omitempty" name:"ShardId"`
99}
100
101type CancelDcnJobRequest struct {
102	*tchttp.BaseRequest
103
104	// 灾备实例ID
105	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
106}
107
108func (r *CancelDcnJobRequest) ToJsonString() string {
109    b, _ := json.Marshal(r)
110    return string(b)
111}
112
113// FromJsonString It is highly **NOT** recommended to use this function
114// because it has no param check, nor strict type check
115func (r *CancelDcnJobRequest) FromJsonString(s string) error {
116	f := make(map[string]interface{})
117	if err := json.Unmarshal([]byte(s), &f); err != nil {
118		return err
119	}
120	delete(f, "InstanceId")
121	if len(f) > 0 {
122		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CancelDcnJobRequest has unknown keys!", "")
123	}
124	return json.Unmarshal([]byte(s), &r)
125}
126
127type CancelDcnJobResponse struct {
128	*tchttp.BaseResponse
129	Response *struct {
130
131		// 流程ID
132		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
133
134		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
135		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
136	} `json:"Response"`
137}
138
139func (r *CancelDcnJobResponse) ToJsonString() string {
140    b, _ := json.Marshal(r)
141    return string(b)
142}
143
144// FromJsonString It is highly **NOT** recommended to use this function
145// because it has no param check, nor strict type check
146func (r *CancelDcnJobResponse) FromJsonString(s string) error {
147	return json.Unmarshal([]byte(s), &r)
148}
149
150type CloneAccountRequest struct {
151	*tchttp.BaseRequest
152
153	// 实例ID
154	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
155
156	// 源用户账户名
157	SrcUser *string `json:"SrcUser,omitempty" name:"SrcUser"`
158
159	// 源用户HOST
160	SrcHost *string `json:"SrcHost,omitempty" name:"SrcHost"`
161
162	// 目的用户账户名
163	DstUser *string `json:"DstUser,omitempty" name:"DstUser"`
164
165	// 目的用户HOST
166	DstHost *string `json:"DstHost,omitempty" name:"DstHost"`
167
168	// 目的用户账户描述
169	DstDesc *string `json:"DstDesc,omitempty" name:"DstDesc"`
170}
171
172func (r *CloneAccountRequest) ToJsonString() string {
173    b, _ := json.Marshal(r)
174    return string(b)
175}
176
177// FromJsonString It is highly **NOT** recommended to use this function
178// because it has no param check, nor strict type check
179func (r *CloneAccountRequest) FromJsonString(s string) error {
180	f := make(map[string]interface{})
181	if err := json.Unmarshal([]byte(s), &f); err != nil {
182		return err
183	}
184	delete(f, "InstanceId")
185	delete(f, "SrcUser")
186	delete(f, "SrcHost")
187	delete(f, "DstUser")
188	delete(f, "DstHost")
189	delete(f, "DstDesc")
190	if len(f) > 0 {
191		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CloneAccountRequest has unknown keys!", "")
192	}
193	return json.Unmarshal([]byte(s), &r)
194}
195
196type CloneAccountResponse struct {
197	*tchttp.BaseResponse
198	Response *struct {
199
200		// 异步任务流程ID
201		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
202
203		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
204		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
205	} `json:"Response"`
206}
207
208func (r *CloneAccountResponse) ToJsonString() string {
209    b, _ := json.Marshal(r)
210    return string(b)
211}
212
213// FromJsonString It is highly **NOT** recommended to use this function
214// because it has no param check, nor strict type check
215func (r *CloneAccountResponse) FromJsonString(s string) error {
216	return json.Unmarshal([]byte(s), &r)
217}
218
219type CloseDBExtranetAccessRequest struct {
220	*tchttp.BaseRequest
221
222	// 待关闭外网访问的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
223	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
224
225	// 是否IPv6,默认0
226	Ipv6Flag *int64 `json:"Ipv6Flag,omitempty" name:"Ipv6Flag"`
227}
228
229func (r *CloseDBExtranetAccessRequest) ToJsonString() string {
230    b, _ := json.Marshal(r)
231    return string(b)
232}
233
234// FromJsonString It is highly **NOT** recommended to use this function
235// because it has no param check, nor strict type check
236func (r *CloseDBExtranetAccessRequest) FromJsonString(s string) error {
237	f := make(map[string]interface{})
238	if err := json.Unmarshal([]byte(s), &f); err != nil {
239		return err
240	}
241	delete(f, "InstanceId")
242	delete(f, "Ipv6Flag")
243	if len(f) > 0 {
244		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CloseDBExtranetAccessRequest has unknown keys!", "")
245	}
246	return json.Unmarshal([]byte(s), &r)
247}
248
249type CloseDBExtranetAccessResponse struct {
250	*tchttp.BaseResponse
251	Response *struct {
252
253		// 异步任务ID,可通过 DescribeFlow 查询任务状态。
254		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
255
256		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
257		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
258	} `json:"Response"`
259}
260
261func (r *CloseDBExtranetAccessResponse) ToJsonString() string {
262    b, _ := json.Marshal(r)
263    return string(b)
264}
265
266// FromJsonString It is highly **NOT** recommended to use this function
267// because it has no param check, nor strict type check
268func (r *CloseDBExtranetAccessResponse) FromJsonString(s string) error {
269	return json.Unmarshal([]byte(s), &r)
270}
271
272type ConstraintRange struct {
273
274	// 约束类型为section时的最小值
275	Min *string `json:"Min,omitempty" name:"Min"`
276
277	// 约束类型为section时的最大值
278	Max *string `json:"Max,omitempty" name:"Max"`
279}
280
281type CopyAccountPrivilegesRequest struct {
282	*tchttp.BaseRequest
283
284	// 实例 ID,形如:dcdbt-ow728lmc。
285	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
286
287	// 源用户名
288	SrcUserName *string `json:"SrcUserName,omitempty" name:"SrcUserName"`
289
290	// 源用户允许的访问 host
291	SrcHost *string `json:"SrcHost,omitempty" name:"SrcHost"`
292
293	// 目的用户名
294	DstUserName *string `json:"DstUserName,omitempty" name:"DstUserName"`
295
296	// 目的用户允许的访问 host
297	DstHost *string `json:"DstHost,omitempty" name:"DstHost"`
298
299	// 源账号的 ReadOnly 属性
300	SrcReadOnly *string `json:"SrcReadOnly,omitempty" name:"SrcReadOnly"`
301
302	// 目的账号的 ReadOnly 属性
303	DstReadOnly *string `json:"DstReadOnly,omitempty" name:"DstReadOnly"`
304}
305
306func (r *CopyAccountPrivilegesRequest) ToJsonString() string {
307    b, _ := json.Marshal(r)
308    return string(b)
309}
310
311// FromJsonString It is highly **NOT** recommended to use this function
312// because it has no param check, nor strict type check
313func (r *CopyAccountPrivilegesRequest) FromJsonString(s string) error {
314	f := make(map[string]interface{})
315	if err := json.Unmarshal([]byte(s), &f); err != nil {
316		return err
317	}
318	delete(f, "InstanceId")
319	delete(f, "SrcUserName")
320	delete(f, "SrcHost")
321	delete(f, "DstUserName")
322	delete(f, "DstHost")
323	delete(f, "SrcReadOnly")
324	delete(f, "DstReadOnly")
325	if len(f) > 0 {
326		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CopyAccountPrivilegesRequest has unknown keys!", "")
327	}
328	return json.Unmarshal([]byte(s), &r)
329}
330
331type CopyAccountPrivilegesResponse struct {
332	*tchttp.BaseResponse
333	Response *struct {
334
335		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
336		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
337	} `json:"Response"`
338}
339
340func (r *CopyAccountPrivilegesResponse) ToJsonString() string {
341    b, _ := json.Marshal(r)
342    return string(b)
343}
344
345// FromJsonString It is highly **NOT** recommended to use this function
346// because it has no param check, nor strict type check
347func (r *CopyAccountPrivilegesResponse) FromJsonString(s string) error {
348	return json.Unmarshal([]byte(s), &r)
349}
350
351type CreateAccountRequest struct {
352	*tchttp.BaseRequest
353
354	// 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
355	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
356
357	// AccountName
358	UserName *string `json:"UserName,omitempty" name:"UserName"`
359
360	// 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。
361	Host *string `json:"Host,omitempty" name:"Host"`
362
363	// 账号密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。
364	Password *string `json:"Password,omitempty" name:"Password"`
365
366	// 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。
367	ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"`
368
369	// 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符
370	Description *string `json:"Description,omitempty" name:"Description"`
371
372	// 如果备机延迟超过本参数设置值,系统将认为备机发生故障
373	// 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
374	DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"`
375}
376
377func (r *CreateAccountRequest) ToJsonString() string {
378    b, _ := json.Marshal(r)
379    return string(b)
380}
381
382// FromJsonString It is highly **NOT** recommended to use this function
383// because it has no param check, nor strict type check
384func (r *CreateAccountRequest) FromJsonString(s string) error {
385	f := make(map[string]interface{})
386	if err := json.Unmarshal([]byte(s), &f); err != nil {
387		return err
388	}
389	delete(f, "InstanceId")
390	delete(f, "UserName")
391	delete(f, "Host")
392	delete(f, "Password")
393	delete(f, "ReadOnly")
394	delete(f, "Description")
395	delete(f, "DelayThresh")
396	if len(f) > 0 {
397		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAccountRequest has unknown keys!", "")
398	}
399	return json.Unmarshal([]byte(s), &r)
400}
401
402type CreateAccountResponse struct {
403	*tchttp.BaseResponse
404	Response *struct {
405
406		// 实例ID,透传入参。
407		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
408
409		// 用户名,透传入参。
410		UserName *string `json:"UserName,omitempty" name:"UserName"`
411
412		// 允许访问的 host,透传入参。
413		Host *string `json:"Host,omitempty" name:"Host"`
414
415		// 透传入参。
416		ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"`
417
418		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
419		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
420	} `json:"Response"`
421}
422
423func (r *CreateAccountResponse) ToJsonString() string {
424    b, _ := json.Marshal(r)
425    return string(b)
426}
427
428// FromJsonString It is highly **NOT** recommended to use this function
429// because it has no param check, nor strict type check
430func (r *CreateAccountResponse) FromJsonString(s string) error {
431	return json.Unmarshal([]byte(s), &r)
432}
433
434type CreateDCDBInstanceRequest struct {
435	*tchttp.BaseRequest
436
437	// 分片节点可用区分布,最多可填两个可用区。当分片规格为一主两从时,其中两个节点在第一个可用区。
438	// 注意当前可售卖的可用区需要通过DescribeDCDBSaleInfo接口拉取。
439	Zones []*string `json:"Zones,omitempty" name:"Zones"`
440
441	// 欲购买的时长,单位:月。
442	Period *int64 `json:"Period,omitempty" name:"Period"`
443
444	// 分片内存大小,单位:GB,可以通过 DescribeShardSpec
445	//  查询实例规格获得。
446	ShardMemory *int64 `json:"ShardMemory,omitempty" name:"ShardMemory"`
447
448	// 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec
449	//  查询实例规格获得。
450	ShardStorage *int64 `json:"ShardStorage,omitempty" name:"ShardStorage"`
451
452	// 单个分片节点个数,可以通过 DescribeShardSpec
453	//  查询实例规格获得。
454	ShardNodeCount *int64 `json:"ShardNodeCount,omitempty" name:"ShardNodeCount"`
455
456	// 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。
457	ShardCount *int64 `json:"ShardCount,omitempty" name:"ShardCount"`
458
459	// 欲购买实例的数量
460	Count *int64 `json:"Count,omitempty" name:"Count"`
461
462	// 项目 ID,可以通过查看项目列表获取,不传则关联到默认项目
463	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
464
465	// 虚拟私有网络 ID,不传或传空表示创建为基础网络
466	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
467
468	// 虚拟私有网络子网 ID,VpcId不为空时必填
469	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
470
471	// 数据库引擎版本,当前可选:8.0.18,10.1.9,5.7.17。
472	// 8.0.18 - MySQL 8.0.18;
473	// 10.1.9 - Mariadb 10.1.9;
474	// 5.7.17 - Percona 5.7.17。
475	// 如果不填的话,默认为5.7.17,表示Percona 5.7.17。
476	DbVersionId *string `json:"DbVersionId,omitempty" name:"DbVersionId"`
477
478	// 是否自动使用代金券进行支付,默认不使用。
479	AutoVoucher *bool `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
480
481	// 代金券ID列表,目前仅支持指定一张代金券。
482	VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"`
483
484	// 安全组id
485	SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"`
486
487	// 实例名称, 可以通过该字段自主的设置实例的名字
488	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
489
490	// 是否支持IPv6
491	Ipv6Flag *int64 `json:"Ipv6Flag,omitempty" name:"Ipv6Flag"`
492
493	// 标签键值对数组
494	ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags"`
495
496	// 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。
497	InitParams []*DBParamValue `json:"InitParams,omitempty" name:"InitParams"`
498
499	// DCN源地域
500	DcnRegion *string `json:"DcnRegion,omitempty" name:"DcnRegion"`
501
502	// DCN源实例ID
503	DcnInstanceId *string `json:"DcnInstanceId,omitempty" name:"DcnInstanceId"`
504}
505
506func (r *CreateDCDBInstanceRequest) ToJsonString() string {
507    b, _ := json.Marshal(r)
508    return string(b)
509}
510
511// FromJsonString It is highly **NOT** recommended to use this function
512// because it has no param check, nor strict type check
513func (r *CreateDCDBInstanceRequest) FromJsonString(s string) error {
514	f := make(map[string]interface{})
515	if err := json.Unmarshal([]byte(s), &f); err != nil {
516		return err
517	}
518	delete(f, "Zones")
519	delete(f, "Period")
520	delete(f, "ShardMemory")
521	delete(f, "ShardStorage")
522	delete(f, "ShardNodeCount")
523	delete(f, "ShardCount")
524	delete(f, "Count")
525	delete(f, "ProjectId")
526	delete(f, "VpcId")
527	delete(f, "SubnetId")
528	delete(f, "DbVersionId")
529	delete(f, "AutoVoucher")
530	delete(f, "VoucherIds")
531	delete(f, "SecurityGroupId")
532	delete(f, "InstanceName")
533	delete(f, "Ipv6Flag")
534	delete(f, "ResourceTags")
535	delete(f, "InitParams")
536	delete(f, "DcnRegion")
537	delete(f, "DcnInstanceId")
538	if len(f) > 0 {
539		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDCDBInstanceRequest has unknown keys!", "")
540	}
541	return json.Unmarshal([]byte(s), &r)
542}
543
544type CreateDCDBInstanceResponse struct {
545	*tchttp.BaseResponse
546	Response *struct {
547
548		// 长订单号。可以据此调用 DescribeOrders
549	//  查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。
550		DealName *string `json:"DealName,omitempty" name:"DealName"`
551
552		// 订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。
553	// 注意:此字段可能返回 null,表示取不到有效值。
554		InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
555
556		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
557		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
558	} `json:"Response"`
559}
560
561func (r *CreateDCDBInstanceResponse) ToJsonString() string {
562    b, _ := json.Marshal(r)
563    return string(b)
564}
565
566// FromJsonString It is highly **NOT** recommended to use this function
567// because it has no param check, nor strict type check
568func (r *CreateDCDBInstanceResponse) FromJsonString(s string) error {
569	return json.Unmarshal([]byte(s), &r)
570}
571
572type DBAccount struct {
573
574	// 用户名
575	UserName *string `json:"UserName,omitempty" name:"UserName"`
576
577	// 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)
578	Host *string `json:"Host,omitempty" name:"Host"`
579
580	// 用户备注信息
581	Description *string `json:"Description,omitempty" name:"Description"`
582
583	// 创建时间
584	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
585
586	// 最后更新时间
587	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
588
589	// 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
590	ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"`
591
592	// 如果备机延迟超过本参数设置值,系统将认为备机发生故障
593	// 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
594	DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"`
595}
596
597type DBParamValue struct {
598
599	// 参数名称
600	Param *string `json:"Param,omitempty" name:"Param"`
601
602	// 参数值
603	Value *string `json:"Value,omitempty" name:"Value"`
604}
605
606type DCDBInstanceInfo struct {
607
608	// 实例ID
609	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
610
611	// 实例名称
612	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
613
614	// 应用ID
615	AppId *int64 `json:"AppId,omitempty" name:"AppId"`
616
617	// 项目ID
618	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
619
620	// 地域
621	Region *string `json:"Region,omitempty" name:"Region"`
622
623	// 可用区
624	Zone *string `json:"Zone,omitempty" name:"Zone"`
625
626	// VPC数字ID
627	VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"`
628
629	// Subnet数字ID
630	SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"`
631
632	// 状态中文描述
633	StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
634
635	// 实例状态:0 创建中,1 流程处理中, 2 运行中,3 实例未初始化,-1 实例已隔离,4 实例初始化中,5 实例删除中,6 实例重启中,7 数据迁移中
636	Status *int64 `json:"Status,omitempty" name:"Status"`
637
638	// 内网IP
639	Vip *string `json:"Vip,omitempty" name:"Vip"`
640
641	// 内网端口
642	Vport *int64 `json:"Vport,omitempty" name:"Vport"`
643
644	// 创建时间
645	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
646
647	// 自动续费标志
648	AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
649
650	// 内存大小,单位 GB
651	Memory *int64 `json:"Memory,omitempty" name:"Memory"`
652
653	// 存储大小,单位 GB
654	Storage *int64 `json:"Storage,omitempty" name:"Storage"`
655
656	// 分片个数
657	ShardCount *int64 `json:"ShardCount,omitempty" name:"ShardCount"`
658
659	// 到期时间
660	PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"`
661
662	// 隔离时间
663	IsolatedTimestamp *string `json:"IsolatedTimestamp,omitempty" name:"IsolatedTimestamp"`
664
665	// 账号ID
666	Uin *string `json:"Uin,omitempty" name:"Uin"`
667
668	// 分片详情
669	ShardDetail []*ShardInfo `json:"ShardDetail,omitempty" name:"ShardDetail"`
670
671	// 节点数,2 为一主一从, 3 为一主二从
672	NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"`
673
674	// 临时实例标记,0 为非临时实例
675	IsTmp *int64 `json:"IsTmp,omitempty" name:"IsTmp"`
676
677	// 独享集群ID,为空表示非独享集群实例
678	ExclusterId *string `json:"ExclusterId,omitempty" name:"ExclusterId"`
679
680	// 字符串型的私有网络ID
681	UniqueVpcId *string `json:"UniqueVpcId,omitempty" name:"UniqueVpcId"`
682
683	// 字符串型的私有网络子网ID
684	UniqueSubnetId *string `json:"UniqueSubnetId,omitempty" name:"UniqueSubnetId"`
685
686	// 数字实例ID(过时字段,请勿依赖该值)
687	Id *uint64 `json:"Id,omitempty" name:"Id"`
688
689	// 外网访问的域名,公网可解析
690	WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"`
691
692	// 外网 IP 地址,公网可访问
693	WanVip *string `json:"WanVip,omitempty" name:"WanVip"`
694
695	// 外网端口
696	WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"`
697
698	// 产品类型 ID(过时字段,请勿依赖该值)
699	Pid *int64 `json:"Pid,omitempty" name:"Pid"`
700
701	// 实例最后更新时间,格式为 2006-01-02 15:04:05
702	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
703
704	// 数据库引擎
705	DbEngine *string `json:"DbEngine,omitempty" name:"DbEngine"`
706
707	// 数据库引擎版本
708	DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"`
709
710	// 付费模式
711	Paymode *string `json:"Paymode,omitempty" name:"Paymode"`
712
713	// 实例处于异步任务状态时,表示异步任务流程ID
714	// 注意:此字段可能返回 null,表示取不到有效值。
715	Locker *int64 `json:"Locker,omitempty" name:"Locker"`
716
717	// 外网状态,0-未开通;1-已开通;2-关闭;3-开通中
718	WanStatus *int64 `json:"WanStatus,omitempty" name:"WanStatus"`
719
720	// 该实例是否支持审计。1-支持;0-不支持
721	IsAuditSupported *uint64 `json:"IsAuditSupported,omitempty" name:"IsAuditSupported"`
722
723	// Cpu核数
724	Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"`
725
726	// 实例IPv6标志
727	// 注意:此字段可能返回 null,表示取不到有效值。
728	Ipv6Flag *uint64 `json:"Ipv6Flag,omitempty" name:"Ipv6Flag"`
729
730	// 内网IPv6
731	// 注意:此字段可能返回 null,表示取不到有效值。
732	Vipv6 *string `json:"Vipv6,omitempty" name:"Vipv6"`
733
734	// 外网IPv6
735	// 注意:此字段可能返回 null,表示取不到有效值。
736	WanVipv6 *string `json:"WanVipv6,omitempty" name:"WanVipv6"`
737
738	// 外网IPv6端口
739	// 注意:此字段可能返回 null,表示取不到有效值。
740	WanPortIpv6 *uint64 `json:"WanPortIpv6,omitempty" name:"WanPortIpv6"`
741
742	// 外网IPv6状态
743	// 注意:此字段可能返回 null,表示取不到有效值。
744	WanStatusIpv6 *uint64 `json:"WanStatusIpv6,omitempty" name:"WanStatusIpv6"`
745
746	// DCN标志,0-无,1-主实例,2-灾备实例
747	// 注意:此字段可能返回 null,表示取不到有效值。
748	DcnFlag *int64 `json:"DcnFlag,omitempty" name:"DcnFlag"`
749
750	// DCN状态,0-无,1-创建中,2-同步中,3-已断开
751	// 注意:此字段可能返回 null,表示取不到有效值。
752	DcnStatus *int64 `json:"DcnStatus,omitempty" name:"DcnStatus"`
753
754	// DCN灾备实例数
755	// 注意:此字段可能返回 null,表示取不到有效值。
756	DcnDstNum *int64 `json:"DcnDstNum,omitempty" name:"DcnDstNum"`
757
758	// 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)
759	// 注意:此字段可能返回 null,表示取不到有效值。
760	InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"`
761}
762
763type DCDBShardInfo struct {
764
765	// 所属实例Id
766	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
767
768	// 分片SQL透传Id,用于将sql透传到指定分片执行
769	ShardSerialId *string `json:"ShardSerialId,omitempty" name:"ShardSerialId"`
770
771	// 全局唯一的分片Id
772	ShardInstanceId *string `json:"ShardInstanceId,omitempty" name:"ShardInstanceId"`
773
774	// 状态:0 创建中,1 流程处理中, 2 运行中,3 分片未初始化
775	Status *int64 `json:"Status,omitempty" name:"Status"`
776
777	// 状态中文描述
778	StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
779
780	// 创建时间
781	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
782
783	// 字符串格式的私有网络Id
784	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
785
786	// 字符串格式的私有网络子网Id
787	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
788
789	// 项目ID
790	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
791
792	// 地域
793	Region *string `json:"Region,omitempty" name:"Region"`
794
795	// 可用区
796	Zone *string `json:"Zone,omitempty" name:"Zone"`
797
798	// 内存大小,单位 GB
799	Memory *int64 `json:"Memory,omitempty" name:"Memory"`
800
801	// 存储大小,单位 GB
802	Storage *int64 `json:"Storage,omitempty" name:"Storage"`
803
804	// 到期时间
805	PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"`
806
807	// 节点数,2 为一主一从, 3 为一主二从
808	NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"`
809
810	// 存储使用率,单位为 %
811	StorageUsage *float64 `json:"StorageUsage,omitempty" name:"StorageUsage"`
812
813	// 内存使用率,单位为 %
814	MemoryUsage *float64 `json:"MemoryUsage,omitempty" name:"MemoryUsage"`
815
816	// 数字分片Id(过时字段,请勿依赖该值)
817	ShardId *int64 `json:"ShardId,omitempty" name:"ShardId"`
818
819	// 产品ProductID
820	Pid *int64 `json:"Pid,omitempty" name:"Pid"`
821
822	// Proxy版本
823	ProxyVersion *string `json:"ProxyVersion,omitempty" name:"ProxyVersion"`
824
825	// 付费模型
826	// 注意:此字段可能返回 null,表示取不到有效值。
827	Paymode *string `json:"Paymode,omitempty" name:"Paymode"`
828
829	// 分片的主可用区
830	// 注意:此字段可能返回 null,表示取不到有效值。
831	ShardMasterZone *string `json:"ShardMasterZone,omitempty" name:"ShardMasterZone"`
832
833	// 分片的从可用区列表
834	// 注意:此字段可能返回 null,表示取不到有效值。
835	ShardSlaveZones []*string `json:"ShardSlaveZones,omitempty" name:"ShardSlaveZones"`
836
837	// CPU核数
838	Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
839
840	// 分片ShardKey的范围(总共64个哈希值),例如: 0-31,32-63
841	Range *string `json:"Range,omitempty" name:"Range"`
842}
843
844type Database struct {
845
846	// 数据库名称
847	DbName *string `json:"DbName,omitempty" name:"DbName"`
848}
849
850type DatabaseFunction struct {
851
852	// 函数名称
853	Func *string `json:"Func,omitempty" name:"Func"`
854}
855
856type DatabaseProcedure struct {
857
858	// 存储过程名称
859	Proc *string `json:"Proc,omitempty" name:"Proc"`
860}
861
862type DatabaseTable struct {
863
864	// 表名
865	Table *string `json:"Table,omitempty" name:"Table"`
866}
867
868type DatabaseView struct {
869
870	// 视图名称
871	View *string `json:"View,omitempty" name:"View"`
872}
873
874type DcnDetailItem struct {
875
876	// 实例ID
877	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
878
879	// 实例名称
880	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
881
882	// 实例地域
883	Region *string `json:"Region,omitempty" name:"Region"`
884
885	// 实例可用区
886	Zone *string `json:"Zone,omitempty" name:"Zone"`
887
888	// 实例IP地址
889	Vip *string `json:"Vip,omitempty" name:"Vip"`
890
891	// 实例IPv6地址
892	Vipv6 *string `json:"Vipv6,omitempty" name:"Vipv6"`
893
894	// 实例端口
895	Vport *int64 `json:"Vport,omitempty" name:"Vport"`
896
897	// 实例状态
898	Status *int64 `json:"Status,omitempty" name:"Status"`
899
900	// 实例状态描述
901	StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
902
903	// 实例DCN标志,1-主,2-备
904	DcnFlag *int64 `json:"DcnFlag,omitempty" name:"DcnFlag"`
905
906	// 实例DCN状态,0-无,1-创建中,2-同步中,3-已断开
907	DcnStatus *int64 `json:"DcnStatus,omitempty" name:"DcnStatus"`
908
909	// 实例CPU核数
910	Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
911
912	// 实例内存大小,单位 GB
913	Memory *int64 `json:"Memory,omitempty" name:"Memory"`
914
915	// 实例存储大小,单位 GB
916	Storage *int64 `json:"Storage,omitempty" name:"Storage"`
917
918	// 付费模式
919	PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
920
921	// 实例创建时间,格式为 2006-01-02 15:04:05
922	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
923
924	// 实例到期时间,格式为 2006-01-02 15:04:05
925	PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"`
926
927	// 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)
928	InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"`
929}
930
931type Deal struct {
932
933	// 订单号
934	DealName *string `json:"DealName,omitempty" name:"DealName"`
935
936	// 所属账号
937	OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"`
938
939	// 商品数量
940	Count *int64 `json:"Count,omitempty" name:"Count"`
941
942	// 关联的流程 Id,可用于查询流程执行状态
943	FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
944
945	// 只有创建实例的订单会填充该字段,表示该订单创建的实例的 ID。
946	// 注意:此字段可能返回 null,表示取不到有效值。
947	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
948
949	// 付费模式,0后付费/1预付费
950	PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
951}
952
953type DeleteAccountRequest struct {
954	*tchttp.BaseRequest
955
956	// 实例ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
957	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
958
959	// 用户名
960	UserName *string `json:"UserName,omitempty" name:"UserName"`
961
962	// 用户允许的访问 host
963	Host *string `json:"Host,omitempty" name:"Host"`
964}
965
966func (r *DeleteAccountRequest) ToJsonString() string {
967    b, _ := json.Marshal(r)
968    return string(b)
969}
970
971// FromJsonString It is highly **NOT** recommended to use this function
972// because it has no param check, nor strict type check
973func (r *DeleteAccountRequest) FromJsonString(s string) error {
974	f := make(map[string]interface{})
975	if err := json.Unmarshal([]byte(s), &f); err != nil {
976		return err
977	}
978	delete(f, "InstanceId")
979	delete(f, "UserName")
980	delete(f, "Host")
981	if len(f) > 0 {
982		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAccountRequest has unknown keys!", "")
983	}
984	return json.Unmarshal([]byte(s), &r)
985}
986
987type DeleteAccountResponse struct {
988	*tchttp.BaseResponse
989	Response *struct {
990
991		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
992		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
993	} `json:"Response"`
994}
995
996func (r *DeleteAccountResponse) ToJsonString() string {
997    b, _ := json.Marshal(r)
998    return string(b)
999}
1000
1001// FromJsonString It is highly **NOT** recommended to use this function
1002// because it has no param check, nor strict type check
1003func (r *DeleteAccountResponse) FromJsonString(s string) error {
1004	return json.Unmarshal([]byte(s), &r)
1005}
1006
1007type DescribeAccountPrivilegesRequest struct {
1008	*tchttp.BaseRequest
1009
1010	// 实例 ID,形如:dcdbt-ow7t8lmc。
1011	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1012
1013	// 登录用户名。
1014	UserName *string `json:"UserName,omitempty" name:"UserName"`
1015
1016	// 用户允许的访问 host,用户名+host唯一确定一个账号。
1017	Host *string `json:"Host,omitempty" name:"Host"`
1018
1019	// 数据库名。如果为 \*,表示查询全局权限(即 \*.\*),此时忽略 Type 和 Object 参数
1020	DbName *string `json:"DbName,omitempty" name:"DbName"`
1021
1022	// 类型,可以填入 table 、 view 、 proc 、 func 和 \*。当 DbName 为具体数据库名,Type为 \* 时,表示查询该数据库权限(即db.\*),此时忽略 Object 参数
1023	Type *string `json:"Type,omitempty" name:"Type"`
1024
1025	// 具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 \* 或者为空
1026	Object *string `json:"Object,omitempty" name:"Object"`
1027
1028	// 当 Type=table 时,ColName 为 \* 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限
1029	ColName *string `json:"ColName,omitempty" name:"ColName"`
1030}
1031
1032func (r *DescribeAccountPrivilegesRequest) ToJsonString() string {
1033    b, _ := json.Marshal(r)
1034    return string(b)
1035}
1036
1037// FromJsonString It is highly **NOT** recommended to use this function
1038// because it has no param check, nor strict type check
1039func (r *DescribeAccountPrivilegesRequest) FromJsonString(s string) error {
1040	f := make(map[string]interface{})
1041	if err := json.Unmarshal([]byte(s), &f); err != nil {
1042		return err
1043	}
1044	delete(f, "InstanceId")
1045	delete(f, "UserName")
1046	delete(f, "Host")
1047	delete(f, "DbName")
1048	delete(f, "Type")
1049	delete(f, "Object")
1050	delete(f, "ColName")
1051	if len(f) > 0 {
1052		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccountPrivilegesRequest has unknown keys!", "")
1053	}
1054	return json.Unmarshal([]byte(s), &r)
1055}
1056
1057type DescribeAccountPrivilegesResponse struct {
1058	*tchttp.BaseResponse
1059	Response *struct {
1060
1061		// 实例ID
1062		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1063
1064		// 权限列表。
1065		Privileges []*string `json:"Privileges,omitempty" name:"Privileges"`
1066
1067		// 数据库账号用户名
1068		UserName *string `json:"UserName,omitempty" name:"UserName"`
1069
1070		// 数据库账号Host
1071		Host *string `json:"Host,omitempty" name:"Host"`
1072
1073		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1074		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1075	} `json:"Response"`
1076}
1077
1078func (r *DescribeAccountPrivilegesResponse) ToJsonString() string {
1079    b, _ := json.Marshal(r)
1080    return string(b)
1081}
1082
1083// FromJsonString It is highly **NOT** recommended to use this function
1084// because it has no param check, nor strict type check
1085func (r *DescribeAccountPrivilegesResponse) FromJsonString(s string) error {
1086	return json.Unmarshal([]byte(s), &r)
1087}
1088
1089type DescribeAccountsRequest struct {
1090	*tchttp.BaseRequest
1091
1092	// 实例ID,形如:dcdbt-ow728lmc。
1093	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1094}
1095
1096func (r *DescribeAccountsRequest) ToJsonString() string {
1097    b, _ := json.Marshal(r)
1098    return string(b)
1099}
1100
1101// FromJsonString It is highly **NOT** recommended to use this function
1102// because it has no param check, nor strict type check
1103func (r *DescribeAccountsRequest) FromJsonString(s string) error {
1104	f := make(map[string]interface{})
1105	if err := json.Unmarshal([]byte(s), &f); err != nil {
1106		return err
1107	}
1108	delete(f, "InstanceId")
1109	if len(f) > 0 {
1110		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccountsRequest has unknown keys!", "")
1111	}
1112	return json.Unmarshal([]byte(s), &r)
1113}
1114
1115type DescribeAccountsResponse struct {
1116	*tchttp.BaseResponse
1117	Response *struct {
1118
1119		// 实例ID,透传入参。
1120		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1121
1122		// 实例用户列表。
1123	// 注意:此字段可能返回 null,表示取不到有效值。
1124		Users []*DBAccount `json:"Users,omitempty" name:"Users"`
1125
1126		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1127		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1128	} `json:"Response"`
1129}
1130
1131func (r *DescribeAccountsResponse) ToJsonString() string {
1132    b, _ := json.Marshal(r)
1133    return string(b)
1134}
1135
1136// FromJsonString It is highly **NOT** recommended to use this function
1137// because it has no param check, nor strict type check
1138func (r *DescribeAccountsResponse) FromJsonString(s string) error {
1139	return json.Unmarshal([]byte(s), &r)
1140}
1141
1142type DescribeDBLogFilesRequest struct {
1143	*tchttp.BaseRequest
1144
1145	// 实例 ID,形如:dcdbt-ow7t8lmc。
1146	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1147
1148	// 分片 ID,形如:shard-7noic7tv
1149	ShardId *string `json:"ShardId,omitempty" name:"ShardId"`
1150
1151	// 请求日志类型,取值只能为1、2、3或者4。1-binlog,2-冷备,3-errlog,4-slowlog。
1152	Type *int64 `json:"Type,omitempty" name:"Type"`
1153}
1154
1155func (r *DescribeDBLogFilesRequest) ToJsonString() string {
1156    b, _ := json.Marshal(r)
1157    return string(b)
1158}
1159
1160// FromJsonString It is highly **NOT** recommended to use this function
1161// because it has no param check, nor strict type check
1162func (r *DescribeDBLogFilesRequest) FromJsonString(s string) error {
1163	f := make(map[string]interface{})
1164	if err := json.Unmarshal([]byte(s), &f); err != nil {
1165		return err
1166	}
1167	delete(f, "InstanceId")
1168	delete(f, "ShardId")
1169	delete(f, "Type")
1170	if len(f) > 0 {
1171		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBLogFilesRequest has unknown keys!", "")
1172	}
1173	return json.Unmarshal([]byte(s), &r)
1174}
1175
1176type DescribeDBLogFilesResponse struct {
1177	*tchttp.BaseResponse
1178	Response *struct {
1179
1180		// 实例 ID,形如:dcdbt-ow728lmc。
1181		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1182
1183		// 请求日志类型。1-binlog,2-冷备,3-errlog,4-slowlog。
1184		Type *uint64 `json:"Type,omitempty" name:"Type"`
1185
1186		// 请求日志总数
1187		Total *uint64 `json:"Total,omitempty" name:"Total"`
1188
1189		// 日志文件列表
1190		Files []*LogFileInfo `json:"Files,omitempty" name:"Files"`
1191
1192		// 如果是VPC网络的实例,做用本前缀加上URI为下载地址
1193		VpcPrefix *string `json:"VpcPrefix,omitempty" name:"VpcPrefix"`
1194
1195		// 如果是普通网络的实例,做用本前缀加上URI为下载地址
1196		NormalPrefix *string `json:"NormalPrefix,omitempty" name:"NormalPrefix"`
1197
1198		// 分片 ID,形如:shard-7noic7tv
1199		ShardId *string `json:"ShardId,omitempty" name:"ShardId"`
1200
1201		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1202		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1203	} `json:"Response"`
1204}
1205
1206func (r *DescribeDBLogFilesResponse) ToJsonString() string {
1207    b, _ := json.Marshal(r)
1208    return string(b)
1209}
1210
1211// FromJsonString It is highly **NOT** recommended to use this function
1212// because it has no param check, nor strict type check
1213func (r *DescribeDBLogFilesResponse) FromJsonString(s string) error {
1214	return json.Unmarshal([]byte(s), &r)
1215}
1216
1217type DescribeDBParametersRequest struct {
1218	*tchttp.BaseRequest
1219
1220	// 实例 ID,形如:dcdbt-ow7t8lmc。
1221	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1222}
1223
1224func (r *DescribeDBParametersRequest) ToJsonString() string {
1225    b, _ := json.Marshal(r)
1226    return string(b)
1227}
1228
1229// FromJsonString It is highly **NOT** recommended to use this function
1230// because it has no param check, nor strict type check
1231func (r *DescribeDBParametersRequest) FromJsonString(s string) error {
1232	f := make(map[string]interface{})
1233	if err := json.Unmarshal([]byte(s), &f); err != nil {
1234		return err
1235	}
1236	delete(f, "InstanceId")
1237	if len(f) > 0 {
1238		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBParametersRequest has unknown keys!", "")
1239	}
1240	return json.Unmarshal([]byte(s), &r)
1241}
1242
1243type DescribeDBParametersResponse struct {
1244	*tchttp.BaseResponse
1245	Response *struct {
1246
1247		// 实例 ID,形如:dcdbt-ow7t8lmc。
1248		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1249
1250		// 请求DB的当前参数值
1251		Params []*ParamDesc `json:"Params,omitempty" name:"Params"`
1252
1253		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1254		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1255	} `json:"Response"`
1256}
1257
1258func (r *DescribeDBParametersResponse) ToJsonString() string {
1259    b, _ := json.Marshal(r)
1260    return string(b)
1261}
1262
1263// FromJsonString It is highly **NOT** recommended to use this function
1264// because it has no param check, nor strict type check
1265func (r *DescribeDBParametersResponse) FromJsonString(s string) error {
1266	return json.Unmarshal([]byte(s), &r)
1267}
1268
1269type DescribeDBSecurityGroupsRequest struct {
1270	*tchttp.BaseRequest
1271
1272	// 数据库引擎名称,本接口取值:dcdb。
1273	Product *string `json:"Product,omitempty" name:"Product"`
1274
1275	// 实例ID。
1276	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1277}
1278
1279func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string {
1280    b, _ := json.Marshal(r)
1281    return string(b)
1282}
1283
1284// FromJsonString It is highly **NOT** recommended to use this function
1285// because it has no param check, nor strict type check
1286func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error {
1287	f := make(map[string]interface{})
1288	if err := json.Unmarshal([]byte(s), &f); err != nil {
1289		return err
1290	}
1291	delete(f, "Product")
1292	delete(f, "InstanceId")
1293	if len(f) > 0 {
1294		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBSecurityGroupsRequest has unknown keys!", "")
1295	}
1296	return json.Unmarshal([]byte(s), &r)
1297}
1298
1299type DescribeDBSecurityGroupsResponse struct {
1300	*tchttp.BaseResponse
1301	Response *struct {
1302
1303		// 安全组详情。
1304		Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"`
1305
1306		// 实例VIP
1307	// 注意:此字段可能返回 null,表示取不到有效值。
1308		VIP *string `json:"VIP,omitempty" name:"VIP"`
1309
1310		// 实例端口
1311	// 注意:此字段可能返回 null,表示取不到有效值。
1312		VPort *int64 `json:"VPort,omitempty" name:"VPort"`
1313
1314		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1315		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1316	} `json:"Response"`
1317}
1318
1319func (r *DescribeDBSecurityGroupsResponse) ToJsonString() string {
1320    b, _ := json.Marshal(r)
1321    return string(b)
1322}
1323
1324// FromJsonString It is highly **NOT** recommended to use this function
1325// because it has no param check, nor strict type check
1326func (r *DescribeDBSecurityGroupsResponse) FromJsonString(s string) error {
1327	return json.Unmarshal([]byte(s), &r)
1328}
1329
1330type DescribeDBSyncModeRequest struct {
1331	*tchttp.BaseRequest
1332
1333	// 待修改同步模式的实例ID。形如:dcdbt-ow728lmc。
1334	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1335}
1336
1337func (r *DescribeDBSyncModeRequest) ToJsonString() string {
1338    b, _ := json.Marshal(r)
1339    return string(b)
1340}
1341
1342// FromJsonString It is highly **NOT** recommended to use this function
1343// because it has no param check, nor strict type check
1344func (r *DescribeDBSyncModeRequest) FromJsonString(s string) error {
1345	f := make(map[string]interface{})
1346	if err := json.Unmarshal([]byte(s), &f); err != nil {
1347		return err
1348	}
1349	delete(f, "InstanceId")
1350	if len(f) > 0 {
1351		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBSyncModeRequest has unknown keys!", "")
1352	}
1353	return json.Unmarshal([]byte(s), &r)
1354}
1355
1356type DescribeDBSyncModeResponse struct {
1357	*tchttp.BaseResponse
1358	Response *struct {
1359
1360		// 同步模式:0 异步,1 强同步, 2 强同步可退化
1361		SyncMode *int64 `json:"SyncMode,omitempty" name:"SyncMode"`
1362
1363		// 是否有修改流程在执行中:1 是, 0 否。
1364		IsModifying *int64 `json:"IsModifying,omitempty" name:"IsModifying"`
1365
1366		// 当前复制方式,0 异步,1 同步
1367		CurrentSyncMode *int64 `json:"CurrentSyncMode,omitempty" name:"CurrentSyncMode"`
1368
1369		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1370		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1371	} `json:"Response"`
1372}
1373
1374func (r *DescribeDBSyncModeResponse) ToJsonString() string {
1375    b, _ := json.Marshal(r)
1376    return string(b)
1377}
1378
1379// FromJsonString It is highly **NOT** recommended to use this function
1380// because it has no param check, nor strict type check
1381func (r *DescribeDBSyncModeResponse) FromJsonString(s string) error {
1382	return json.Unmarshal([]byte(s), &r)
1383}
1384
1385type DescribeDCDBInstanceNodeInfoRequest struct {
1386	*tchttp.BaseRequest
1387
1388	// 实例ID
1389	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1390
1391	// 单次最多返回多少条,取值范围为(0-100],默认为100
1392	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
1393
1394	// 返回数据的偏移值,默认为0
1395	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
1396}
1397
1398func (r *DescribeDCDBInstanceNodeInfoRequest) ToJsonString() string {
1399    b, _ := json.Marshal(r)
1400    return string(b)
1401}
1402
1403// FromJsonString It is highly **NOT** recommended to use this function
1404// because it has no param check, nor strict type check
1405func (r *DescribeDCDBInstanceNodeInfoRequest) FromJsonString(s string) error {
1406	f := make(map[string]interface{})
1407	if err := json.Unmarshal([]byte(s), &f); err != nil {
1408		return err
1409	}
1410	delete(f, "InstanceId")
1411	delete(f, "Limit")
1412	delete(f, "Offset")
1413	if len(f) > 0 {
1414		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDCDBInstanceNodeInfoRequest has unknown keys!", "")
1415	}
1416	return json.Unmarshal([]byte(s), &r)
1417}
1418
1419type DescribeDCDBInstanceNodeInfoResponse struct {
1420	*tchttp.BaseResponse
1421	Response *struct {
1422
1423		// 节点总个数
1424		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
1425
1426		// 节点信息
1427		NodesInfo []*BriefNodeInfo `json:"NodesInfo,omitempty" name:"NodesInfo"`
1428
1429		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1430		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1431	} `json:"Response"`
1432}
1433
1434func (r *DescribeDCDBInstanceNodeInfoResponse) ToJsonString() string {
1435    b, _ := json.Marshal(r)
1436    return string(b)
1437}
1438
1439// FromJsonString It is highly **NOT** recommended to use this function
1440// because it has no param check, nor strict type check
1441func (r *DescribeDCDBInstanceNodeInfoResponse) FromJsonString(s string) error {
1442	return json.Unmarshal([]byte(s), &r)
1443}
1444
1445type DescribeDCDBInstancesRequest struct {
1446	*tchttp.BaseRequest
1447
1448	// 按照一个或者多个实例 ID 查询。实例 ID 形如:dcdbt-2t4cf98d
1449	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
1450
1451	// 搜索的字段名,当前支持的值有:instancename、vip、all。传 instancename 表示按实例名进行搜索;传 vip 表示按内网IP进行搜索;传 all 将会按实例ID、实例名和内网IP进行搜索。
1452	SearchName *string `json:"SearchName,omitempty" name:"SearchName"`
1453
1454	// 搜索的关键字,支持模糊搜索。多个关键字使用换行符('\n')分割。
1455	SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
1456
1457	// 按项目 ID 查询
1458	ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"`
1459
1460	// 是否根据 VPC 网络来搜索
1461	IsFilterVpc *bool `json:"IsFilterVpc,omitempty" name:"IsFilterVpc"`
1462
1463	// 私有网络 ID, IsFilterVpc 为 1 时有效
1464	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
1465
1466	// 私有网络的子网 ID, IsFilterVpc 为 1 时有效
1467	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
1468
1469	// 排序字段, projectId, createtime, instancename 三者之一
1470	OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
1471
1472	// 排序类型, desc 或者 asc
1473	OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
1474
1475	// 偏移量,默认为 0
1476	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
1477
1478	// 返回数量,默认为 10,最大值为 100。
1479	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
1480
1481	// 1非独享集群,2独享集群, 0全部
1482	ExclusterType *int64 `json:"ExclusterType,omitempty" name:"ExclusterType"`
1483
1484	// 标识是否使用ExclusterType字段, false不使用,true使用
1485	IsFilterExcluster *bool `json:"IsFilterExcluster,omitempty" name:"IsFilterExcluster"`
1486
1487	// 独享集群ID
1488	ExclusterIds []*string `json:"ExclusterIds,omitempty" name:"ExclusterIds"`
1489
1490	// 按标签key查询
1491	TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"`
1492
1493	// 实例类型过滤,1-独享实例,2-主实例,3-灾备实例,多个按逗号分隔
1494	FilterInstanceType *string `json:"FilterInstanceType,omitempty" name:"FilterInstanceType"`
1495
1496	// 按实例状态筛选
1497	Status []*int64 `json:"Status,omitempty" name:"Status"`
1498
1499	// 排除实例状态
1500	ExcludeStatus []*int64 `json:"ExcludeStatus,omitempty" name:"ExcludeStatus"`
1501}
1502
1503func (r *DescribeDCDBInstancesRequest) ToJsonString() string {
1504    b, _ := json.Marshal(r)
1505    return string(b)
1506}
1507
1508// FromJsonString It is highly **NOT** recommended to use this function
1509// because it has no param check, nor strict type check
1510func (r *DescribeDCDBInstancesRequest) FromJsonString(s string) error {
1511	f := make(map[string]interface{})
1512	if err := json.Unmarshal([]byte(s), &f); err != nil {
1513		return err
1514	}
1515	delete(f, "InstanceIds")
1516	delete(f, "SearchName")
1517	delete(f, "SearchKey")
1518	delete(f, "ProjectIds")
1519	delete(f, "IsFilterVpc")
1520	delete(f, "VpcId")
1521	delete(f, "SubnetId")
1522	delete(f, "OrderBy")
1523	delete(f, "OrderByType")
1524	delete(f, "Offset")
1525	delete(f, "Limit")
1526	delete(f, "ExclusterType")
1527	delete(f, "IsFilterExcluster")
1528	delete(f, "ExclusterIds")
1529	delete(f, "TagKeys")
1530	delete(f, "FilterInstanceType")
1531	delete(f, "Status")
1532	delete(f, "ExcludeStatus")
1533	if len(f) > 0 {
1534		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDCDBInstancesRequest has unknown keys!", "")
1535	}
1536	return json.Unmarshal([]byte(s), &r)
1537}
1538
1539type DescribeDCDBInstancesResponse struct {
1540	*tchttp.BaseResponse
1541	Response *struct {
1542
1543		// 符合条件的实例数量
1544		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
1545
1546		// 实例详细信息列表
1547		Instances []*DCDBInstanceInfo `json:"Instances,omitempty" name:"Instances"`
1548
1549		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1550		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1551	} `json:"Response"`
1552}
1553
1554func (r *DescribeDCDBInstancesResponse) ToJsonString() string {
1555    b, _ := json.Marshal(r)
1556    return string(b)
1557}
1558
1559// FromJsonString It is highly **NOT** recommended to use this function
1560// because it has no param check, nor strict type check
1561func (r *DescribeDCDBInstancesResponse) FromJsonString(s string) error {
1562	return json.Unmarshal([]byte(s), &r)
1563}
1564
1565type DescribeDCDBPriceRequest struct {
1566	*tchttp.BaseRequest
1567
1568	// 欲新购实例的可用区ID。
1569	Zone *string `json:"Zone,omitempty" name:"Zone"`
1570
1571	// 欲购买实例的数量,目前支持购买1-10个实例
1572	Count *int64 `json:"Count,omitempty" name:"Count"`
1573
1574	// 欲购买的时长,单位:月。
1575	Period *int64 `json:"Period,omitempty" name:"Period"`
1576
1577	// 单个分片节点个数大小,可以通过 DescribeShardSpec
1578	//  查询实例规格获得。
1579	ShardNodeCount *int64 `json:"ShardNodeCount,omitempty" name:"ShardNodeCount"`
1580
1581	// 分片内存大小,单位:GB,可以通过 DescribeShardSpec
1582	//  查询实例规格获得。
1583	ShardMemory *int64 `json:"ShardMemory,omitempty" name:"ShardMemory"`
1584
1585	// 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec
1586	//  查询实例规格获得。
1587	ShardStorage *int64 `json:"ShardStorage,omitempty" name:"ShardStorage"`
1588
1589	// 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。
1590	ShardCount *int64 `json:"ShardCount,omitempty" name:"ShardCount"`
1591
1592	// 付费类型。postpaid:按量付费   prepaid:预付费
1593	Paymode *string `json:"Paymode,omitempty" name:"Paymode"`
1594}
1595
1596func (r *DescribeDCDBPriceRequest) ToJsonString() string {
1597    b, _ := json.Marshal(r)
1598    return string(b)
1599}
1600
1601// FromJsonString It is highly **NOT** recommended to use this function
1602// because it has no param check, nor strict type check
1603func (r *DescribeDCDBPriceRequest) FromJsonString(s string) error {
1604	f := make(map[string]interface{})
1605	if err := json.Unmarshal([]byte(s), &f); err != nil {
1606		return err
1607	}
1608	delete(f, "Zone")
1609	delete(f, "Count")
1610	delete(f, "Period")
1611	delete(f, "ShardNodeCount")
1612	delete(f, "ShardMemory")
1613	delete(f, "ShardStorage")
1614	delete(f, "ShardCount")
1615	delete(f, "Paymode")
1616	if len(f) > 0 {
1617		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDCDBPriceRequest has unknown keys!", "")
1618	}
1619	return json.Unmarshal([]byte(s), &r)
1620}
1621
1622type DescribeDCDBPriceResponse struct {
1623	*tchttp.BaseResponse
1624	Response *struct {
1625
1626		// 原价,单位:分
1627		OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`
1628
1629		// 实际价格,单位:分。受折扣等影响,可能和原价不同。
1630		Price *int64 `json:"Price,omitempty" name:"Price"`
1631
1632		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1633		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1634	} `json:"Response"`
1635}
1636
1637func (r *DescribeDCDBPriceResponse) ToJsonString() string {
1638    b, _ := json.Marshal(r)
1639    return string(b)
1640}
1641
1642// FromJsonString It is highly **NOT** recommended to use this function
1643// because it has no param check, nor strict type check
1644func (r *DescribeDCDBPriceResponse) FromJsonString(s string) error {
1645	return json.Unmarshal([]byte(s), &r)
1646}
1647
1648type DescribeDCDBRenewalPriceRequest struct {
1649	*tchttp.BaseRequest
1650
1651	// 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
1652	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1653
1654	// 续费时长,单位:月。不传则默认为1个月。
1655	Period *int64 `json:"Period,omitempty" name:"Period"`
1656}
1657
1658func (r *DescribeDCDBRenewalPriceRequest) ToJsonString() string {
1659    b, _ := json.Marshal(r)
1660    return string(b)
1661}
1662
1663// FromJsonString It is highly **NOT** recommended to use this function
1664// because it has no param check, nor strict type check
1665func (r *DescribeDCDBRenewalPriceRequest) FromJsonString(s string) error {
1666	f := make(map[string]interface{})
1667	if err := json.Unmarshal([]byte(s), &f); err != nil {
1668		return err
1669	}
1670	delete(f, "InstanceId")
1671	delete(f, "Period")
1672	if len(f) > 0 {
1673		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDCDBRenewalPriceRequest has unknown keys!", "")
1674	}
1675	return json.Unmarshal([]byte(s), &r)
1676}
1677
1678type DescribeDCDBRenewalPriceResponse struct {
1679	*tchttp.BaseResponse
1680	Response *struct {
1681
1682		// 原价,单位:分
1683		OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`
1684
1685		// 实际价格,单位:分。受折扣等影响,可能和原价不同。
1686		Price *int64 `json:"Price,omitempty" name:"Price"`
1687
1688		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1689		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1690	} `json:"Response"`
1691}
1692
1693func (r *DescribeDCDBRenewalPriceResponse) ToJsonString() string {
1694    b, _ := json.Marshal(r)
1695    return string(b)
1696}
1697
1698// FromJsonString It is highly **NOT** recommended to use this function
1699// because it has no param check, nor strict type check
1700func (r *DescribeDCDBRenewalPriceResponse) FromJsonString(s string) error {
1701	return json.Unmarshal([]byte(s), &r)
1702}
1703
1704type DescribeDCDBSaleInfoRequest struct {
1705	*tchttp.BaseRequest
1706}
1707
1708func (r *DescribeDCDBSaleInfoRequest) ToJsonString() string {
1709    b, _ := json.Marshal(r)
1710    return string(b)
1711}
1712
1713// FromJsonString It is highly **NOT** recommended to use this function
1714// because it has no param check, nor strict type check
1715func (r *DescribeDCDBSaleInfoRequest) FromJsonString(s string) error {
1716	f := make(map[string]interface{})
1717	if err := json.Unmarshal([]byte(s), &f); err != nil {
1718		return err
1719	}
1720	if len(f) > 0 {
1721		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDCDBSaleInfoRequest has unknown keys!", "")
1722	}
1723	return json.Unmarshal([]byte(s), &r)
1724}
1725
1726type DescribeDCDBSaleInfoResponse struct {
1727	*tchttp.BaseResponse
1728	Response *struct {
1729
1730		// 可售卖地域信息列表
1731		RegionList []*RegionInfo `json:"RegionList,omitempty" name:"RegionList"`
1732
1733		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1734		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1735	} `json:"Response"`
1736}
1737
1738func (r *DescribeDCDBSaleInfoResponse) ToJsonString() string {
1739    b, _ := json.Marshal(r)
1740    return string(b)
1741}
1742
1743// FromJsonString It is highly **NOT** recommended to use this function
1744// because it has no param check, nor strict type check
1745func (r *DescribeDCDBSaleInfoResponse) FromJsonString(s string) error {
1746	return json.Unmarshal([]byte(s), &r)
1747}
1748
1749type DescribeDCDBShardsRequest struct {
1750	*tchttp.BaseRequest
1751
1752	// 实例ID,形如:dcdbt-ow728lmc。
1753	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1754
1755	// 分片ID列表。
1756	ShardInstanceIds []*string `json:"ShardInstanceIds,omitempty" name:"ShardInstanceIds"`
1757
1758	// 偏移量,默认为 0
1759	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
1760
1761	// 返回数量,默认为 20,最大值为 100。
1762	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
1763
1764	// 排序字段, 目前仅支持 createtime
1765	OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
1766
1767	// 排序类型, desc 或者 asc
1768	OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
1769}
1770
1771func (r *DescribeDCDBShardsRequest) ToJsonString() string {
1772    b, _ := json.Marshal(r)
1773    return string(b)
1774}
1775
1776// FromJsonString It is highly **NOT** recommended to use this function
1777// because it has no param check, nor strict type check
1778func (r *DescribeDCDBShardsRequest) FromJsonString(s string) error {
1779	f := make(map[string]interface{})
1780	if err := json.Unmarshal([]byte(s), &f); err != nil {
1781		return err
1782	}
1783	delete(f, "InstanceId")
1784	delete(f, "ShardInstanceIds")
1785	delete(f, "Offset")
1786	delete(f, "Limit")
1787	delete(f, "OrderBy")
1788	delete(f, "OrderByType")
1789	if len(f) > 0 {
1790		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDCDBShardsRequest has unknown keys!", "")
1791	}
1792	return json.Unmarshal([]byte(s), &r)
1793}
1794
1795type DescribeDCDBShardsResponse struct {
1796	*tchttp.BaseResponse
1797	Response *struct {
1798
1799		// 符合条件的分片数量
1800		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
1801
1802		// 分片信息列表
1803		Shards []*DCDBShardInfo `json:"Shards,omitempty" name:"Shards"`
1804
1805		// 灾备标志,0-无,1-主实例,2-灾备实例
1806	// 注意:此字段可能返回 null,表示取不到有效值。
1807		DcnFlag *int64 `json:"DcnFlag,omitempty" name:"DcnFlag"`
1808
1809		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1810		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1811	} `json:"Response"`
1812}
1813
1814func (r *DescribeDCDBShardsResponse) ToJsonString() string {
1815    b, _ := json.Marshal(r)
1816    return string(b)
1817}
1818
1819// FromJsonString It is highly **NOT** recommended to use this function
1820// because it has no param check, nor strict type check
1821func (r *DescribeDCDBShardsResponse) FromJsonString(s string) error {
1822	return json.Unmarshal([]byte(s), &r)
1823}
1824
1825type DescribeDCDBUpgradePriceRequest struct {
1826	*tchttp.BaseRequest
1827
1828	// 待升级的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
1829	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1830
1831	// 升级类型,取值范围:
1832	// <li> ADD: 新增分片 </li>
1833	//  <li> EXPAND: 升级实例中的已有分片 </li>
1834	//  <li> SPLIT: 将已有分片中的数据切分到新增分片上</li>
1835	UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
1836
1837	// 新增分片配置,当UpgradeType为ADD时生效。
1838	AddShardConfig *AddShardConfig `json:"AddShardConfig,omitempty" name:"AddShardConfig"`
1839
1840	// 扩容分片配置,当UpgradeType为EXPAND时生效。
1841	ExpandShardConfig *ExpandShardConfig `json:"ExpandShardConfig,omitempty" name:"ExpandShardConfig"`
1842
1843	// 切分分片配置,当UpgradeType为SPLIT时生效。
1844	SplitShardConfig *SplitShardConfig `json:"SplitShardConfig,omitempty" name:"SplitShardConfig"`
1845}
1846
1847func (r *DescribeDCDBUpgradePriceRequest) ToJsonString() string {
1848    b, _ := json.Marshal(r)
1849    return string(b)
1850}
1851
1852// FromJsonString It is highly **NOT** recommended to use this function
1853// because it has no param check, nor strict type check
1854func (r *DescribeDCDBUpgradePriceRequest) FromJsonString(s string) error {
1855	f := make(map[string]interface{})
1856	if err := json.Unmarshal([]byte(s), &f); err != nil {
1857		return err
1858	}
1859	delete(f, "InstanceId")
1860	delete(f, "UpgradeType")
1861	delete(f, "AddShardConfig")
1862	delete(f, "ExpandShardConfig")
1863	delete(f, "SplitShardConfig")
1864	if len(f) > 0 {
1865		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDCDBUpgradePriceRequest has unknown keys!", "")
1866	}
1867	return json.Unmarshal([]byte(s), &r)
1868}
1869
1870type DescribeDCDBUpgradePriceResponse struct {
1871	*tchttp.BaseResponse
1872	Response *struct {
1873
1874		// 原价,单位:分
1875		OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`
1876
1877		// 实际价格,单位:分。受折扣等影响,可能和原价不同。
1878		Price *int64 `json:"Price,omitempty" name:"Price"`
1879
1880		// 变配明细计算公式
1881		Formula *string `json:"Formula,omitempty" name:"Formula"`
1882
1883		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1884		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1885	} `json:"Response"`
1886}
1887
1888func (r *DescribeDCDBUpgradePriceResponse) ToJsonString() string {
1889    b, _ := json.Marshal(r)
1890    return string(b)
1891}
1892
1893// FromJsonString It is highly **NOT** recommended to use this function
1894// because it has no param check, nor strict type check
1895func (r *DescribeDCDBUpgradePriceResponse) FromJsonString(s string) error {
1896	return json.Unmarshal([]byte(s), &r)
1897}
1898
1899type DescribeDatabaseObjectsRequest struct {
1900	*tchttp.BaseRequest
1901
1902	// 实例 ID,形如:dcdbt-ow7t8lmc。
1903	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1904
1905	// 数据库名称,通过 DescribeDatabases 接口获取。
1906	DbName *string `json:"DbName,omitempty" name:"DbName"`
1907}
1908
1909func (r *DescribeDatabaseObjectsRequest) ToJsonString() string {
1910    b, _ := json.Marshal(r)
1911    return string(b)
1912}
1913
1914// FromJsonString It is highly **NOT** recommended to use this function
1915// because it has no param check, nor strict type check
1916func (r *DescribeDatabaseObjectsRequest) FromJsonString(s string) error {
1917	f := make(map[string]interface{})
1918	if err := json.Unmarshal([]byte(s), &f); err != nil {
1919		return err
1920	}
1921	delete(f, "InstanceId")
1922	delete(f, "DbName")
1923	if len(f) > 0 {
1924		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDatabaseObjectsRequest has unknown keys!", "")
1925	}
1926	return json.Unmarshal([]byte(s), &r)
1927}
1928
1929type DescribeDatabaseObjectsResponse struct {
1930	*tchttp.BaseResponse
1931	Response *struct {
1932
1933		// 透传入参。
1934		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1935
1936		// 数据库名称。
1937		DbName *string `json:"DbName,omitempty" name:"DbName"`
1938
1939		// 表列表。
1940		Tables []*DatabaseTable `json:"Tables,omitempty" name:"Tables"`
1941
1942		// 视图列表。
1943		Views []*DatabaseView `json:"Views,omitempty" name:"Views"`
1944
1945		// 存储过程列表。
1946		Procs []*DatabaseProcedure `json:"Procs,omitempty" name:"Procs"`
1947
1948		// 函数列表。
1949		Funcs []*DatabaseFunction `json:"Funcs,omitempty" name:"Funcs"`
1950
1951		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1952		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1953	} `json:"Response"`
1954}
1955
1956func (r *DescribeDatabaseObjectsResponse) ToJsonString() string {
1957    b, _ := json.Marshal(r)
1958    return string(b)
1959}
1960
1961// FromJsonString It is highly **NOT** recommended to use this function
1962// because it has no param check, nor strict type check
1963func (r *DescribeDatabaseObjectsResponse) FromJsonString(s string) error {
1964	return json.Unmarshal([]byte(s), &r)
1965}
1966
1967type DescribeDatabaseTableRequest struct {
1968	*tchttp.BaseRequest
1969
1970	// 实例 ID,形如:dcdbt-ow7t8lmc。
1971	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1972
1973	// 数据库名称,通过 DescribeDatabases 接口获取。
1974	DbName *string `json:"DbName,omitempty" name:"DbName"`
1975
1976	// 表名称,通过 DescribeDatabaseObjects 接口获取。
1977	Table *string `json:"Table,omitempty" name:"Table"`
1978}
1979
1980func (r *DescribeDatabaseTableRequest) ToJsonString() string {
1981    b, _ := json.Marshal(r)
1982    return string(b)
1983}
1984
1985// FromJsonString It is highly **NOT** recommended to use this function
1986// because it has no param check, nor strict type check
1987func (r *DescribeDatabaseTableRequest) FromJsonString(s string) error {
1988	f := make(map[string]interface{})
1989	if err := json.Unmarshal([]byte(s), &f); err != nil {
1990		return err
1991	}
1992	delete(f, "InstanceId")
1993	delete(f, "DbName")
1994	delete(f, "Table")
1995	if len(f) > 0 {
1996		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDatabaseTableRequest has unknown keys!", "")
1997	}
1998	return json.Unmarshal([]byte(s), &r)
1999}
2000
2001type DescribeDatabaseTableResponse struct {
2002	*tchttp.BaseResponse
2003	Response *struct {
2004
2005		// 实例名称。
2006		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2007
2008		// 数据库名称。
2009		DbName *string `json:"DbName,omitempty" name:"DbName"`
2010
2011		// 表名称。
2012		Table *string `json:"Table,omitempty" name:"Table"`
2013
2014		// 列信息。
2015		Cols []*TableColumn `json:"Cols,omitempty" name:"Cols"`
2016
2017		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2018		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2019	} `json:"Response"`
2020}
2021
2022func (r *DescribeDatabaseTableResponse) ToJsonString() string {
2023    b, _ := json.Marshal(r)
2024    return string(b)
2025}
2026
2027// FromJsonString It is highly **NOT** recommended to use this function
2028// because it has no param check, nor strict type check
2029func (r *DescribeDatabaseTableResponse) FromJsonString(s string) error {
2030	return json.Unmarshal([]byte(s), &r)
2031}
2032
2033type DescribeDatabasesRequest struct {
2034	*tchttp.BaseRequest
2035
2036	// 实例 ID,形如:dcdbt-ow7t8lmc。
2037	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2038}
2039
2040func (r *DescribeDatabasesRequest) ToJsonString() string {
2041    b, _ := json.Marshal(r)
2042    return string(b)
2043}
2044
2045// FromJsonString It is highly **NOT** recommended to use this function
2046// because it has no param check, nor strict type check
2047func (r *DescribeDatabasesRequest) FromJsonString(s string) error {
2048	f := make(map[string]interface{})
2049	if err := json.Unmarshal([]byte(s), &f); err != nil {
2050		return err
2051	}
2052	delete(f, "InstanceId")
2053	if len(f) > 0 {
2054		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDatabasesRequest has unknown keys!", "")
2055	}
2056	return json.Unmarshal([]byte(s), &r)
2057}
2058
2059type DescribeDatabasesResponse struct {
2060	*tchttp.BaseResponse
2061	Response *struct {
2062
2063		// 该实例上的数据库列表。
2064		Databases []*Database `json:"Databases,omitempty" name:"Databases"`
2065
2066		// 透传入参。
2067		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2068
2069		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2070		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2071	} `json:"Response"`
2072}
2073
2074func (r *DescribeDatabasesResponse) ToJsonString() string {
2075    b, _ := json.Marshal(r)
2076    return string(b)
2077}
2078
2079// FromJsonString It is highly **NOT** recommended to use this function
2080// because it has no param check, nor strict type check
2081func (r *DescribeDatabasesResponse) FromJsonString(s string) error {
2082	return json.Unmarshal([]byte(s), &r)
2083}
2084
2085type DescribeDcnDetailRequest struct {
2086	*tchttp.BaseRequest
2087
2088	// 实例ID
2089	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2090}
2091
2092func (r *DescribeDcnDetailRequest) ToJsonString() string {
2093    b, _ := json.Marshal(r)
2094    return string(b)
2095}
2096
2097// FromJsonString It is highly **NOT** recommended to use this function
2098// because it has no param check, nor strict type check
2099func (r *DescribeDcnDetailRequest) FromJsonString(s string) error {
2100	f := make(map[string]interface{})
2101	if err := json.Unmarshal([]byte(s), &f); err != nil {
2102		return err
2103	}
2104	delete(f, "InstanceId")
2105	if len(f) > 0 {
2106		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDcnDetailRequest has unknown keys!", "")
2107	}
2108	return json.Unmarshal([]byte(s), &r)
2109}
2110
2111type DescribeDcnDetailResponse struct {
2112	*tchttp.BaseResponse
2113	Response *struct {
2114
2115		// DCN同步详情
2116		DcnDetails []*DcnDetailItem `json:"DcnDetails,omitempty" name:"DcnDetails"`
2117
2118		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2119		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2120	} `json:"Response"`
2121}
2122
2123func (r *DescribeDcnDetailResponse) ToJsonString() string {
2124    b, _ := json.Marshal(r)
2125    return string(b)
2126}
2127
2128// FromJsonString It is highly **NOT** recommended to use this function
2129// because it has no param check, nor strict type check
2130func (r *DescribeDcnDetailResponse) FromJsonString(s string) error {
2131	return json.Unmarshal([]byte(s), &r)
2132}
2133
2134type DescribeFlowRequest struct {
2135	*tchttp.BaseRequest
2136
2137	// 异步请求接口返回的任务流程号。
2138	FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
2139}
2140
2141func (r *DescribeFlowRequest) ToJsonString() string {
2142    b, _ := json.Marshal(r)
2143    return string(b)
2144}
2145
2146// FromJsonString It is highly **NOT** recommended to use this function
2147// because it has no param check, nor strict type check
2148func (r *DescribeFlowRequest) FromJsonString(s string) error {
2149	f := make(map[string]interface{})
2150	if err := json.Unmarshal([]byte(s), &f); err != nil {
2151		return err
2152	}
2153	delete(f, "FlowId")
2154	if len(f) > 0 {
2155		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFlowRequest has unknown keys!", "")
2156	}
2157	return json.Unmarshal([]byte(s), &r)
2158}
2159
2160type DescribeFlowResponse struct {
2161	*tchttp.BaseResponse
2162	Response *struct {
2163
2164		// 流程状态,0:成功,1:失败,2:运行中
2165		Status *int64 `json:"Status,omitempty" name:"Status"`
2166
2167		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2168		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2169	} `json:"Response"`
2170}
2171
2172func (r *DescribeFlowResponse) ToJsonString() string {
2173    b, _ := json.Marshal(r)
2174    return string(b)
2175}
2176
2177// FromJsonString It is highly **NOT** recommended to use this function
2178// because it has no param check, nor strict type check
2179func (r *DescribeFlowResponse) FromJsonString(s string) error {
2180	return json.Unmarshal([]byte(s), &r)
2181}
2182
2183type DescribeOrdersRequest struct {
2184	*tchttp.BaseRequest
2185
2186	// 待查询的长订单号列表,创建实例、续费实例、扩容实例接口返回。
2187	DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
2188}
2189
2190func (r *DescribeOrdersRequest) ToJsonString() string {
2191    b, _ := json.Marshal(r)
2192    return string(b)
2193}
2194
2195// FromJsonString It is highly **NOT** recommended to use this function
2196// because it has no param check, nor strict type check
2197func (r *DescribeOrdersRequest) FromJsonString(s string) error {
2198	f := make(map[string]interface{})
2199	if err := json.Unmarshal([]byte(s), &f); err != nil {
2200		return err
2201	}
2202	delete(f, "DealNames")
2203	if len(f) > 0 {
2204		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeOrdersRequest has unknown keys!", "")
2205	}
2206	return json.Unmarshal([]byte(s), &r)
2207}
2208
2209type DescribeOrdersResponse struct {
2210	*tchttp.BaseResponse
2211	Response *struct {
2212
2213		// 返回的订单数量。
2214		TotalCount []*int64 `json:"TotalCount,omitempty" name:"TotalCount"`
2215
2216		// 订单信息列表。
2217		Deals []*Deal `json:"Deals,omitempty" name:"Deals"`
2218
2219		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2220		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2221	} `json:"Response"`
2222}
2223
2224func (r *DescribeOrdersResponse) ToJsonString() string {
2225    b, _ := json.Marshal(r)
2226    return string(b)
2227}
2228
2229// FromJsonString It is highly **NOT** recommended to use this function
2230// because it has no param check, nor strict type check
2231func (r *DescribeOrdersResponse) FromJsonString(s string) error {
2232	return json.Unmarshal([]byte(s), &r)
2233}
2234
2235type DescribeProjectSecurityGroupsRequest struct {
2236	*tchttp.BaseRequest
2237
2238	// 数据库引擎名称,本接口取值:dcdb。
2239	Product *string `json:"Product,omitempty" name:"Product"`
2240
2241	// 项目ID。
2242	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
2243}
2244
2245func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string {
2246    b, _ := json.Marshal(r)
2247    return string(b)
2248}
2249
2250// FromJsonString It is highly **NOT** recommended to use this function
2251// because it has no param check, nor strict type check
2252func (r *DescribeProjectSecurityGroupsRequest) FromJsonString(s string) error {
2253	f := make(map[string]interface{})
2254	if err := json.Unmarshal([]byte(s), &f); err != nil {
2255		return err
2256	}
2257	delete(f, "Product")
2258	delete(f, "ProjectId")
2259	if len(f) > 0 {
2260		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProjectSecurityGroupsRequest has unknown keys!", "")
2261	}
2262	return json.Unmarshal([]byte(s), &r)
2263}
2264
2265type DescribeProjectSecurityGroupsResponse struct {
2266	*tchttp.BaseResponse
2267	Response *struct {
2268
2269		// 安全组详情。
2270		Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"`
2271
2272		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2273		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2274	} `json:"Response"`
2275}
2276
2277func (r *DescribeProjectSecurityGroupsResponse) ToJsonString() string {
2278    b, _ := json.Marshal(r)
2279    return string(b)
2280}
2281
2282// FromJsonString It is highly **NOT** recommended to use this function
2283// because it has no param check, nor strict type check
2284func (r *DescribeProjectSecurityGroupsResponse) FromJsonString(s string) error {
2285	return json.Unmarshal([]byte(s), &r)
2286}
2287
2288type DescribeProjectsRequest struct {
2289	*tchttp.BaseRequest
2290}
2291
2292func (r *DescribeProjectsRequest) ToJsonString() string {
2293    b, _ := json.Marshal(r)
2294    return string(b)
2295}
2296
2297// FromJsonString It is highly **NOT** recommended to use this function
2298// because it has no param check, nor strict type check
2299func (r *DescribeProjectsRequest) FromJsonString(s string) error {
2300	f := make(map[string]interface{})
2301	if err := json.Unmarshal([]byte(s), &f); err != nil {
2302		return err
2303	}
2304	if len(f) > 0 {
2305		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProjectsRequest has unknown keys!", "")
2306	}
2307	return json.Unmarshal([]byte(s), &r)
2308}
2309
2310type DescribeProjectsResponse struct {
2311	*tchttp.BaseResponse
2312	Response *struct {
2313
2314		// 项目列表
2315		Projects []*Project `json:"Projects,omitempty" name:"Projects"`
2316
2317		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2318		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2319	} `json:"Response"`
2320}
2321
2322func (r *DescribeProjectsResponse) ToJsonString() string {
2323    b, _ := json.Marshal(r)
2324    return string(b)
2325}
2326
2327// FromJsonString It is highly **NOT** recommended to use this function
2328// because it has no param check, nor strict type check
2329func (r *DescribeProjectsResponse) FromJsonString(s string) error {
2330	return json.Unmarshal([]byte(s), &r)
2331}
2332
2333type DescribeShardSpecRequest struct {
2334	*tchttp.BaseRequest
2335}
2336
2337func (r *DescribeShardSpecRequest) ToJsonString() string {
2338    b, _ := json.Marshal(r)
2339    return string(b)
2340}
2341
2342// FromJsonString It is highly **NOT** recommended to use this function
2343// because it has no param check, nor strict type check
2344func (r *DescribeShardSpecRequest) FromJsonString(s string) error {
2345	f := make(map[string]interface{})
2346	if err := json.Unmarshal([]byte(s), &f); err != nil {
2347		return err
2348	}
2349	if len(f) > 0 {
2350		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeShardSpecRequest has unknown keys!", "")
2351	}
2352	return json.Unmarshal([]byte(s), &r)
2353}
2354
2355type DescribeShardSpecResponse struct {
2356	*tchttp.BaseResponse
2357	Response *struct {
2358
2359		// 按机型分类的可售卖规格列表
2360		SpecConfig []*SpecConfig `json:"SpecConfig,omitempty" name:"SpecConfig"`
2361
2362		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2363		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2364	} `json:"Response"`
2365}
2366
2367func (r *DescribeShardSpecResponse) ToJsonString() string {
2368    b, _ := json.Marshal(r)
2369    return string(b)
2370}
2371
2372// FromJsonString It is highly **NOT** recommended to use this function
2373// because it has no param check, nor strict type check
2374func (r *DescribeShardSpecResponse) FromJsonString(s string) error {
2375	return json.Unmarshal([]byte(s), &r)
2376}
2377
2378type DescribeSqlLogsRequest struct {
2379	*tchttp.BaseRequest
2380
2381	// 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
2382	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2383
2384	// SQL日志偏移。
2385	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
2386
2387	// 拉取数量(0-10000,为0时拉取总数信息)。
2388	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
2389}
2390
2391func (r *DescribeSqlLogsRequest) ToJsonString() string {
2392    b, _ := json.Marshal(r)
2393    return string(b)
2394}
2395
2396// FromJsonString It is highly **NOT** recommended to use this function
2397// because it has no param check, nor strict type check
2398func (r *DescribeSqlLogsRequest) FromJsonString(s string) error {
2399	f := make(map[string]interface{})
2400	if err := json.Unmarshal([]byte(s), &f); err != nil {
2401		return err
2402	}
2403	delete(f, "InstanceId")
2404	delete(f, "Offset")
2405	delete(f, "Limit")
2406	if len(f) > 0 {
2407		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSqlLogsRequest has unknown keys!", "")
2408	}
2409	return json.Unmarshal([]byte(s), &r)
2410}
2411
2412type DescribeSqlLogsResponse struct {
2413	*tchttp.BaseResponse
2414	Response *struct {
2415
2416		// 当前消息队列中的sql日志条目数。
2417		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
2418
2419		// 消息队列中的sql日志起始偏移。
2420		StartOffset *uint64 `json:"StartOffset,omitempty" name:"StartOffset"`
2421
2422		// 消息队列中的sql日志结束偏移。
2423		EndOffset *uint64 `json:"EndOffset,omitempty" name:"EndOffset"`
2424
2425		// 返回的第一条sql日志的偏移。
2426		Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
2427
2428		// 返回的sql日志数量。
2429		Count *uint64 `json:"Count,omitempty" name:"Count"`
2430
2431		// Sql日志列表。
2432		SqlItems []*SqlLogItem `json:"SqlItems,omitempty" name:"SqlItems"`
2433
2434		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2435		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2436	} `json:"Response"`
2437}
2438
2439func (r *DescribeSqlLogsResponse) ToJsonString() string {
2440    b, _ := json.Marshal(r)
2441    return string(b)
2442}
2443
2444// FromJsonString It is highly **NOT** recommended to use this function
2445// because it has no param check, nor strict type check
2446func (r *DescribeSqlLogsResponse) FromJsonString(s string) error {
2447	return json.Unmarshal([]byte(s), &r)
2448}
2449
2450type DescribeUserTasksRequest struct {
2451	*tchttp.BaseRequest
2452
2453	// 任务的状态列表。0-任务启动中;1-任务运行中;2-任务成功;3-任务失败
2454	Statuses []*int64 `json:"Statuses,omitempty" name:"Statuses"`
2455
2456	// 实例ID列表
2457	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
2458
2459	// 任务类型列表,当前支持的任务类型有:0-回档任务;1-创建实例任务;2-扩容任务;3-迁移任务;4-删除实例任务;5-重启任务
2460	FlowTypes []*int64 `json:"FlowTypes,omitempty" name:"FlowTypes"`
2461
2462	// 任务的创建时间
2463	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
2464
2465	// 任务的结束时间
2466	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
2467
2468	// 任务ID的数组
2469	UTaskIds []*int64 `json:"UTaskIds,omitempty" name:"UTaskIds"`
2470
2471	// 每次最多返回多少条任务,取值范围为(0,100],不传的话默认值为20
2472	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
2473
2474	// 返回任务默认是按照创建时间降序排列,从偏移值Offset处开始返回
2475	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
2476}
2477
2478func (r *DescribeUserTasksRequest) ToJsonString() string {
2479    b, _ := json.Marshal(r)
2480    return string(b)
2481}
2482
2483// FromJsonString It is highly **NOT** recommended to use this function
2484// because it has no param check, nor strict type check
2485func (r *DescribeUserTasksRequest) FromJsonString(s string) error {
2486	f := make(map[string]interface{})
2487	if err := json.Unmarshal([]byte(s), &f); err != nil {
2488		return err
2489	}
2490	delete(f, "Statuses")
2491	delete(f, "InstanceIds")
2492	delete(f, "FlowTypes")
2493	delete(f, "StartTime")
2494	delete(f, "EndTime")
2495	delete(f, "UTaskIds")
2496	delete(f, "Limit")
2497	delete(f, "Offset")
2498	if len(f) > 0 {
2499		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeUserTasksRequest has unknown keys!", "")
2500	}
2501	return json.Unmarshal([]byte(s), &r)
2502}
2503
2504type DescribeUserTasksResponse struct {
2505	*tchttp.BaseResponse
2506	Response *struct {
2507
2508		// 任务总数
2509		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
2510
2511		// 任务列表
2512		FlowSet []*UserTaskInfo `json:"FlowSet,omitempty" name:"FlowSet"`
2513
2514		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2515		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2516	} `json:"Response"`
2517}
2518
2519func (r *DescribeUserTasksResponse) ToJsonString() string {
2520    b, _ := json.Marshal(r)
2521    return string(b)
2522}
2523
2524// FromJsonString It is highly **NOT** recommended to use this function
2525// because it has no param check, nor strict type check
2526func (r *DescribeUserTasksResponse) FromJsonString(s string) error {
2527	return json.Unmarshal([]byte(s), &r)
2528}
2529
2530type DestroyDCDBInstanceRequest struct {
2531	*tchttp.BaseRequest
2532
2533	// 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
2534	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2535}
2536
2537func (r *DestroyDCDBInstanceRequest) ToJsonString() string {
2538    b, _ := json.Marshal(r)
2539    return string(b)
2540}
2541
2542// FromJsonString It is highly **NOT** recommended to use this function
2543// because it has no param check, nor strict type check
2544func (r *DestroyDCDBInstanceRequest) FromJsonString(s string) error {
2545	f := make(map[string]interface{})
2546	if err := json.Unmarshal([]byte(s), &f); err != nil {
2547		return err
2548	}
2549	delete(f, "InstanceId")
2550	if len(f) > 0 {
2551		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DestroyDCDBInstanceRequest has unknown keys!", "")
2552	}
2553	return json.Unmarshal([]byte(s), &r)
2554}
2555
2556type DestroyDCDBInstanceResponse struct {
2557	*tchttp.BaseResponse
2558	Response *struct {
2559
2560		// 实例 ID,与入参InstanceId一致。
2561		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2562
2563		// 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/557/56485)
2564		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
2565
2566		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2567		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2568	} `json:"Response"`
2569}
2570
2571func (r *DestroyDCDBInstanceResponse) ToJsonString() string {
2572    b, _ := json.Marshal(r)
2573    return string(b)
2574}
2575
2576// FromJsonString It is highly **NOT** recommended to use this function
2577// because it has no param check, nor strict type check
2578func (r *DestroyDCDBInstanceResponse) FromJsonString(s string) error {
2579	return json.Unmarshal([]byte(s), &r)
2580}
2581
2582type DestroyHourDCDBInstanceRequest struct {
2583	*tchttp.BaseRequest
2584
2585	// 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
2586	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2587}
2588
2589func (r *DestroyHourDCDBInstanceRequest) ToJsonString() string {
2590    b, _ := json.Marshal(r)
2591    return string(b)
2592}
2593
2594// FromJsonString It is highly **NOT** recommended to use this function
2595// because it has no param check, nor strict type check
2596func (r *DestroyHourDCDBInstanceRequest) FromJsonString(s string) error {
2597	f := make(map[string]interface{})
2598	if err := json.Unmarshal([]byte(s), &f); err != nil {
2599		return err
2600	}
2601	delete(f, "InstanceId")
2602	if len(f) > 0 {
2603		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DestroyHourDCDBInstanceRequest has unknown keys!", "")
2604	}
2605	return json.Unmarshal([]byte(s), &r)
2606}
2607
2608type DestroyHourDCDBInstanceResponse struct {
2609	*tchttp.BaseResponse
2610	Response *struct {
2611
2612		// 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/557/56485)
2613		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
2614
2615		// 实例 ID,与入参InstanceId一致。
2616		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2617
2618		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2619		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2620	} `json:"Response"`
2621}
2622
2623func (r *DestroyHourDCDBInstanceResponse) ToJsonString() string {
2624    b, _ := json.Marshal(r)
2625    return string(b)
2626}
2627
2628// FromJsonString It is highly **NOT** recommended to use this function
2629// because it has no param check, nor strict type check
2630func (r *DestroyHourDCDBInstanceResponse) FromJsonString(s string) error {
2631	return json.Unmarshal([]byte(s), &r)
2632}
2633
2634type DisassociateSecurityGroupsRequest struct {
2635	*tchttp.BaseRequest
2636
2637	// 数据库引擎名称,本接口取值:dcdb。
2638	Product *string `json:"Product,omitempty" name:"Product"`
2639
2640	// 安全组Id。
2641	SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"`
2642
2643	// 实例ID列表,一个或者多个实例Id组成的数组。
2644	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
2645}
2646
2647func (r *DisassociateSecurityGroupsRequest) ToJsonString() string {
2648    b, _ := json.Marshal(r)
2649    return string(b)
2650}
2651
2652// FromJsonString It is highly **NOT** recommended to use this function
2653// because it has no param check, nor strict type check
2654func (r *DisassociateSecurityGroupsRequest) FromJsonString(s string) error {
2655	f := make(map[string]interface{})
2656	if err := json.Unmarshal([]byte(s), &f); err != nil {
2657		return err
2658	}
2659	delete(f, "Product")
2660	delete(f, "SecurityGroupId")
2661	delete(f, "InstanceIds")
2662	if len(f) > 0 {
2663		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisassociateSecurityGroupsRequest has unknown keys!", "")
2664	}
2665	return json.Unmarshal([]byte(s), &r)
2666}
2667
2668type DisassociateSecurityGroupsResponse struct {
2669	*tchttp.BaseResponse
2670	Response *struct {
2671
2672		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2673		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2674	} `json:"Response"`
2675}
2676
2677func (r *DisassociateSecurityGroupsResponse) ToJsonString() string {
2678    b, _ := json.Marshal(r)
2679    return string(b)
2680}
2681
2682// FromJsonString It is highly **NOT** recommended to use this function
2683// because it has no param check, nor strict type check
2684func (r *DisassociateSecurityGroupsResponse) FromJsonString(s string) error {
2685	return json.Unmarshal([]byte(s), &r)
2686}
2687
2688type ExpandShardConfig struct {
2689
2690	// 分片ID数组
2691	ShardInstanceIds []*string `json:"ShardInstanceIds,omitempty" name:"ShardInstanceIds"`
2692
2693	// 分片内存大小,单位 GB
2694	ShardMemory *int64 `json:"ShardMemory,omitempty" name:"ShardMemory"`
2695
2696	// 分片存储大小,单位 GB
2697	ShardStorage *int64 `json:"ShardStorage,omitempty" name:"ShardStorage"`
2698}
2699
2700type FlushBinlogRequest struct {
2701	*tchttp.BaseRequest
2702
2703	// 实例ID
2704	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2705}
2706
2707func (r *FlushBinlogRequest) ToJsonString() string {
2708    b, _ := json.Marshal(r)
2709    return string(b)
2710}
2711
2712// FromJsonString It is highly **NOT** recommended to use this function
2713// because it has no param check, nor strict type check
2714func (r *FlushBinlogRequest) FromJsonString(s string) error {
2715	f := make(map[string]interface{})
2716	if err := json.Unmarshal([]byte(s), &f); err != nil {
2717		return err
2718	}
2719	delete(f, "InstanceId")
2720	if len(f) > 0 {
2721		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "FlushBinlogRequest has unknown keys!", "")
2722	}
2723	return json.Unmarshal([]byte(s), &r)
2724}
2725
2726type FlushBinlogResponse struct {
2727	*tchttp.BaseResponse
2728	Response *struct {
2729
2730		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2731		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2732	} `json:"Response"`
2733}
2734
2735func (r *FlushBinlogResponse) ToJsonString() string {
2736    b, _ := json.Marshal(r)
2737    return string(b)
2738}
2739
2740// FromJsonString It is highly **NOT** recommended to use this function
2741// because it has no param check, nor strict type check
2742func (r *FlushBinlogResponse) FromJsonString(s string) error {
2743	return json.Unmarshal([]byte(s), &r)
2744}
2745
2746type GrantAccountPrivilegesRequest struct {
2747	*tchttp.BaseRequest
2748
2749	// 实例 ID,形如:dcdbt-ow728lmc。
2750	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2751
2752	// 登录用户名。
2753	UserName *string `json:"UserName,omitempty" name:"UserName"`
2754
2755	// 用户允许的访问 host,用户名+host唯一确定一个账号。
2756	Host *string `json:"Host,omitempty" name:"Host"`
2757
2758	// 数据库名。如果为 \*,表示查询全局权限(即 \*.\*),此时忽略 Type 和 Object 参数
2759	DbName *string `json:"DbName,omitempty" name:"DbName"`
2760
2761	// 全局权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER,SHOW DATABASES
2762	// 库权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER
2763	// 表/视图权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE VIEW,SHOW VIEW,TRIGGER
2764	// 存储过程/函数权限: ALTER ROUTINE,EXECUTE
2765	// 字段权限: INSERT,REFERENCES,SELECT,UPDATE
2766	Privileges []*string `json:"Privileges,omitempty" name:"Privileges"`
2767
2768	// 类型,可以填入 table 、 view 、 proc 、 func 和 \*。当 DbName 为具体数据库名,Type为 \* 时,表示设置该数据库权限(即db.\*),此时忽略 Object 参数
2769	Type *string `json:"Type,omitempty" name:"Type"`
2770
2771	// 具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 \* 或者为空
2772	Object *string `json:"Object,omitempty" name:"Object"`
2773
2774	// 当 Type=table 时,ColName 为 \* 表示对表授权,如果为具体字段名,表示对字段授权
2775	ColName *string `json:"ColName,omitempty" name:"ColName"`
2776}
2777
2778func (r *GrantAccountPrivilegesRequest) ToJsonString() string {
2779    b, _ := json.Marshal(r)
2780    return string(b)
2781}
2782
2783// FromJsonString It is highly **NOT** recommended to use this function
2784// because it has no param check, nor strict type check
2785func (r *GrantAccountPrivilegesRequest) FromJsonString(s string) error {
2786	f := make(map[string]interface{})
2787	if err := json.Unmarshal([]byte(s), &f); err != nil {
2788		return err
2789	}
2790	delete(f, "InstanceId")
2791	delete(f, "UserName")
2792	delete(f, "Host")
2793	delete(f, "DbName")
2794	delete(f, "Privileges")
2795	delete(f, "Type")
2796	delete(f, "Object")
2797	delete(f, "ColName")
2798	if len(f) > 0 {
2799		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GrantAccountPrivilegesRequest has unknown keys!", "")
2800	}
2801	return json.Unmarshal([]byte(s), &r)
2802}
2803
2804type GrantAccountPrivilegesResponse struct {
2805	*tchttp.BaseResponse
2806	Response *struct {
2807
2808		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2809		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2810	} `json:"Response"`
2811}
2812
2813func (r *GrantAccountPrivilegesResponse) ToJsonString() string {
2814    b, _ := json.Marshal(r)
2815    return string(b)
2816}
2817
2818// FromJsonString It is highly **NOT** recommended to use this function
2819// because it has no param check, nor strict type check
2820func (r *GrantAccountPrivilegesResponse) FromJsonString(s string) error {
2821	return json.Unmarshal([]byte(s), &r)
2822}
2823
2824type InitDCDBInstancesRequest struct {
2825	*tchttp.BaseRequest
2826
2827	// 待初始化的实例ID列表,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
2828	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
2829
2830	// 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步)。
2831	Params []*DBParamValue `json:"Params,omitempty" name:"Params"`
2832}
2833
2834func (r *InitDCDBInstancesRequest) ToJsonString() string {
2835    b, _ := json.Marshal(r)
2836    return string(b)
2837}
2838
2839// FromJsonString It is highly **NOT** recommended to use this function
2840// because it has no param check, nor strict type check
2841func (r *InitDCDBInstancesRequest) FromJsonString(s string) error {
2842	f := make(map[string]interface{})
2843	if err := json.Unmarshal([]byte(s), &f); err != nil {
2844		return err
2845	}
2846	delete(f, "InstanceIds")
2847	delete(f, "Params")
2848	if len(f) > 0 {
2849		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InitDCDBInstancesRequest has unknown keys!", "")
2850	}
2851	return json.Unmarshal([]byte(s), &r)
2852}
2853
2854type InitDCDBInstancesResponse struct {
2855	*tchttp.BaseResponse
2856	Response *struct {
2857
2858		// 异步任务ID,可通过 DescribeFlow 查询任务状态。
2859		FlowIds []*uint64 `json:"FlowIds,omitempty" name:"FlowIds"`
2860
2861		// 透传入参。
2862		InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
2863
2864		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2865		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2866	} `json:"Response"`
2867}
2868
2869func (r *InitDCDBInstancesResponse) ToJsonString() string {
2870    b, _ := json.Marshal(r)
2871    return string(b)
2872}
2873
2874// FromJsonString It is highly **NOT** recommended to use this function
2875// because it has no param check, nor strict type check
2876func (r *InitDCDBInstancesResponse) FromJsonString(s string) error {
2877	return json.Unmarshal([]byte(s), &r)
2878}
2879
2880type KillSessionRequest struct {
2881	*tchttp.BaseRequest
2882
2883	// 实例ID
2884	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2885
2886	// 会话ID列表
2887	SessionId []*int64 `json:"SessionId,omitempty" name:"SessionId"`
2888
2889	// 分片ID,与ShardSerialId设置一个
2890	ShardId *string `json:"ShardId,omitempty" name:"ShardId"`
2891
2892	// 分片序列ID,与ShardId设置一个
2893	ShardSerialId *string `json:"ShardSerialId,omitempty" name:"ShardSerialId"`
2894}
2895
2896func (r *KillSessionRequest) ToJsonString() string {
2897    b, _ := json.Marshal(r)
2898    return string(b)
2899}
2900
2901// FromJsonString It is highly **NOT** recommended to use this function
2902// because it has no param check, nor strict type check
2903func (r *KillSessionRequest) FromJsonString(s string) error {
2904	f := make(map[string]interface{})
2905	if err := json.Unmarshal([]byte(s), &f); err != nil {
2906		return err
2907	}
2908	delete(f, "InstanceId")
2909	delete(f, "SessionId")
2910	delete(f, "ShardId")
2911	delete(f, "ShardSerialId")
2912	if len(f) > 0 {
2913		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "KillSessionRequest has unknown keys!", "")
2914	}
2915	return json.Unmarshal([]byte(s), &r)
2916}
2917
2918type KillSessionResponse struct {
2919	*tchttp.BaseResponse
2920	Response *struct {
2921
2922		// 任务ID
2923		TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
2924
2925		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2926		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2927	} `json:"Response"`
2928}
2929
2930func (r *KillSessionResponse) ToJsonString() string {
2931    b, _ := json.Marshal(r)
2932    return string(b)
2933}
2934
2935// FromJsonString It is highly **NOT** recommended to use this function
2936// because it has no param check, nor strict type check
2937func (r *KillSessionResponse) FromJsonString(s string) error {
2938	return json.Unmarshal([]byte(s), &r)
2939}
2940
2941type LogFileInfo struct {
2942
2943	// Log最后修改时间
2944	Mtime *uint64 `json:"Mtime,omitempty" name:"Mtime"`
2945
2946	// 文件长度
2947	Length *uint64 `json:"Length,omitempty" name:"Length"`
2948
2949	// 下载Log时用到的统一资源标识符
2950	Uri *string `json:"Uri,omitempty" name:"Uri"`
2951
2952	// 文件名
2953	FileName *string `json:"FileName,omitempty" name:"FileName"`
2954}
2955
2956type ModifyAccountDescriptionRequest struct {
2957	*tchttp.BaseRequest
2958
2959	// 实例 ID,形如:dcdbt-ow728lmc。
2960	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
2961
2962	// 登录用户名。
2963	UserName *string `json:"UserName,omitempty" name:"UserName"`
2964
2965	// 用户允许的访问 host,用户名+host唯一确定一个账号。
2966	Host *string `json:"Host,omitempty" name:"Host"`
2967
2968	// 新的账号备注,长度 0~256。
2969	Description *string `json:"Description,omitempty" name:"Description"`
2970}
2971
2972func (r *ModifyAccountDescriptionRequest) ToJsonString() string {
2973    b, _ := json.Marshal(r)
2974    return string(b)
2975}
2976
2977// FromJsonString It is highly **NOT** recommended to use this function
2978// because it has no param check, nor strict type check
2979func (r *ModifyAccountDescriptionRequest) FromJsonString(s string) error {
2980	f := make(map[string]interface{})
2981	if err := json.Unmarshal([]byte(s), &f); err != nil {
2982		return err
2983	}
2984	delete(f, "InstanceId")
2985	delete(f, "UserName")
2986	delete(f, "Host")
2987	delete(f, "Description")
2988	if len(f) > 0 {
2989		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAccountDescriptionRequest has unknown keys!", "")
2990	}
2991	return json.Unmarshal([]byte(s), &r)
2992}
2993
2994type ModifyAccountDescriptionResponse struct {
2995	*tchttp.BaseResponse
2996	Response *struct {
2997
2998		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2999		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3000	} `json:"Response"`
3001}
3002
3003func (r *ModifyAccountDescriptionResponse) ToJsonString() string {
3004    b, _ := json.Marshal(r)
3005    return string(b)
3006}
3007
3008// FromJsonString It is highly **NOT** recommended to use this function
3009// because it has no param check, nor strict type check
3010func (r *ModifyAccountDescriptionResponse) FromJsonString(s string) error {
3011	return json.Unmarshal([]byte(s), &r)
3012}
3013
3014type ModifyDBInstanceSecurityGroupsRequest struct {
3015	*tchttp.BaseRequest
3016
3017	// 数据库引擎名称,本接口取值:dcdb。
3018	Product *string `json:"Product,omitempty" name:"Product"`
3019
3020	// 实例ID。
3021	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3022
3023	// 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。
3024	SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
3025}
3026
3027func (r *ModifyDBInstanceSecurityGroupsRequest) ToJsonString() string {
3028    b, _ := json.Marshal(r)
3029    return string(b)
3030}
3031
3032// FromJsonString It is highly **NOT** recommended to use this function
3033// because it has no param check, nor strict type check
3034func (r *ModifyDBInstanceSecurityGroupsRequest) FromJsonString(s string) error {
3035	f := make(map[string]interface{})
3036	if err := json.Unmarshal([]byte(s), &f); err != nil {
3037		return err
3038	}
3039	delete(f, "Product")
3040	delete(f, "InstanceId")
3041	delete(f, "SecurityGroupIds")
3042	if len(f) > 0 {
3043		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBInstanceSecurityGroupsRequest has unknown keys!", "")
3044	}
3045	return json.Unmarshal([]byte(s), &r)
3046}
3047
3048type ModifyDBInstanceSecurityGroupsResponse struct {
3049	*tchttp.BaseResponse
3050	Response *struct {
3051
3052		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3053		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3054	} `json:"Response"`
3055}
3056
3057func (r *ModifyDBInstanceSecurityGroupsResponse) ToJsonString() string {
3058    b, _ := json.Marshal(r)
3059    return string(b)
3060}
3061
3062// FromJsonString It is highly **NOT** recommended to use this function
3063// because it has no param check, nor strict type check
3064func (r *ModifyDBInstanceSecurityGroupsResponse) FromJsonString(s string) error {
3065	return json.Unmarshal([]byte(s), &r)
3066}
3067
3068type ModifyDBInstancesProjectRequest struct {
3069	*tchttp.BaseRequest
3070
3071	// 待修改的实例ID列表。实例 ID 形如:dcdbt-ow728lmc。
3072	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
3073
3074	// 要分配的项目 ID,可以通过 DescribeProjects 查询项目列表接口获取。
3075	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
3076}
3077
3078func (r *ModifyDBInstancesProjectRequest) ToJsonString() string {
3079    b, _ := json.Marshal(r)
3080    return string(b)
3081}
3082
3083// FromJsonString It is highly **NOT** recommended to use this function
3084// because it has no param check, nor strict type check
3085func (r *ModifyDBInstancesProjectRequest) FromJsonString(s string) error {
3086	f := make(map[string]interface{})
3087	if err := json.Unmarshal([]byte(s), &f); err != nil {
3088		return err
3089	}
3090	delete(f, "InstanceIds")
3091	delete(f, "ProjectId")
3092	if len(f) > 0 {
3093		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBInstancesProjectRequest has unknown keys!", "")
3094	}
3095	return json.Unmarshal([]byte(s), &r)
3096}
3097
3098type ModifyDBInstancesProjectResponse struct {
3099	*tchttp.BaseResponse
3100	Response *struct {
3101
3102		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3103		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3104	} `json:"Response"`
3105}
3106
3107func (r *ModifyDBInstancesProjectResponse) ToJsonString() string {
3108    b, _ := json.Marshal(r)
3109    return string(b)
3110}
3111
3112// FromJsonString It is highly **NOT** recommended to use this function
3113// because it has no param check, nor strict type check
3114func (r *ModifyDBInstancesProjectResponse) FromJsonString(s string) error {
3115	return json.Unmarshal([]byte(s), &r)
3116}
3117
3118type ModifyDBParametersRequest struct {
3119	*tchttp.BaseRequest
3120
3121	// 实例 ID,形如:dcdbt-ow728lmc。
3122	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3123
3124	// 参数列表,每一个元素是Param和Value的组合
3125	Params []*DBParamValue `json:"Params,omitempty" name:"Params"`
3126}
3127
3128func (r *ModifyDBParametersRequest) ToJsonString() string {
3129    b, _ := json.Marshal(r)
3130    return string(b)
3131}
3132
3133// FromJsonString It is highly **NOT** recommended to use this function
3134// because it has no param check, nor strict type check
3135func (r *ModifyDBParametersRequest) FromJsonString(s string) error {
3136	f := make(map[string]interface{})
3137	if err := json.Unmarshal([]byte(s), &f); err != nil {
3138		return err
3139	}
3140	delete(f, "InstanceId")
3141	delete(f, "Params")
3142	if len(f) > 0 {
3143		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBParametersRequest has unknown keys!", "")
3144	}
3145	return json.Unmarshal([]byte(s), &r)
3146}
3147
3148type ModifyDBParametersResponse struct {
3149	*tchttp.BaseResponse
3150	Response *struct {
3151
3152		// 实例 ID,形如:dcdbt-ow728lmc。
3153		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3154
3155		// 各参数修改结果
3156		Result []*ParamModifyResult `json:"Result,omitempty" name:"Result"`
3157
3158		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3159		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3160	} `json:"Response"`
3161}
3162
3163func (r *ModifyDBParametersResponse) ToJsonString() string {
3164    b, _ := json.Marshal(r)
3165    return string(b)
3166}
3167
3168// FromJsonString It is highly **NOT** recommended to use this function
3169// because it has no param check, nor strict type check
3170func (r *ModifyDBParametersResponse) FromJsonString(s string) error {
3171	return json.Unmarshal([]byte(s), &r)
3172}
3173
3174type ModifyDBSyncModeRequest struct {
3175	*tchttp.BaseRequest
3176
3177	// 待修改同步模式的实例ID。形如:dcdbt-ow728lmc。
3178	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3179
3180	// 同步模式:0 异步,1 强同步, 2 强同步可退化
3181	SyncMode *int64 `json:"SyncMode,omitempty" name:"SyncMode"`
3182}
3183
3184func (r *ModifyDBSyncModeRequest) ToJsonString() string {
3185    b, _ := json.Marshal(r)
3186    return string(b)
3187}
3188
3189// FromJsonString It is highly **NOT** recommended to use this function
3190// because it has no param check, nor strict type check
3191func (r *ModifyDBSyncModeRequest) FromJsonString(s string) error {
3192	f := make(map[string]interface{})
3193	if err := json.Unmarshal([]byte(s), &f); err != nil {
3194		return err
3195	}
3196	delete(f, "InstanceId")
3197	delete(f, "SyncMode")
3198	if len(f) > 0 {
3199		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBSyncModeRequest has unknown keys!", "")
3200	}
3201	return json.Unmarshal([]byte(s), &r)
3202}
3203
3204type ModifyDBSyncModeResponse struct {
3205	*tchttp.BaseResponse
3206	Response *struct {
3207
3208		// 异步任务Id,可通过 DescribeFlow 查询任务状态。
3209		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
3210
3211		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3212		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3213	} `json:"Response"`
3214}
3215
3216func (r *ModifyDBSyncModeResponse) ToJsonString() string {
3217    b, _ := json.Marshal(r)
3218    return string(b)
3219}
3220
3221// FromJsonString It is highly **NOT** recommended to use this function
3222// because it has no param check, nor strict type check
3223func (r *ModifyDBSyncModeResponse) FromJsonString(s string) error {
3224	return json.Unmarshal([]byte(s), &r)
3225}
3226
3227type ModifyRealServerAccessStrategyRequest struct {
3228	*tchttp.BaseRequest
3229
3230	// 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
3231	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3232
3233	// RS就近模式, 0-无策略, 1-可用区就近访问。
3234	RsAccessStrategy *int64 `json:"RsAccessStrategy,omitempty" name:"RsAccessStrategy"`
3235}
3236
3237func (r *ModifyRealServerAccessStrategyRequest) ToJsonString() string {
3238    b, _ := json.Marshal(r)
3239    return string(b)
3240}
3241
3242// FromJsonString It is highly **NOT** recommended to use this function
3243// because it has no param check, nor strict type check
3244func (r *ModifyRealServerAccessStrategyRequest) FromJsonString(s string) error {
3245	f := make(map[string]interface{})
3246	if err := json.Unmarshal([]byte(s), &f); err != nil {
3247		return err
3248	}
3249	delete(f, "InstanceId")
3250	delete(f, "RsAccessStrategy")
3251	if len(f) > 0 {
3252		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRealServerAccessStrategyRequest has unknown keys!", "")
3253	}
3254	return json.Unmarshal([]byte(s), &r)
3255}
3256
3257type ModifyRealServerAccessStrategyResponse struct {
3258	*tchttp.BaseResponse
3259	Response *struct {
3260
3261		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3262		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3263	} `json:"Response"`
3264}
3265
3266func (r *ModifyRealServerAccessStrategyResponse) ToJsonString() string {
3267    b, _ := json.Marshal(r)
3268    return string(b)
3269}
3270
3271// FromJsonString It is highly **NOT** recommended to use this function
3272// because it has no param check, nor strict type check
3273func (r *ModifyRealServerAccessStrategyResponse) FromJsonString(s string) error {
3274	return json.Unmarshal([]byte(s), &r)
3275}
3276
3277type OpenDBExtranetAccessRequest struct {
3278	*tchttp.BaseRequest
3279
3280	// 待开放外网访问的实例ID。形如:dcdbt-ow728lmc。
3281	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3282
3283	// 是否IPv6,默认0
3284	Ipv6Flag *int64 `json:"Ipv6Flag,omitempty" name:"Ipv6Flag"`
3285}
3286
3287func (r *OpenDBExtranetAccessRequest) ToJsonString() string {
3288    b, _ := json.Marshal(r)
3289    return string(b)
3290}
3291
3292// FromJsonString It is highly **NOT** recommended to use this function
3293// because it has no param check, nor strict type check
3294func (r *OpenDBExtranetAccessRequest) FromJsonString(s string) error {
3295	f := make(map[string]interface{})
3296	if err := json.Unmarshal([]byte(s), &f); err != nil {
3297		return err
3298	}
3299	delete(f, "InstanceId")
3300	delete(f, "Ipv6Flag")
3301	if len(f) > 0 {
3302		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OpenDBExtranetAccessRequest has unknown keys!", "")
3303	}
3304	return json.Unmarshal([]byte(s), &r)
3305}
3306
3307type OpenDBExtranetAccessResponse struct {
3308	*tchttp.BaseResponse
3309	Response *struct {
3310
3311		// 异步任务ID,可通过 DescribeFlow 查询任务状态。
3312		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
3313
3314		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3315		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3316	} `json:"Response"`
3317}
3318
3319func (r *OpenDBExtranetAccessResponse) ToJsonString() string {
3320    b, _ := json.Marshal(r)
3321    return string(b)
3322}
3323
3324// FromJsonString It is highly **NOT** recommended to use this function
3325// because it has no param check, nor strict type check
3326func (r *OpenDBExtranetAccessResponse) FromJsonString(s string) error {
3327	return json.Unmarshal([]byte(s), &r)
3328}
3329
3330type ParamConstraint struct {
3331
3332	// 约束类型,如枚举enum,区间section
3333	Type *string `json:"Type,omitempty" name:"Type"`
3334
3335	// 约束类型为enum时的可选值列表
3336	Enum *string `json:"Enum,omitempty" name:"Enum"`
3337
3338	// 约束类型为section时的范围
3339	// 注意:此字段可能返回 null,表示取不到有效值。
3340	Range *ConstraintRange `json:"Range,omitempty" name:"Range"`
3341
3342	// 约束类型为string时的可选值列表
3343	String *string `json:"String,omitempty" name:"String"`
3344}
3345
3346type ParamDesc struct {
3347
3348	// 参数名字
3349	Param *string `json:"Param,omitempty" name:"Param"`
3350
3351	// 当前参数值
3352	Value *string `json:"Value,omitempty" name:"Value"`
3353
3354	// 设置过的值,参数生效后,该值和value一样。未设置过就不返回该字段。
3355	// 注意:此字段可能返回 null,表示取不到有效值。
3356	SetValue *string `json:"SetValue,omitempty" name:"SetValue"`
3357
3358	// 系统默认值
3359	Default *string `json:"Default,omitempty" name:"Default"`
3360
3361	// 参数限制
3362	Constraint *ParamConstraint `json:"Constraint,omitempty" name:"Constraint"`
3363
3364	// 是否有设置过值,false:没有设置过值,true:有设置过值。
3365	HaveSetValue *bool `json:"HaveSetValue,omitempty" name:"HaveSetValue"`
3366}
3367
3368type ParamModifyResult struct {
3369
3370	// 修改参数名字
3371	Param *string `json:"Param,omitempty" name:"Param"`
3372
3373	// 参数修改结果。0表示修改成功;-1表示修改失败;-2表示该参数值非法
3374	Code *int64 `json:"Code,omitempty" name:"Code"`
3375}
3376
3377type Project struct {
3378
3379	// 项目ID
3380	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
3381
3382	// 资源拥有者(主账号)uin
3383	OwnerUin *int64 `json:"OwnerUin,omitempty" name:"OwnerUin"`
3384
3385	// 应用Id
3386	AppId *int64 `json:"AppId,omitempty" name:"AppId"`
3387
3388	// 项目名称
3389	Name *string `json:"Name,omitempty" name:"Name"`
3390
3391	// 创建者uin
3392	CreatorUin *int64 `json:"CreatorUin,omitempty" name:"CreatorUin"`
3393
3394	// 来源平台
3395	SrcPlat *string `json:"SrcPlat,omitempty" name:"SrcPlat"`
3396
3397	// 来源AppId
3398	SrcAppId *int64 `json:"SrcAppId,omitempty" name:"SrcAppId"`
3399
3400	// 项目状态,0正常,-1关闭。默认项目为3
3401	Status *int64 `json:"Status,omitempty" name:"Status"`
3402
3403	// 创建时间
3404	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
3405
3406	// 是否默认项目,1 是,0 不是
3407	IsDefault *int64 `json:"IsDefault,omitempty" name:"IsDefault"`
3408
3409	// 描述信息
3410	Info *string `json:"Info,omitempty" name:"Info"`
3411}
3412
3413type RegionInfo struct {
3414
3415	// 地域英文ID
3416	Region *string `json:"Region,omitempty" name:"Region"`
3417
3418	// 地域数字ID
3419	RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"`
3420
3421	// 地域中文名
3422	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`
3423
3424	// 可用区列表
3425	ZoneList []*ZonesInfo `json:"ZoneList,omitempty" name:"ZoneList"`
3426
3427	// 可选择的主可用区和从可用区
3428	AvailableChoice []*ShardZoneChooseInfo `json:"AvailableChoice,omitempty" name:"AvailableChoice"`
3429}
3430
3431type RenewDCDBInstanceRequest struct {
3432	*tchttp.BaseRequest
3433
3434	// 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
3435	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3436
3437	// 续费时长,单位:月。
3438	Period *int64 `json:"Period,omitempty" name:"Period"`
3439
3440	// 是否自动使用代金券进行支付,默认不使用。
3441	AutoVoucher *bool `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
3442
3443	// 代金券ID列表,目前仅支持指定一张代金券。
3444	VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"`
3445}
3446
3447func (r *RenewDCDBInstanceRequest) ToJsonString() string {
3448    b, _ := json.Marshal(r)
3449    return string(b)
3450}
3451
3452// FromJsonString It is highly **NOT** recommended to use this function
3453// because it has no param check, nor strict type check
3454func (r *RenewDCDBInstanceRequest) FromJsonString(s string) error {
3455	f := make(map[string]interface{})
3456	if err := json.Unmarshal([]byte(s), &f); err != nil {
3457		return err
3458	}
3459	delete(f, "InstanceId")
3460	delete(f, "Period")
3461	delete(f, "AutoVoucher")
3462	delete(f, "VoucherIds")
3463	if len(f) > 0 {
3464		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RenewDCDBInstanceRequest has unknown keys!", "")
3465	}
3466	return json.Unmarshal([]byte(s), &r)
3467}
3468
3469type RenewDCDBInstanceResponse struct {
3470	*tchttp.BaseResponse
3471	Response *struct {
3472
3473		// 长订单号。可以据此调用 DescribeOrders
3474	//  查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。
3475		DealName *string `json:"DealName,omitempty" name:"DealName"`
3476
3477		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3478		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3479	} `json:"Response"`
3480}
3481
3482func (r *RenewDCDBInstanceResponse) ToJsonString() string {
3483    b, _ := json.Marshal(r)
3484    return string(b)
3485}
3486
3487// FromJsonString It is highly **NOT** recommended to use this function
3488// because it has no param check, nor strict type check
3489func (r *RenewDCDBInstanceResponse) FromJsonString(s string) error {
3490	return json.Unmarshal([]byte(s), &r)
3491}
3492
3493type ResetAccountPasswordRequest struct {
3494	*tchttp.BaseRequest
3495
3496	// 实例 ID,形如:dcdbt-ow728lmc。
3497	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3498
3499	// 登录用户名。
3500	UserName *string `json:"UserName,omitempty" name:"UserName"`
3501
3502	// 用户允许的访问 host,用户名+host唯一确定一个账号。
3503	Host *string `json:"Host,omitempty" name:"Host"`
3504
3505	// 新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。
3506	Password *string `json:"Password,omitempty" name:"Password"`
3507}
3508
3509func (r *ResetAccountPasswordRequest) ToJsonString() string {
3510    b, _ := json.Marshal(r)
3511    return string(b)
3512}
3513
3514// FromJsonString It is highly **NOT** recommended to use this function
3515// because it has no param check, nor strict type check
3516func (r *ResetAccountPasswordRequest) FromJsonString(s string) error {
3517	f := make(map[string]interface{})
3518	if err := json.Unmarshal([]byte(s), &f); err != nil {
3519		return err
3520	}
3521	delete(f, "InstanceId")
3522	delete(f, "UserName")
3523	delete(f, "Host")
3524	delete(f, "Password")
3525	if len(f) > 0 {
3526		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ResetAccountPasswordRequest has unknown keys!", "")
3527	}
3528	return json.Unmarshal([]byte(s), &r)
3529}
3530
3531type ResetAccountPasswordResponse struct {
3532	*tchttp.BaseResponse
3533	Response *struct {
3534
3535		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3536		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3537	} `json:"Response"`
3538}
3539
3540func (r *ResetAccountPasswordResponse) ToJsonString() string {
3541    b, _ := json.Marshal(r)
3542    return string(b)
3543}
3544
3545// FromJsonString It is highly **NOT** recommended to use this function
3546// because it has no param check, nor strict type check
3547func (r *ResetAccountPasswordResponse) FromJsonString(s string) error {
3548	return json.Unmarshal([]byte(s), &r)
3549}
3550
3551type ResourceTag struct {
3552
3553	// 标签键key
3554	TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
3555
3556	// 标签值value
3557	TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
3558}
3559
3560type SecurityGroup struct {
3561
3562	// 项目ID
3563	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
3564
3565	// 创建时间,时间格式:yyyy-mm-dd hh:mm:ss
3566	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
3567
3568	// 安全组ID
3569	SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"`
3570
3571	// 安全组名称
3572	SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"`
3573
3574	// 安全组备注
3575	SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"`
3576
3577	// 入站规则
3578	Inbound []*SecurityGroupBound `json:"Inbound,omitempty" name:"Inbound"`
3579
3580	// 出站规则
3581	Outbound []*SecurityGroupBound `json:"Outbound,omitempty" name:"Outbound"`
3582}
3583
3584type SecurityGroupBound struct {
3585
3586	// 策略,ACCEPT 或者 DROP
3587	Action *string `json:"Action,omitempty" name:"Action"`
3588
3589	// 来源 IP 或 IP 段,例如192.168.0.0/16
3590	CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"`
3591
3592	// 端口
3593	PortRange *string `json:"PortRange,omitempty" name:"PortRange"`
3594
3595	// 网络协议,支持 UDP、TCP 等
3596	IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"`
3597}
3598
3599type ShardInfo struct {
3600
3601	// 分片ID
3602	ShardInstanceId *string `json:"ShardInstanceId,omitempty" name:"ShardInstanceId"`
3603
3604	// 分片Set ID
3605	ShardSerialId *string `json:"ShardSerialId,omitempty" name:"ShardSerialId"`
3606
3607	// 状态:0 创建中,1 流程处理中, 2 运行中,3 分片未初始化,-2 分片已删除
3608	Status *int64 `json:"Status,omitempty" name:"Status"`
3609
3610	// 创建时间
3611	Createtime *string `json:"Createtime,omitempty" name:"Createtime"`
3612
3613	// 内存大小,单位 GB
3614	Memory *int64 `json:"Memory,omitempty" name:"Memory"`
3615
3616	// 存储大小,单位 GB
3617	Storage *int64 `json:"Storage,omitempty" name:"Storage"`
3618
3619	// 分片数字ID
3620	ShardId *int64 `json:"ShardId,omitempty" name:"ShardId"`
3621
3622	// 节点数,2 为一主一从, 3 为一主二从
3623	NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"`
3624
3625	// 产品类型 Id(过时字段,请勿依赖该值)
3626	Pid *int64 `json:"Pid,omitempty" name:"Pid"`
3627
3628	// Cpu核数
3629	Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"`
3630}
3631
3632type ShardZoneChooseInfo struct {
3633
3634	// 主可用区
3635	MasterZone *ZonesInfo `json:"MasterZone,omitempty" name:"MasterZone"`
3636
3637	// 可选的从可用区
3638	SlaveZones []*ZonesInfo `json:"SlaveZones,omitempty" name:"SlaveZones"`
3639}
3640
3641type SpecConfig struct {
3642
3643	// 规格机型
3644	Machine *string `json:"Machine,omitempty" name:"Machine"`
3645
3646	// 规格列表
3647	SpecConfigInfos []*SpecConfigInfo `json:"SpecConfigInfos,omitempty" name:"SpecConfigInfos"`
3648}
3649
3650type SpecConfigInfo struct {
3651
3652	// 节点个数,2 表示一主一从,3 表示一主二从
3653	NodeCount *uint64 `json:"NodeCount,omitempty" name:"NodeCount"`
3654
3655	// 内存大小,单位 GB
3656	Memory *int64 `json:"Memory,omitempty" name:"Memory"`
3657
3658	// 数据盘规格最小值,单位 GB
3659	MinStorage *int64 `json:"MinStorage,omitempty" name:"MinStorage"`
3660
3661	// 数据盘规格最大值,单位 GB
3662	MaxStorage *int64 `json:"MaxStorage,omitempty" name:"MaxStorage"`
3663
3664	// 推荐的使用场景
3665	SuitInfo *string `json:"SuitInfo,omitempty" name:"SuitInfo"`
3666
3667	// 产品类型 Id
3668	Pid *int64 `json:"Pid,omitempty" name:"Pid"`
3669
3670	// 最大 Qps 值
3671	Qps *int64 `json:"Qps,omitempty" name:"Qps"`
3672
3673	// CPU核数
3674	Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
3675}
3676
3677type SplitShardConfig struct {
3678
3679	// 分片ID数组
3680	ShardInstanceIds []*string `json:"ShardInstanceIds,omitempty" name:"ShardInstanceIds"`
3681
3682	// 数据切分比例,固定50%
3683	SplitRate *int64 `json:"SplitRate,omitempty" name:"SplitRate"`
3684
3685	// 分片内存大小,单位 GB
3686	ShardMemory *int64 `json:"ShardMemory,omitempty" name:"ShardMemory"`
3687
3688	// 分片存储大小,单位 GB
3689	ShardStorage *int64 `json:"ShardStorage,omitempty" name:"ShardStorage"`
3690}
3691
3692type SqlLogItem struct {
3693
3694	// 本条日志在消息队列中的偏移量。
3695	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
3696
3697	// 执行本条sql的用户。
3698	User *string `json:"User,omitempty" name:"User"`
3699
3700	// 执行本条sql的客户端IP+端口。
3701	Client *string `json:"Client,omitempty" name:"Client"`
3702
3703	// 数据库名称。
3704	DbName *string `json:"DbName,omitempty" name:"DbName"`
3705
3706	// 执行的sql语句。
3707	Sql *string `json:"Sql,omitempty" name:"Sql"`
3708
3709	// 返回的数据行数。
3710	SelectRowNum *uint64 `json:"SelectRowNum,omitempty" name:"SelectRowNum"`
3711
3712	// 影响行数。
3713	AffectRowNum *uint64 `json:"AffectRowNum,omitempty" name:"AffectRowNum"`
3714
3715	// Sql执行时间戳。
3716	Timestamp *uint64 `json:"Timestamp,omitempty" name:"Timestamp"`
3717
3718	// Sql耗时,单位为毫秒。
3719	TimeCostMs *uint64 `json:"TimeCostMs,omitempty" name:"TimeCostMs"`
3720
3721	// Sql返回码,0为成功。
3722	ResultCode *uint64 `json:"ResultCode,omitempty" name:"ResultCode"`
3723}
3724
3725type TableColumn struct {
3726
3727	// 列名称
3728	Col *string `json:"Col,omitempty" name:"Col"`
3729
3730	// 列类型
3731	Type *string `json:"Type,omitempty" name:"Type"`
3732}
3733
3734type UpgradeDCDBInstanceRequest struct {
3735	*tchttp.BaseRequest
3736
3737	// 待升级的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
3738	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3739
3740	// 升级类型,取值范围:
3741	// <li> ADD: 新增分片 </li>
3742	//  <li> EXPAND: 升级实例中的已有分片 </li>
3743	//  <li> SPLIT: 将已有分片中的数据切分到新增分片上</li>
3744	UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
3745
3746	// 新增分片配置,当UpgradeType为ADD时生效。
3747	AddShardConfig *AddShardConfig `json:"AddShardConfig,omitempty" name:"AddShardConfig"`
3748
3749	// 扩容分片配置,当UpgradeType为EXPAND时生效。
3750	ExpandShardConfig *ExpandShardConfig `json:"ExpandShardConfig,omitempty" name:"ExpandShardConfig"`
3751
3752	// 切分分片配置,当UpgradeType为SPLIT时生效。
3753	SplitShardConfig *SplitShardConfig `json:"SplitShardConfig,omitempty" name:"SplitShardConfig"`
3754
3755	// 是否自动使用代金券进行支付,默认不使用。
3756	AutoVoucher *bool `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
3757
3758	// 代金券ID列表,目前仅支持指定一张代金券。
3759	VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"`
3760}
3761
3762func (r *UpgradeDCDBInstanceRequest) ToJsonString() string {
3763    b, _ := json.Marshal(r)
3764    return string(b)
3765}
3766
3767// FromJsonString It is highly **NOT** recommended to use this function
3768// because it has no param check, nor strict type check
3769func (r *UpgradeDCDBInstanceRequest) FromJsonString(s string) error {
3770	f := make(map[string]interface{})
3771	if err := json.Unmarshal([]byte(s), &f); err != nil {
3772		return err
3773	}
3774	delete(f, "InstanceId")
3775	delete(f, "UpgradeType")
3776	delete(f, "AddShardConfig")
3777	delete(f, "ExpandShardConfig")
3778	delete(f, "SplitShardConfig")
3779	delete(f, "AutoVoucher")
3780	delete(f, "VoucherIds")
3781	if len(f) > 0 {
3782		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpgradeDCDBInstanceRequest has unknown keys!", "")
3783	}
3784	return json.Unmarshal([]byte(s), &r)
3785}
3786
3787type UpgradeDCDBInstanceResponse struct {
3788	*tchttp.BaseResponse
3789	Response *struct {
3790
3791		// 长订单号。可以据此调用 DescribeOrders
3792	//  查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。
3793		DealName *string `json:"DealName,omitempty" name:"DealName"`
3794
3795		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3796		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3797	} `json:"Response"`
3798}
3799
3800func (r *UpgradeDCDBInstanceResponse) ToJsonString() string {
3801    b, _ := json.Marshal(r)
3802    return string(b)
3803}
3804
3805// FromJsonString It is highly **NOT** recommended to use this function
3806// because it has no param check, nor strict type check
3807func (r *UpgradeDCDBInstanceResponse) FromJsonString(s string) error {
3808	return json.Unmarshal([]byte(s), &r)
3809}
3810
3811type UserTaskInfo struct {
3812
3813	// 任务ID
3814	Id *int64 `json:"Id,omitempty" name:"Id"`
3815
3816	// 用户账户ID
3817	AppId *int64 `json:"AppId,omitempty" name:"AppId"`
3818
3819	// 任务状态,0-任务初始化中;1-任务运行中;2-任务成功;3-任务失败
3820	Status *int64 `json:"Status,omitempty" name:"Status"`
3821
3822	// 任务类型,0-实例回档;1-实例创建;2-实例扩容;3-实例迁移;4-实例删除;5-实例重启
3823	UserTaskType *int64 `json:"UserTaskType,omitempty" name:"UserTaskType"`
3824
3825	// 任务创建时间
3826	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
3827
3828	// 任务结束时间
3829	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
3830
3831	// 任务错误信息
3832	ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
3833
3834	// 客户端参数
3835	InputData *string `json:"InputData,omitempty" name:"InputData"`
3836
3837	// 实例ID
3838	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3839
3840	// 实例名称
3841	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
3842
3843	// 地域ID
3844	RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"`
3845}
3846
3847type ZonesInfo struct {
3848
3849	// 可用区英文ID
3850	Zone *string `json:"Zone,omitempty" name:"Zone"`
3851
3852	// 可用区数字ID
3853	ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"`
3854
3855	// 可用区中文名
3856	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`
3857}
3858