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 v20170320 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 Account struct { 24 25 // 新账户的名称 26 User *string `json:"User,omitempty" name:"User"` 27 28 // 新账户的域名 29 Host *string `json:"Host,omitempty" name:"Host"` 30} 31 32type AccountInfo struct { 33 34 // 账号备注信息 35 Notes *string `json:"Notes,omitempty" name:"Notes"` 36 37 // 账号的域名 38 Host *string `json:"Host,omitempty" name:"Host"` 39 40 // 账号的名称 41 User *string `json:"User,omitempty" name:"User"` 42 43 // 账号信息修改时间 44 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` 45 46 // 修改密码的时间 47 ModifyPasswordTime *string `json:"ModifyPasswordTime,omitempty" name:"ModifyPasswordTime"` 48 49 // 该值已废弃 50 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 51 52 // 用户最大可用实例连接数 53 MaxUserConnections *int64 `json:"MaxUserConnections,omitempty" name:"MaxUserConnections"` 54} 55 56type AddTimeWindowRequest struct { 57 *tchttp.BaseRequest 58 59 // 实例ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 60 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 61 62 // 星期一的可维护时间段,其中每一个时间段的格式形如:10:00-12:00;起始时间按半个小时对齐;最短半个小时,最长三个小时;可设置多个时间段。 一周中应至少设置一天的时间窗。下同。 63 Monday []*string `json:"Monday,omitempty" name:"Monday"` 64 65 // 星期二的可维护时间窗口。 一周中应至少设置一天的时间窗。 66 Tuesday []*string `json:"Tuesday,omitempty" name:"Tuesday"` 67 68 // 星期三的可维护时间窗口。 一周中应至少设置一天的时间窗。 69 Wednesday []*string `json:"Wednesday,omitempty" name:"Wednesday"` 70 71 // 星期四的可维护时间窗口。 一周中应至少设置一天的时间窗。 72 Thursday []*string `json:"Thursday,omitempty" name:"Thursday"` 73 74 // 星期五的可维护时间窗口。 一周中应至少设置一天的时间窗。 75 Friday []*string `json:"Friday,omitempty" name:"Friday"` 76 77 // 星期六的可维护时间窗口。 一周中应至少设置一天的时间窗。 78 Saturday []*string `json:"Saturday,omitempty" name:"Saturday"` 79 80 // 星期日的可维护时间窗口。 一周中应至少设置一天的时间窗。 81 Sunday []*string `json:"Sunday,omitempty" name:"Sunday"` 82} 83 84func (r *AddTimeWindowRequest) ToJsonString() string { 85 b, _ := json.Marshal(r) 86 return string(b) 87} 88 89// FromJsonString It is highly **NOT** recommended to use this function 90// because it has no param check, nor strict type check 91func (r *AddTimeWindowRequest) FromJsonString(s string) error { 92 f := make(map[string]interface{}) 93 if err := json.Unmarshal([]byte(s), &f); err != nil { 94 return err 95 } 96 delete(f, "InstanceId") 97 delete(f, "Monday") 98 delete(f, "Tuesday") 99 delete(f, "Wednesday") 100 delete(f, "Thursday") 101 delete(f, "Friday") 102 delete(f, "Saturday") 103 delete(f, "Sunday") 104 if len(f) > 0 { 105 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddTimeWindowRequest has unknown keys!", "") 106 } 107 return json.Unmarshal([]byte(s), &r) 108} 109 110type AddTimeWindowResponse struct { 111 *tchttp.BaseResponse 112 Response *struct { 113 114 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 115 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 116 } `json:"Response"` 117} 118 119func (r *AddTimeWindowResponse) ToJsonString() string { 120 b, _ := json.Marshal(r) 121 return string(b) 122} 123 124// FromJsonString It is highly **NOT** recommended to use this function 125// because it has no param check, nor strict type check 126func (r *AddTimeWindowResponse) FromJsonString(s string) error { 127 return json.Unmarshal([]byte(s), &r) 128} 129 130type AssociateSecurityGroupsRequest struct { 131 *tchttp.BaseRequest 132 133 // 安全组 ID。 134 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 135 136 // 实例 ID 列表,一个或者多个实例 ID 组成的数组。 137 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 138 139 // 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True 140 ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitempty" name:"ForReadonlyInstance"` 141} 142 143func (r *AssociateSecurityGroupsRequest) ToJsonString() string { 144 b, _ := json.Marshal(r) 145 return string(b) 146} 147 148// FromJsonString It is highly **NOT** recommended to use this function 149// because it has no param check, nor strict type check 150func (r *AssociateSecurityGroupsRequest) FromJsonString(s string) error { 151 f := make(map[string]interface{}) 152 if err := json.Unmarshal([]byte(s), &f); err != nil { 153 return err 154 } 155 delete(f, "SecurityGroupId") 156 delete(f, "InstanceIds") 157 delete(f, "ForReadonlyInstance") 158 if len(f) > 0 { 159 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AssociateSecurityGroupsRequest has unknown keys!", "") 160 } 161 return json.Unmarshal([]byte(s), &r) 162} 163 164type AssociateSecurityGroupsResponse struct { 165 *tchttp.BaseResponse 166 Response *struct { 167 168 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 169 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 170 } `json:"Response"` 171} 172 173func (r *AssociateSecurityGroupsResponse) ToJsonString() string { 174 b, _ := json.Marshal(r) 175 return string(b) 176} 177 178// FromJsonString It is highly **NOT** recommended to use this function 179// because it has no param check, nor strict type check 180func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error { 181 return json.Unmarshal([]byte(s), &r) 182} 183 184type AuditFilter struct { 185 186 // 过滤条件参数名称。目前支持: 187 // SrcIp – 客户端 IP; 188 // User – 数据库账户; 189 // DB – 数据库名称; 190 Type *string `json:"Type,omitempty" name:"Type"` 191 192 // 过滤条件匹配类型。目前支持: 193 // INC – 包含; 194 // EXC – 不包含; 195 // EQ – 等于; 196 // NEQ – 不等于; 197 Compare *string `json:"Compare,omitempty" name:"Compare"` 198 199 // 过滤条件匹配值。 200 Value *string `json:"Value,omitempty" name:"Value"` 201} 202 203type AuditLogFile struct { 204 205 // 审计日志文件名称 206 FileName *string `json:"FileName,omitempty" name:"FileName"` 207 208 // 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。 209 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 210 211 // 文件状态值。可能返回的值为: 212 // "creating" - 生成中; 213 // "failed" - 创建失败; 214 // "success" - 已生成; 215 Status *string `json:"Status,omitempty" name:"Status"` 216 217 // 文件大小,单位为 KB。 218 // 注意:此字段可能返回 null,表示取不到有效值。 219 FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"` 220 221 // 审计日志下载地址。 222 // 注意:此字段可能返回 null,表示取不到有效值。 223 DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"` 224 225 // 错误信息。 226 // 注意:此字段可能返回 null,表示取不到有效值。 227 ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` 228} 229 230type AuditLogFilter struct { 231 232 // 客户端地址。 233 Host []*string `json:"Host,omitempty" name:"Host"` 234 235 // 用户名。 236 User []*string `json:"User,omitempty" name:"User"` 237 238 // 数据库名称。 239 DBName []*string `json:"DBName,omitempty" name:"DBName"` 240 241 // 表名称。 242 TableName []*string `json:"TableName,omitempty" name:"TableName"` 243 244 // 审计策略名称。 245 PolicyName []*string `json:"PolicyName,omitempty" name:"PolicyName"` 246 247 // SQL 语句。支持模糊匹配。 248 Sql *string `json:"Sql,omitempty" name:"Sql"` 249 250 // SQL 类型。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。 251 SqlType *string `json:"SqlType,omitempty" name:"SqlType"` 252 253 // 执行时间。单位为:ms。表示筛选执行时间大于该值的审计日志。 254 ExecTime *int64 `json:"ExecTime,omitempty" name:"ExecTime"` 255 256 // 影响行数。表示筛选影响行数大于该值的审计日志。 257 AffectRows *int64 `json:"AffectRows,omitempty" name:"AffectRows"` 258} 259 260type AuditPolicy struct { 261 262 // 审计策略 ID。 263 PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` 264 265 // 审计策略的状态。可能返回的值为: 266 // "creating" - 创建中; 267 // "running" - 运行中; 268 // "paused" - 暂停中; 269 // "failed" - 创建失败。 270 Status *string `json:"Status,omitempty" name:"Status"` 271 272 // 数据库实例 ID。 273 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 274 275 // 审计策略创建时间。格式为 : "2019-03-20 17:09:13"。 276 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 277 278 // 审计策略最后修改时间。格式为 : "2019-03-20 17:09:13"。 279 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` 280 281 // 审计策略名称。 282 PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` 283 284 // 审计规则 ID。 285 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 286 287 // 审计规则名称。 288 // 注意:此字段可能返回 null,表示取不到有效值。 289 RuleName *string `json:"RuleName,omitempty" name:"RuleName"` 290} 291 292type AuditRule struct { 293 294 // 审计规则 Id。 295 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 296 297 // 审计规则创建时间。格式为 : "2019-03-20 17:09:13"。 298 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 299 300 // 审计规则最后修改时间。格式为 : "2019-03-20 17:09:13"。 301 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` 302 303 // 审计规则名称。 304 // 注意:此字段可能返回 null,表示取不到有效值。 305 RuleName *string `json:"RuleName,omitempty" name:"RuleName"` 306 307 // 审计规则描述。 308 // 注意:此字段可能返回 null,表示取不到有效值。 309 Description *string `json:"Description,omitempty" name:"Description"` 310 311 // 审计规则过滤条件。 312 // 注意:此字段可能返回 null,表示取不到有效值。 313 RuleFilters []*AuditFilter `json:"RuleFilters,omitempty" name:"RuleFilters"` 314 315 // 是否开启全审计。 316 AuditAll *bool `json:"AuditAll,omitempty" name:"AuditAll"` 317} 318 319type BackupConfig struct { 320 321 // 第二个从库复制方式,可能的返回值:async-异步,semisync-半同步 322 ReplicationMode *string `json:"ReplicationMode,omitempty" name:"ReplicationMode"` 323 324 // 第二个从库可用区的正式名称,如ap-shanghai-1 325 Zone *string `json:"Zone,omitempty" name:"Zone"` 326 327 // 第二个从库内网IP地址 328 Vip *string `json:"Vip,omitempty" name:"Vip"` 329 330 // 第二个从库访问端口 331 Vport *uint64 `json:"Vport,omitempty" name:"Vport"` 332} 333 334type BackupInfo struct { 335 336 // 备份文件名 337 Name *string `json:"Name,omitempty" name:"Name"` 338 339 // 备份文件大小,单位:Byte 340 Size *int64 `json:"Size,omitempty" name:"Size"` 341 342 // 备份快照时间,时间格式:2016-03-17 02:10:37 343 Date *string `json:"Date,omitempty" name:"Date"` 344 345 // 内网下载地址 346 IntranetUrl *string `json:"IntranetUrl,omitempty" name:"IntranetUrl"` 347 348 // 外网下载地址 349 InternetUrl *string `json:"InternetUrl,omitempty" name:"InternetUrl"` 350 351 // 日志具体类型。可能的值有 "logical": 逻辑冷备, "physical": 物理冷备。 352 Type *string `json:"Type,omitempty" name:"Type"` 353 354 // 备份子任务的ID,删除备份文件时使用 355 BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"` 356 357 // 备份任务状态。可能的值有 "SUCCESS": 备份成功, "FAILED": 备份失败, "RUNNING": 备份进行中。 358 Status *string `json:"Status,omitempty" name:"Status"` 359 360 // 备份任务的完成时间 361 FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` 362 363 // (该值将废弃,不建议使用)备份的创建者,可能的值:SYSTEM - 系统创建,Uin - 发起者Uin值。 364 Creator *string `json:"Creator,omitempty" name:"Creator"` 365 366 // 备份任务的开始时间 367 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 368 369 // 备份方法。可能的值有 "full": 全量备份, "partial": 部分备份。 370 Method *string `json:"Method,omitempty" name:"Method"` 371 372 // 备份方式。可能的值有 "manual": 手动备份, "automatic": 自动备份。 373 Way *string `json:"Way,omitempty" name:"Way"` 374} 375 376type BackupItem struct { 377 378 // 需要备份的库名 379 Db *string `json:"Db,omitempty" name:"Db"` 380 381 // 需要备份的表名。 如果传该参数,表示备份该库中的指定表。如果不传该参数则备份该db库 382 Table *string `json:"Table,omitempty" name:"Table"` 383} 384 385type BackupSummaryItem struct { 386 387 // 实例ID。 388 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 389 390 // 该实例自动数据备份的个数。 391 AutoBackupCount *int64 `json:"AutoBackupCount,omitempty" name:"AutoBackupCount"` 392 393 // 该实例自动数据备份的容量。 394 AutoBackupVolume *int64 `json:"AutoBackupVolume,omitempty" name:"AutoBackupVolume"` 395 396 // 该实例手动数据备份的个数。 397 ManualBackupCount *int64 `json:"ManualBackupCount,omitempty" name:"ManualBackupCount"` 398 399 // 该实例手动数据备份的容量。 400 ManualBackupVolume *int64 `json:"ManualBackupVolume,omitempty" name:"ManualBackupVolume"` 401 402 // 该实例总的数据备份(包含自动备份和手动备份)个数。 403 DataBackupCount *int64 `json:"DataBackupCount,omitempty" name:"DataBackupCount"` 404 405 // 该实例总的数据备份容量。 406 DataBackupVolume *int64 `json:"DataBackupVolume,omitempty" name:"DataBackupVolume"` 407 408 // 该实例日志备份的个数。 409 BinlogBackupCount *int64 `json:"BinlogBackupCount,omitempty" name:"BinlogBackupCount"` 410 411 // 该实例日志备份的容量。 412 BinlogBackupVolume *int64 `json:"BinlogBackupVolume,omitempty" name:"BinlogBackupVolume"` 413 414 // 该实例的总备份(包含数据备份和日志备份)占用容量。 415 BackupVolume *int64 `json:"BackupVolume,omitempty" name:"BackupVolume"` 416} 417 418type BalanceRoGroupLoadRequest struct { 419 *tchttp.BaseRequest 420 421 // RO 组的 ID,格式如:cdbrg-c1nl9rpv。 422 RoGroupId *string `json:"RoGroupId,omitempty" name:"RoGroupId"` 423} 424 425func (r *BalanceRoGroupLoadRequest) ToJsonString() string { 426 b, _ := json.Marshal(r) 427 return string(b) 428} 429 430// FromJsonString It is highly **NOT** recommended to use this function 431// because it has no param check, nor strict type check 432func (r *BalanceRoGroupLoadRequest) FromJsonString(s string) error { 433 f := make(map[string]interface{}) 434 if err := json.Unmarshal([]byte(s), &f); err != nil { 435 return err 436 } 437 delete(f, "RoGroupId") 438 if len(f) > 0 { 439 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BalanceRoGroupLoadRequest has unknown keys!", "") 440 } 441 return json.Unmarshal([]byte(s), &r) 442} 443 444type BalanceRoGroupLoadResponse struct { 445 *tchttp.BaseResponse 446 Response *struct { 447 448 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 449 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 450 } `json:"Response"` 451} 452 453func (r *BalanceRoGroupLoadResponse) ToJsonString() string { 454 b, _ := json.Marshal(r) 455 return string(b) 456} 457 458// FromJsonString It is highly **NOT** recommended to use this function 459// because it has no param check, nor strict type check 460func (r *BalanceRoGroupLoadResponse) FromJsonString(s string) error { 461 return json.Unmarshal([]byte(s), &r) 462} 463 464type BinlogInfo struct { 465 466 // binlog 日志备份文件名 467 Name *string `json:"Name,omitempty" name:"Name"` 468 469 // 备份文件大小,单位:Byte 470 Size *int64 `json:"Size,omitempty" name:"Size"` 471 472 // 文件存储时间,时间格式:2016-03-17 02:10:37 473 Date *string `json:"Date,omitempty" name:"Date"` 474 475 // 内网下载地址 476 IntranetUrl *string `json:"IntranetUrl,omitempty" name:"IntranetUrl"` 477 478 // 外网下载地址 479 InternetUrl *string `json:"InternetUrl,omitempty" name:"InternetUrl"` 480 481 // 日志具体类型,可能的值有:binlog - 二进制日志 482 Type *string `json:"Type,omitempty" name:"Type"` 483 484 // binlog 文件起始时间 485 BinlogStartTime *string `json:"BinlogStartTime,omitempty" name:"BinlogStartTime"` 486 487 // binlog 文件截止时间 488 BinlogFinishTime *string `json:"BinlogFinishTime,omitempty" name:"BinlogFinishTime"` 489} 490 491type CloneItem struct { 492 493 // 克隆任务的源实例Id。 494 SrcInstanceId *string `json:"SrcInstanceId,omitempty" name:"SrcInstanceId"` 495 496 // 克隆任务的新产生实例Id。 497 DstInstanceId *string `json:"DstInstanceId,omitempty" name:"DstInstanceId"` 498 499 // 克隆任务对应的任务列表Id。 500 CloneJobId *int64 `json:"CloneJobId,omitempty" name:"CloneJobId"` 501 502 // 克隆实例使用的策略, 包括以下类型: timepoint:指定时间点回档, backupset: 指定备份文件回档。 503 RollbackStrategy *string `json:"RollbackStrategy,omitempty" name:"RollbackStrategy"` 504 505 // 克隆实例回档的时间点。 506 RollbackTargetTime *string `json:"RollbackTargetTime,omitempty" name:"RollbackTargetTime"` 507 508 // 任务开始时间。 509 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 510 511 // 任务结束时间。 512 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 513 514 // 任务状态,包括以下状态:initial,running,wait_complete,success,failed 515 TaskStatus *string `json:"TaskStatus,omitempty" name:"TaskStatus"` 516} 517 518type CloseWanServiceRequest struct { 519 *tchttp.BaseRequest 520 521 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 522 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 523} 524 525func (r *CloseWanServiceRequest) ToJsonString() string { 526 b, _ := json.Marshal(r) 527 return string(b) 528} 529 530// FromJsonString It is highly **NOT** recommended to use this function 531// because it has no param check, nor strict type check 532func (r *CloseWanServiceRequest) FromJsonString(s string) error { 533 f := make(map[string]interface{}) 534 if err := json.Unmarshal([]byte(s), &f); err != nil { 535 return err 536 } 537 delete(f, "InstanceId") 538 if len(f) > 0 { 539 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CloseWanServiceRequest has unknown keys!", "") 540 } 541 return json.Unmarshal([]byte(s), &r) 542} 543 544type CloseWanServiceResponse struct { 545 *tchttp.BaseResponse 546 Response *struct { 547 548 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 549 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 550 551 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 552 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 553 } `json:"Response"` 554} 555 556func (r *CloseWanServiceResponse) ToJsonString() string { 557 b, _ := json.Marshal(r) 558 return string(b) 559} 560 561// FromJsonString It is highly **NOT** recommended to use this function 562// because it has no param check, nor strict type check 563func (r *CloseWanServiceResponse) FromJsonString(s string) error { 564 return json.Unmarshal([]byte(s), &r) 565} 566 567type ColumnPrivilege struct { 568 569 // 数据库名 570 Database *string `json:"Database,omitempty" name:"Database"` 571 572 // 数据库表名 573 Table *string `json:"Table,omitempty" name:"Table"` 574 575 // 数据库列名 576 Column *string `json:"Column,omitempty" name:"Column"` 577 578 // 权限信息 579 Privileges []*string `json:"Privileges,omitempty" name:"Privileges"` 580} 581 582type CommonTimeWindow struct { 583 584 // 周一的时间窗,格式如: 02:00-06:00 585 Monday *string `json:"Monday,omitempty" name:"Monday"` 586 587 // 周二的时间窗,格式如: 02:00-06:00 588 Tuesday *string `json:"Tuesday,omitempty" name:"Tuesday"` 589 590 // 周三的时间窗,格式如: 02:00-06:00 591 Wednesday *string `json:"Wednesday,omitempty" name:"Wednesday"` 592 593 // 周四的时间窗,格式如: 02:00-06:00 594 Thursday *string `json:"Thursday,omitempty" name:"Thursday"` 595 596 // 周五的时间窗,格式如: 02:00-06:00 597 Friday *string `json:"Friday,omitempty" name:"Friday"` 598 599 // 周六的时间窗,格式如: 02:00-06:00 600 Saturday *string `json:"Saturday,omitempty" name:"Saturday"` 601 602 // 周日的时间窗,格式如: 02:00-06:00 603 Sunday *string `json:"Sunday,omitempty" name:"Sunday"` 604} 605 606type CreateAccountsRequest struct { 607 *tchttp.BaseRequest 608 609 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 610 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 611 612 // 云数据库账号。 613 Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"` 614 615 // 新账户的密码。 616 Password *string `json:"Password,omitempty" name:"Password"` 617 618 // 备注信息。 619 Description *string `json:"Description,omitempty" name:"Description"` 620 621 // 新账户最大可用连接数,默认值为10240,最大可设置值为10240。 622 MaxUserConnections *int64 `json:"MaxUserConnections,omitempty" name:"MaxUserConnections"` 623} 624 625func (r *CreateAccountsRequest) ToJsonString() string { 626 b, _ := json.Marshal(r) 627 return string(b) 628} 629 630// FromJsonString It is highly **NOT** recommended to use this function 631// because it has no param check, nor strict type check 632func (r *CreateAccountsRequest) FromJsonString(s string) error { 633 f := make(map[string]interface{}) 634 if err := json.Unmarshal([]byte(s), &f); err != nil { 635 return err 636 } 637 delete(f, "InstanceId") 638 delete(f, "Accounts") 639 delete(f, "Password") 640 delete(f, "Description") 641 delete(f, "MaxUserConnections") 642 if len(f) > 0 { 643 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAccountsRequest has unknown keys!", "") 644 } 645 return json.Unmarshal([]byte(s), &r) 646} 647 648type CreateAccountsResponse struct { 649 *tchttp.BaseResponse 650 Response *struct { 651 652 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 653 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 654 655 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 656 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 657 } `json:"Response"` 658} 659 660func (r *CreateAccountsResponse) ToJsonString() string { 661 b, _ := json.Marshal(r) 662 return string(b) 663} 664 665// FromJsonString It is highly **NOT** recommended to use this function 666// because it has no param check, nor strict type check 667func (r *CreateAccountsResponse) FromJsonString(s string) error { 668 return json.Unmarshal([]byte(s), &r) 669} 670 671type CreateAuditLogFileRequest struct { 672 *tchttp.BaseRequest 673 674 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 675 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 676 677 // 开始时间,格式为:"2017-07-12 10:29:20"。 678 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 679 680 // 结束时间,格式为:"2017-07-12 10:29:20"。 681 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 682 683 // 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。 684 Order *string `json:"Order,omitempty" name:"Order"` 685 686 // 排序字段。支持值包括: 687 // "timestamp" - 时间戳; 688 // "affectRows" - 影响行数; 689 // "execTime" - 执行时间。 690 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 691 692 // 过滤条件。可按设置的过滤条件过滤日志。 693 Filter *AuditLogFilter `json:"Filter,omitempty" name:"Filter"` 694} 695 696func (r *CreateAuditLogFileRequest) ToJsonString() string { 697 b, _ := json.Marshal(r) 698 return string(b) 699} 700 701// FromJsonString It is highly **NOT** recommended to use this function 702// because it has no param check, nor strict type check 703func (r *CreateAuditLogFileRequest) FromJsonString(s string) error { 704 f := make(map[string]interface{}) 705 if err := json.Unmarshal([]byte(s), &f); err != nil { 706 return err 707 } 708 delete(f, "InstanceId") 709 delete(f, "StartTime") 710 delete(f, "EndTime") 711 delete(f, "Order") 712 delete(f, "OrderBy") 713 delete(f, "Filter") 714 if len(f) > 0 { 715 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAuditLogFileRequest has unknown keys!", "") 716 } 717 return json.Unmarshal([]byte(s), &r) 718} 719 720type CreateAuditLogFileResponse struct { 721 *tchttp.BaseResponse 722 Response *struct { 723 724 // 审计日志文件名称。 725 FileName *string `json:"FileName,omitempty" name:"FileName"` 726 727 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 728 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 729 } `json:"Response"` 730} 731 732func (r *CreateAuditLogFileResponse) ToJsonString() string { 733 b, _ := json.Marshal(r) 734 return string(b) 735} 736 737// FromJsonString It is highly **NOT** recommended to use this function 738// because it has no param check, nor strict type check 739func (r *CreateAuditLogFileResponse) FromJsonString(s string) error { 740 return json.Unmarshal([]byte(s), &r) 741} 742 743type CreateAuditPolicyRequest struct { 744 *tchttp.BaseRequest 745 746 // 审计策略名称。 747 Name *string `json:"Name,omitempty" name:"Name"` 748 749 // 审计规则 ID。 750 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 751 752 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 753 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 754 755 // 审计日志保存时长。支持值包括: 756 // 7 - 一周 757 // 30 - 一个月; 758 // 180 - 六个月; 759 // 365 - 一年; 760 // 1095 - 三年; 761 // 1825 - 五年; 762 // 实例首次开通审计策略时,可传该值,用于设置存储日志保存天数,默认为 30 天。若实例已存在审计策略,则此参数无效,可使用 更改审计服务配置 接口修改日志存储时长。 763 LogExpireDay *int64 `json:"LogExpireDay,omitempty" name:"LogExpireDay"` 764} 765 766func (r *CreateAuditPolicyRequest) ToJsonString() string { 767 b, _ := json.Marshal(r) 768 return string(b) 769} 770 771// FromJsonString It is highly **NOT** recommended to use this function 772// because it has no param check, nor strict type check 773func (r *CreateAuditPolicyRequest) FromJsonString(s string) error { 774 f := make(map[string]interface{}) 775 if err := json.Unmarshal([]byte(s), &f); err != nil { 776 return err 777 } 778 delete(f, "Name") 779 delete(f, "RuleId") 780 delete(f, "InstanceId") 781 delete(f, "LogExpireDay") 782 if len(f) > 0 { 783 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAuditPolicyRequest has unknown keys!", "") 784 } 785 return json.Unmarshal([]byte(s), &r) 786} 787 788type CreateAuditPolicyResponse struct { 789 *tchttp.BaseResponse 790 Response *struct { 791 792 // 审计策略 ID。 793 PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` 794 795 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 796 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 797 } `json:"Response"` 798} 799 800func (r *CreateAuditPolicyResponse) ToJsonString() string { 801 b, _ := json.Marshal(r) 802 return string(b) 803} 804 805// FromJsonString It is highly **NOT** recommended to use this function 806// because it has no param check, nor strict type check 807func (r *CreateAuditPolicyResponse) FromJsonString(s string) error { 808 return json.Unmarshal([]byte(s), &r) 809} 810 811type CreateAuditRuleRequest struct { 812 *tchttp.BaseRequest 813 814 // 审计规则名称。 815 RuleName *string `json:"RuleName,omitempty" name:"RuleName"` 816 817 // 审计规则描述。 818 Description *string `json:"Description,omitempty" name:"Description"` 819 820 // 审计规则过滤条件。若设置了过滤条件,则不会开启全审计。 821 RuleFilters []*AuditFilter `json:"RuleFilters,omitempty" name:"RuleFilters"` 822 823 // 是否开启全审计。支持值包括:false – 不开启全审计,true – 开启全审计。用户未设置审计规则过滤条件时,默认开启全审计。 824 AuditAll *bool `json:"AuditAll,omitempty" name:"AuditAll"` 825} 826 827func (r *CreateAuditRuleRequest) ToJsonString() string { 828 b, _ := json.Marshal(r) 829 return string(b) 830} 831 832// FromJsonString It is highly **NOT** recommended to use this function 833// because it has no param check, nor strict type check 834func (r *CreateAuditRuleRequest) FromJsonString(s string) error { 835 f := make(map[string]interface{}) 836 if err := json.Unmarshal([]byte(s), &f); err != nil { 837 return err 838 } 839 delete(f, "RuleName") 840 delete(f, "Description") 841 delete(f, "RuleFilters") 842 delete(f, "AuditAll") 843 if len(f) > 0 { 844 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAuditRuleRequest has unknown keys!", "") 845 } 846 return json.Unmarshal([]byte(s), &r) 847} 848 849type CreateAuditRuleResponse struct { 850 *tchttp.BaseResponse 851 Response *struct { 852 853 // 审计规则 ID。 854 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 855 856 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 857 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 858 } `json:"Response"` 859} 860 861func (r *CreateAuditRuleResponse) ToJsonString() string { 862 b, _ := json.Marshal(r) 863 return string(b) 864} 865 866// FromJsonString It is highly **NOT** recommended to use this function 867// because it has no param check, nor strict type check 868func (r *CreateAuditRuleResponse) FromJsonString(s string) error { 869 return json.Unmarshal([]byte(s), &r) 870} 871 872type CreateBackupRequest struct { 873 *tchttp.BaseRequest 874 875 // 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 876 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 877 878 // 目标备份方法,可选的值:logical - 逻辑冷备,physical - 物理冷备。 879 BackupMethod *string `json:"BackupMethod,omitempty" name:"BackupMethod"` 880 881 // 需要备份的库表信息,如果不设置该参数,则默认整实例备份。在 BackupMethod=logical 逻辑备份中才可设置该参数。指定的库表必须存在,否则可能导致备份失败。 882 // 例:如果需要备份 db1 库的 tb1、tb2 表 和 db2 库。则该参数设置为 [{"Db": "db1", "Table": "tb1"}, {"Db": "db1", "Table": "tb2"}, {"Db": "db2"} ]。 883 BackupDBTableList []*BackupItem `json:"BackupDBTableList,omitempty" name:"BackupDBTableList"` 884} 885 886func (r *CreateBackupRequest) ToJsonString() string { 887 b, _ := json.Marshal(r) 888 return string(b) 889} 890 891// FromJsonString It is highly **NOT** recommended to use this function 892// because it has no param check, nor strict type check 893func (r *CreateBackupRequest) FromJsonString(s string) error { 894 f := make(map[string]interface{}) 895 if err := json.Unmarshal([]byte(s), &f); err != nil { 896 return err 897 } 898 delete(f, "InstanceId") 899 delete(f, "BackupMethod") 900 delete(f, "BackupDBTableList") 901 if len(f) > 0 { 902 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateBackupRequest has unknown keys!", "") 903 } 904 return json.Unmarshal([]byte(s), &r) 905} 906 907type CreateBackupResponse struct { 908 *tchttp.BaseResponse 909 Response *struct { 910 911 // 备份任务 ID。 912 BackupId *uint64 `json:"BackupId,omitempty" name:"BackupId"` 913 914 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 915 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 916 } `json:"Response"` 917} 918 919func (r *CreateBackupResponse) ToJsonString() string { 920 b, _ := json.Marshal(r) 921 return string(b) 922} 923 924// FromJsonString It is highly **NOT** recommended to use this function 925// because it has no param check, nor strict type check 926func (r *CreateBackupResponse) FromJsonString(s string) error { 927 return json.Unmarshal([]byte(s), &r) 928} 929 930type CreateCloneInstanceRequest struct { 931 *tchttp.BaseRequest 932 933 // 克隆源实例Id。 934 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 935 936 // 如果需要克隆实例回档到指定时间,则指定该值。时间格式为: yyyy-mm-dd hh:mm:ss 。 937 SpecifiedRollbackTime *string `json:"SpecifiedRollbackTime,omitempty" name:"SpecifiedRollbackTime"` 938 939 // 如果需要克隆实例回档到指定备份的时间点,则指定该值为物理备份的Id。请使用 [查询数据备份文件列表](/document/api/236/15842) 。 940 SpecifiedBackupId *int64 `json:"SpecifiedBackupId,omitempty" name:"SpecifiedBackupId"` 941 942 // 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。 943 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 944 945 // 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。 946 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 947 948 // 实例内存大小,单位:MB,需要不低于克隆源实例,默认和源实例相同。 949 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 950 951 // 实例硬盘大小,单位:GB,需要不低于克隆源实例,默认和源实例相同。 952 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 953 954 // 新产生的克隆实例名称。 955 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 956 957 // 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。 958 SecurityGroup []*string `json:"SecurityGroup,omitempty" name:"SecurityGroup"` 959 960 // 实例标签信息。 961 ResourceTags []*TagInfo `json:"ResourceTags,omitempty" name:"ResourceTags"` 962 963 // 实例Cpu核数,需要不低于克隆源实例,默认和源实例相同。 964 Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` 965 966 // 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。 967 ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 968 969 // 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。 970 DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` 971 972 // 新产生的克隆实例备库 1 的可用区信息,默认同源实例 Zone 的值。 973 SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"` 974 975 // 备库 2 的可用区信息,默认为空,克隆强同步主实例时可指定该参数。 976 BackupZone *string `json:"BackupZone,omitempty" name:"BackupZone"` 977 978 // 克隆实例类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例。 不指定则默认为通用型。 979 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 980 981 // 新克隆实例节点数。如果需要克隆出三节点实例, 请将该值设置为3 或指定 BackupZone 参数。如果需要克隆出两节点实例,请将该值设置为2。默认克隆出两节点实例。 982 InstanceNodes *int64 `json:"InstanceNodes,omitempty" name:"InstanceNodes"` 983} 984 985func (r *CreateCloneInstanceRequest) ToJsonString() string { 986 b, _ := json.Marshal(r) 987 return string(b) 988} 989 990// FromJsonString It is highly **NOT** recommended to use this function 991// because it has no param check, nor strict type check 992func (r *CreateCloneInstanceRequest) FromJsonString(s string) error { 993 f := make(map[string]interface{}) 994 if err := json.Unmarshal([]byte(s), &f); err != nil { 995 return err 996 } 997 delete(f, "InstanceId") 998 delete(f, "SpecifiedRollbackTime") 999 delete(f, "SpecifiedBackupId") 1000 delete(f, "UniqVpcId") 1001 delete(f, "UniqSubnetId") 1002 delete(f, "Memory") 1003 delete(f, "Volume") 1004 delete(f, "InstanceName") 1005 delete(f, "SecurityGroup") 1006 delete(f, "ResourceTags") 1007 delete(f, "Cpu") 1008 delete(f, "ProtectMode") 1009 delete(f, "DeployMode") 1010 delete(f, "SlaveZone") 1011 delete(f, "BackupZone") 1012 delete(f, "DeviceType") 1013 delete(f, "InstanceNodes") 1014 if len(f) > 0 { 1015 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCloneInstanceRequest has unknown keys!", "") 1016 } 1017 return json.Unmarshal([]byte(s), &r) 1018} 1019 1020type CreateCloneInstanceResponse struct { 1021 *tchttp.BaseResponse 1022 Response *struct { 1023 1024 // 异步任务的请求ID,可使用此 ID 查询异步任务的执行结果。 1025 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 1026 1027 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1028 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1029 } `json:"Response"` 1030} 1031 1032func (r *CreateCloneInstanceResponse) 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 *CreateCloneInstanceResponse) FromJsonString(s string) error { 1040 return json.Unmarshal([]byte(s), &r) 1041} 1042 1043type CreateDBImportJobRequest struct { 1044 *tchttp.BaseRequest 1045 1046 // 实例的 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 1047 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1048 1049 // 文件名称。该文件是指用户已上传到腾讯云的文件。 1050 FileName *string `json:"FileName,omitempty" name:"FileName"` 1051 1052 // 云数据库的用户名。 1053 User *string `json:"User,omitempty" name:"User"` 1054 1055 // 云数据库实例 User 账号的密码。 1056 Password *string `json:"Password,omitempty" name:"Password"` 1057 1058 // 导入的目标数据库名,不传表示不指定数据库。 1059 DbName *string `json:"DbName,omitempty" name:"DbName"` 1060} 1061 1062func (r *CreateDBImportJobRequest) ToJsonString() string { 1063 b, _ := json.Marshal(r) 1064 return string(b) 1065} 1066 1067// FromJsonString It is highly **NOT** recommended to use this function 1068// because it has no param check, nor strict type check 1069func (r *CreateDBImportJobRequest) FromJsonString(s string) error { 1070 f := make(map[string]interface{}) 1071 if err := json.Unmarshal([]byte(s), &f); err != nil { 1072 return err 1073 } 1074 delete(f, "InstanceId") 1075 delete(f, "FileName") 1076 delete(f, "User") 1077 delete(f, "Password") 1078 delete(f, "DbName") 1079 if len(f) > 0 { 1080 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDBImportJobRequest has unknown keys!", "") 1081 } 1082 return json.Unmarshal([]byte(s), &r) 1083} 1084 1085type CreateDBImportJobResponse struct { 1086 *tchttp.BaseResponse 1087 Response *struct { 1088 1089 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 1090 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 1091 1092 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1093 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1094 } `json:"Response"` 1095} 1096 1097func (r *CreateDBImportJobResponse) ToJsonString() string { 1098 b, _ := json.Marshal(r) 1099 return string(b) 1100} 1101 1102// FromJsonString It is highly **NOT** recommended to use this function 1103// because it has no param check, nor strict type check 1104func (r *CreateDBImportJobResponse) FromJsonString(s string) error { 1105 return json.Unmarshal([]byte(s), &r) 1106} 1107 1108type CreateDBInstanceHourRequest struct { 1109 *tchttp.BaseRequest 1110 1111 // 实例数量,默认值为 1,最小值 1,最大值为 100。 1112 GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` 1113 1114 // 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。 1115 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 1116 1117 // 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。 1118 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 1119 1120 // MySQL 版本,值包括:5.5、5.6 、5.7 、8.0,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。 1121 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 1122 1123 // 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。 1124 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 1125 1126 // 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用[查询子网列表](/document/api/215/15784)。 1127 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 1128 1129 // 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。 1130 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 1131 1132 // 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。 1133 Zone *string `json:"Zone,omitempty" name:"Zone"` 1134 1135 // 实例 ID,购买只读实例或者灾备实例时必填,该字段表示只读实例或者灾备实例的主实例 ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。 1136 MasterInstanceId *string `json:"MasterInstanceId,omitempty" name:"MasterInstanceId"` 1137 1138 // 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。 1139 InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` 1140 1141 // 主实例的可用区信息,购买灾备实例时必填。 1142 MasterRegion *string `json:"MasterRegion,omitempty" name:"MasterRegion"` 1143 1144 // 自定义端口,端口支持范围:[ 1024-65535 ] 。 1145 Port *int64 `json:"Port,omitempty" name:"Port"` 1146 1147 // 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。 1148 Password *string `json:"Password,omitempty" name:"Password"` 1149 1150 // 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。 1151 ParamList []*ParamInfo `json:"ParamList,omitempty" name:"ParamList"` 1152 1153 // 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。 1154 ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 1155 1156 // 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。 1157 DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` 1158 1159 // 备库 1 的可用区信息,默认为 Zone 的值,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。 1160 SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"` 1161 1162 // 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。 1163 BackupZone *string `json:"BackupZone,omitempty" name:"BackupZone"` 1164 1165 // 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。 1166 SecurityGroup []*string `json:"SecurityGroup,omitempty" name:"SecurityGroup"` 1167 1168 // 只读实例信息。购买只读实例时,该参数必传。 1169 RoGroup *RoGroup `json:"RoGroup,omitempty" name:"RoGroup"` 1170 1171 // 购买按量计费实例该字段无意义。 1172 AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` 1173 1174 // 实例名称。 1175 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 1176 1177 // 实例标签信息。 1178 ResourceTags []*TagInfo `json:"ResourceTags,omitempty" name:"ResourceTags"` 1179 1180 // 置放群组 ID。 1181 DeployGroupId *string `json:"DeployGroupId,omitempty" name:"DeployGroupId"` 1182 1183 // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 1184 ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` 1185 1186 // 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。 1187 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 1188 1189 // 参数模板id。 1190 ParamTemplateId *int64 `json:"ParamTemplateId,omitempty" name:"ParamTemplateId"` 1191 1192 // 告警策略id数组。 1193 AlarmPolicyList []*int64 `json:"AlarmPolicyList,omitempty" name:"AlarmPolicyList"` 1194 1195 // 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。 1196 InstanceNodes *int64 `json:"InstanceNodes,omitempty" name:"InstanceNodes"` 1197 1198 // 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。 1199 Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` 1200 1201 // 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。 1202 AutoSyncFlag *int64 `json:"AutoSyncFlag,omitempty" name:"AutoSyncFlag"` 1203} 1204 1205func (r *CreateDBInstanceHourRequest) ToJsonString() string { 1206 b, _ := json.Marshal(r) 1207 return string(b) 1208} 1209 1210// FromJsonString It is highly **NOT** recommended to use this function 1211// because it has no param check, nor strict type check 1212func (r *CreateDBInstanceHourRequest) FromJsonString(s string) error { 1213 f := make(map[string]interface{}) 1214 if err := json.Unmarshal([]byte(s), &f); err != nil { 1215 return err 1216 } 1217 delete(f, "GoodsNum") 1218 delete(f, "Memory") 1219 delete(f, "Volume") 1220 delete(f, "EngineVersion") 1221 delete(f, "UniqVpcId") 1222 delete(f, "UniqSubnetId") 1223 delete(f, "ProjectId") 1224 delete(f, "Zone") 1225 delete(f, "MasterInstanceId") 1226 delete(f, "InstanceRole") 1227 delete(f, "MasterRegion") 1228 delete(f, "Port") 1229 delete(f, "Password") 1230 delete(f, "ParamList") 1231 delete(f, "ProtectMode") 1232 delete(f, "DeployMode") 1233 delete(f, "SlaveZone") 1234 delete(f, "BackupZone") 1235 delete(f, "SecurityGroup") 1236 delete(f, "RoGroup") 1237 delete(f, "AutoRenewFlag") 1238 delete(f, "InstanceName") 1239 delete(f, "ResourceTags") 1240 delete(f, "DeployGroupId") 1241 delete(f, "ClientToken") 1242 delete(f, "DeviceType") 1243 delete(f, "ParamTemplateId") 1244 delete(f, "AlarmPolicyList") 1245 delete(f, "InstanceNodes") 1246 delete(f, "Cpu") 1247 delete(f, "AutoSyncFlag") 1248 if len(f) > 0 { 1249 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDBInstanceHourRequest has unknown keys!", "") 1250 } 1251 return json.Unmarshal([]byte(s), &r) 1252} 1253 1254type CreateDBInstanceHourResponse struct { 1255 *tchttp.BaseResponse 1256 Response *struct { 1257 1258 // 短订单 ID。 1259 DealIds []*string `json:"DealIds,omitempty" name:"DealIds"` 1260 1261 // 实例 ID 列表。 1262 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 1263 1264 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1265 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1266 } `json:"Response"` 1267} 1268 1269func (r *CreateDBInstanceHourResponse) ToJsonString() string { 1270 b, _ := json.Marshal(r) 1271 return string(b) 1272} 1273 1274// FromJsonString It is highly **NOT** recommended to use this function 1275// because it has no param check, nor strict type check 1276func (r *CreateDBInstanceHourResponse) FromJsonString(s string) error { 1277 return json.Unmarshal([]byte(s), &r) 1278} 1279 1280type CreateDBInstanceRequest struct { 1281 *tchttp.BaseRequest 1282 1283 // 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。 1284 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 1285 1286 // 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。 1287 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 1288 1289 // 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。 1290 Period *int64 `json:"Period,omitempty" name:"Period"` 1291 1292 // 实例数量,默认值为1, 最小值1,最大值为100。 1293 GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` 1294 1295 // 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。 1296 Zone *string `json:"Zone,omitempty" name:"Zone"` 1297 1298 // 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。 1299 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 1300 1301 // 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。 1302 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 1303 1304 // 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。购买只读实例和灾备实例时,项目 ID 默认和主实例保持一致。 1305 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 1306 1307 // 自定义端口,端口支持范围:[ 1024-65535 ]。 1308 Port *int64 `json:"Port,omitempty" name:"Port"` 1309 1310 // 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。 1311 InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` 1312 1313 // 实例 ID,购买只读实例时必填,该字段表示只读实例的主实例ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。 1314 MasterInstanceId *string `json:"MasterInstanceId,omitempty" name:"MasterInstanceId"` 1315 1316 // MySQL 版本,值包括:5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。 1317 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 1318 1319 // 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。 1320 Password *string `json:"Password,omitempty" name:"Password"` 1321 1322 // 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。 1323 ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 1324 1325 // 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。 1326 DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` 1327 1328 // 备库 1 的可用区信息,默认为 Zone 的值。 1329 SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"` 1330 1331 // 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。 1332 ParamList []*ParamInfo `json:"ParamList,omitempty" name:"ParamList"` 1333 1334 // 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。 1335 BackupZone *string `json:"BackupZone,omitempty" name:"BackupZone"` 1336 1337 // 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。 1338 AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` 1339 1340 // 主实例地域信息,购买灾备实例时,该字段必填。 1341 MasterRegion *string `json:"MasterRegion,omitempty" name:"MasterRegion"` 1342 1343 // 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。 1344 SecurityGroup []*string `json:"SecurityGroup,omitempty" name:"SecurityGroup"` 1345 1346 // 只读实例参数。购买只读实例时,该参数必传。 1347 RoGroup *RoGroup `json:"RoGroup,omitempty" name:"RoGroup"` 1348 1349 // 实例名称。 1350 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 1351 1352 // 实例标签信息。 1353 ResourceTags []*TagInfo `json:"ResourceTags,omitempty" name:"ResourceTags"` 1354 1355 // 置放群组 ID。 1356 DeployGroupId *string `json:"DeployGroupId,omitempty" name:"DeployGroupId"` 1357 1358 // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 1359 ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` 1360 1361 // 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。 1362 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 1363 1364 // 参数模板id。 1365 ParamTemplateId *int64 `json:"ParamTemplateId,omitempty" name:"ParamTemplateId"` 1366 1367 // 告警策略id数组。 1368 AlarmPolicyList []*int64 `json:"AlarmPolicyList,omitempty" name:"AlarmPolicyList"` 1369 1370 // 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。 1371 InstanceNodes *int64 `json:"InstanceNodes,omitempty" name:"InstanceNodes"` 1372 1373 // 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。 1374 Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` 1375 1376 // 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。 1377 AutoSyncFlag *int64 `json:"AutoSyncFlag,omitempty" name:"AutoSyncFlag"` 1378} 1379 1380func (r *CreateDBInstanceRequest) ToJsonString() string { 1381 b, _ := json.Marshal(r) 1382 return string(b) 1383} 1384 1385// FromJsonString It is highly **NOT** recommended to use this function 1386// because it has no param check, nor strict type check 1387func (r *CreateDBInstanceRequest) FromJsonString(s string) error { 1388 f := make(map[string]interface{}) 1389 if err := json.Unmarshal([]byte(s), &f); err != nil { 1390 return err 1391 } 1392 delete(f, "Memory") 1393 delete(f, "Volume") 1394 delete(f, "Period") 1395 delete(f, "GoodsNum") 1396 delete(f, "Zone") 1397 delete(f, "UniqVpcId") 1398 delete(f, "UniqSubnetId") 1399 delete(f, "ProjectId") 1400 delete(f, "Port") 1401 delete(f, "InstanceRole") 1402 delete(f, "MasterInstanceId") 1403 delete(f, "EngineVersion") 1404 delete(f, "Password") 1405 delete(f, "ProtectMode") 1406 delete(f, "DeployMode") 1407 delete(f, "SlaveZone") 1408 delete(f, "ParamList") 1409 delete(f, "BackupZone") 1410 delete(f, "AutoRenewFlag") 1411 delete(f, "MasterRegion") 1412 delete(f, "SecurityGroup") 1413 delete(f, "RoGroup") 1414 delete(f, "InstanceName") 1415 delete(f, "ResourceTags") 1416 delete(f, "DeployGroupId") 1417 delete(f, "ClientToken") 1418 delete(f, "DeviceType") 1419 delete(f, "ParamTemplateId") 1420 delete(f, "AlarmPolicyList") 1421 delete(f, "InstanceNodes") 1422 delete(f, "Cpu") 1423 delete(f, "AutoSyncFlag") 1424 if len(f) > 0 { 1425 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDBInstanceRequest has unknown keys!", "") 1426 } 1427 return json.Unmarshal([]byte(s), &r) 1428} 1429 1430type CreateDBInstanceResponse struct { 1431 *tchttp.BaseResponse 1432 Response *struct { 1433 1434 // 短订单 ID。 1435 DealIds []*string `json:"DealIds,omitempty" name:"DealIds"` 1436 1437 // 实例 ID 列表。 1438 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 1439 1440 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1441 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1442 } `json:"Response"` 1443} 1444 1445func (r *CreateDBInstanceResponse) ToJsonString() string { 1446 b, _ := json.Marshal(r) 1447 return string(b) 1448} 1449 1450// FromJsonString It is highly **NOT** recommended to use this function 1451// because it has no param check, nor strict type check 1452func (r *CreateDBInstanceResponse) FromJsonString(s string) error { 1453 return json.Unmarshal([]byte(s), &r) 1454} 1455 1456type CreateDeployGroupRequest struct { 1457 *tchttp.BaseRequest 1458 1459 // 置放群组名称,最长不能超过60个字符。 1460 DeployGroupName *string `json:"DeployGroupName,omitempty" name:"DeployGroupName"` 1461 1462 // 置放群组描述,最长不能超过200个字符。 1463 Description *string `json:"Description,omitempty" name:"Description"` 1464 1465 // 置放群组的亲和性策略,目前仅支持取值为1,策略1表示同台物理机上限制实例的个数。 1466 Affinity []*int64 `json:"Affinity,omitempty" name:"Affinity"` 1467 1468 // 置放群组亲和性策略1中同台物理机上实例的限制个数。 1469 LimitNum *int64 `json:"LimitNum,omitempty" name:"LimitNum"` 1470 1471 // 置放群组机型属性,可选参数:SH12+SH02、TS85。 1472 DevClass []*string `json:"DevClass,omitempty" name:"DevClass"` 1473} 1474 1475func (r *CreateDeployGroupRequest) ToJsonString() string { 1476 b, _ := json.Marshal(r) 1477 return string(b) 1478} 1479 1480// FromJsonString It is highly **NOT** recommended to use this function 1481// because it has no param check, nor strict type check 1482func (r *CreateDeployGroupRequest) FromJsonString(s string) error { 1483 f := make(map[string]interface{}) 1484 if err := json.Unmarshal([]byte(s), &f); err != nil { 1485 return err 1486 } 1487 delete(f, "DeployGroupName") 1488 delete(f, "Description") 1489 delete(f, "Affinity") 1490 delete(f, "LimitNum") 1491 delete(f, "DevClass") 1492 if len(f) > 0 { 1493 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDeployGroupRequest has unknown keys!", "") 1494 } 1495 return json.Unmarshal([]byte(s), &r) 1496} 1497 1498type CreateDeployGroupResponse struct { 1499 *tchttp.BaseResponse 1500 Response *struct { 1501 1502 // 置放群组ID。 1503 DeployGroupId *string `json:"DeployGroupId,omitempty" name:"DeployGroupId"` 1504 1505 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1506 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1507 } `json:"Response"` 1508} 1509 1510func (r *CreateDeployGroupResponse) ToJsonString() string { 1511 b, _ := json.Marshal(r) 1512 return string(b) 1513} 1514 1515// FromJsonString It is highly **NOT** recommended to use this function 1516// because it has no param check, nor strict type check 1517func (r *CreateDeployGroupResponse) FromJsonString(s string) error { 1518 return json.Unmarshal([]byte(s), &r) 1519} 1520 1521type CreateParamTemplateRequest struct { 1522 *tchttp.BaseRequest 1523 1524 // 参数模板名称。 1525 Name *string `json:"Name,omitempty" name:"Name"` 1526 1527 // 参数模板描述。 1528 Description *string `json:"Description,omitempty" name:"Description"` 1529 1530 // MySQL 版本号。 1531 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 1532 1533 // 源参数模板 ID。 1534 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 1535 1536 // 参数列表。 1537 ParamList []*Parameter `json:"ParamList,omitempty" name:"ParamList"` 1538} 1539 1540func (r *CreateParamTemplateRequest) ToJsonString() string { 1541 b, _ := json.Marshal(r) 1542 return string(b) 1543} 1544 1545// FromJsonString It is highly **NOT** recommended to use this function 1546// because it has no param check, nor strict type check 1547func (r *CreateParamTemplateRequest) FromJsonString(s string) error { 1548 f := make(map[string]interface{}) 1549 if err := json.Unmarshal([]byte(s), &f); err != nil { 1550 return err 1551 } 1552 delete(f, "Name") 1553 delete(f, "Description") 1554 delete(f, "EngineVersion") 1555 delete(f, "TemplateId") 1556 delete(f, "ParamList") 1557 if len(f) > 0 { 1558 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateParamTemplateRequest has unknown keys!", "") 1559 } 1560 return json.Unmarshal([]byte(s), &r) 1561} 1562 1563type CreateParamTemplateResponse struct { 1564 *tchttp.BaseResponse 1565 Response *struct { 1566 1567 // 参数模板 ID。 1568 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 1569 1570 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1571 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1572 } `json:"Response"` 1573} 1574 1575func (r *CreateParamTemplateResponse) ToJsonString() string { 1576 b, _ := json.Marshal(r) 1577 return string(b) 1578} 1579 1580// FromJsonString It is highly **NOT** recommended to use this function 1581// because it has no param check, nor strict type check 1582func (r *CreateParamTemplateResponse) FromJsonString(s string) error { 1583 return json.Unmarshal([]byte(s), &r) 1584} 1585 1586type CreateRoInstanceIpRequest struct { 1587 *tchttp.BaseRequest 1588 1589 // 只读实例ID,格式如:cdbro-3i70uj0k,与云数据库控制台页面中显示的只读实例ID相同。 1590 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1591 1592 // 子网描述符,例如:subnet-1typ0s7d。 1593 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 1594 1595 // vpc描述符,例如:vpc-a23yt67j,如果传了该字段则UniqSubnetId必传 1596 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 1597} 1598 1599func (r *CreateRoInstanceIpRequest) ToJsonString() string { 1600 b, _ := json.Marshal(r) 1601 return string(b) 1602} 1603 1604// FromJsonString It is highly **NOT** recommended to use this function 1605// because it has no param check, nor strict type check 1606func (r *CreateRoInstanceIpRequest) FromJsonString(s string) error { 1607 f := make(map[string]interface{}) 1608 if err := json.Unmarshal([]byte(s), &f); err != nil { 1609 return err 1610 } 1611 delete(f, "InstanceId") 1612 delete(f, "UniqSubnetId") 1613 delete(f, "UniqVpcId") 1614 if len(f) > 0 { 1615 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateRoInstanceIpRequest has unknown keys!", "") 1616 } 1617 return json.Unmarshal([]byte(s), &r) 1618} 1619 1620type CreateRoInstanceIpResponse struct { 1621 *tchttp.BaseResponse 1622 Response *struct { 1623 1624 // 只读实例的私有网络的ID。 1625 RoVpcId *int64 `json:"RoVpcId,omitempty" name:"RoVpcId"` 1626 1627 // 只读实例的子网ID。 1628 RoSubnetId *int64 `json:"RoSubnetId,omitempty" name:"RoSubnetId"` 1629 1630 // 只读实例的内网IP地址。 1631 RoVip *string `json:"RoVip,omitempty" name:"RoVip"` 1632 1633 // 只读实例的内网端口号。 1634 RoVport *int64 `json:"RoVport,omitempty" name:"RoVport"` 1635 1636 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1637 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1638 } `json:"Response"` 1639} 1640 1641func (r *CreateRoInstanceIpResponse) ToJsonString() string { 1642 b, _ := json.Marshal(r) 1643 return string(b) 1644} 1645 1646// FromJsonString It is highly **NOT** recommended to use this function 1647// because it has no param check, nor strict type check 1648func (r *CreateRoInstanceIpResponse) FromJsonString(s string) error { 1649 return json.Unmarshal([]byte(s), &r) 1650} 1651 1652type DBSwitchInfo struct { 1653 1654 // 切换时间,格式为:2017-09-03 01:34:31 1655 SwitchTime *string `json:"SwitchTime,omitempty" name:"SwitchTime"` 1656 1657 // 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复 1658 SwitchType *string `json:"SwitchType,omitempty" name:"SwitchType"` 1659} 1660 1661type DatabaseName struct { 1662 1663 // 数据库表名 1664 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` 1665} 1666 1667type DatabasePrivilege struct { 1668 1669 // 权限信息 1670 Privileges []*string `json:"Privileges,omitempty" name:"Privileges"` 1671 1672 // 数据库名 1673 Database *string `json:"Database,omitempty" name:"Database"` 1674} 1675 1676type DatabasesWithCharacterLists struct { 1677 1678 // 数据库名 1679 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` 1680 1681 // 字符集类型 1682 CharacterSet *string `json:"CharacterSet,omitempty" name:"CharacterSet"` 1683} 1684 1685type DeleteAccountsRequest struct { 1686 *tchttp.BaseRequest 1687 1688 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 1689 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1690 1691 // 云数据库账号。 1692 Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"` 1693} 1694 1695func (r *DeleteAccountsRequest) ToJsonString() string { 1696 b, _ := json.Marshal(r) 1697 return string(b) 1698} 1699 1700// FromJsonString It is highly **NOT** recommended to use this function 1701// because it has no param check, nor strict type check 1702func (r *DeleteAccountsRequest) FromJsonString(s string) error { 1703 f := make(map[string]interface{}) 1704 if err := json.Unmarshal([]byte(s), &f); err != nil { 1705 return err 1706 } 1707 delete(f, "InstanceId") 1708 delete(f, "Accounts") 1709 if len(f) > 0 { 1710 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAccountsRequest has unknown keys!", "") 1711 } 1712 return json.Unmarshal([]byte(s), &r) 1713} 1714 1715type DeleteAccountsResponse struct { 1716 *tchttp.BaseResponse 1717 Response *struct { 1718 1719 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 1720 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 1721 1722 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1723 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1724 } `json:"Response"` 1725} 1726 1727func (r *DeleteAccountsResponse) ToJsonString() string { 1728 b, _ := json.Marshal(r) 1729 return string(b) 1730} 1731 1732// FromJsonString It is highly **NOT** recommended to use this function 1733// because it has no param check, nor strict type check 1734func (r *DeleteAccountsResponse) FromJsonString(s string) error { 1735 return json.Unmarshal([]byte(s), &r) 1736} 1737 1738type DeleteAuditLogFileRequest struct { 1739 *tchttp.BaseRequest 1740 1741 // 审计日志文件名称。 1742 FileName *string `json:"FileName,omitempty" name:"FileName"` 1743 1744 // 实例 ID。 1745 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1746} 1747 1748func (r *DeleteAuditLogFileRequest) ToJsonString() string { 1749 b, _ := json.Marshal(r) 1750 return string(b) 1751} 1752 1753// FromJsonString It is highly **NOT** recommended to use this function 1754// because it has no param check, nor strict type check 1755func (r *DeleteAuditLogFileRequest) FromJsonString(s string) error { 1756 f := make(map[string]interface{}) 1757 if err := json.Unmarshal([]byte(s), &f); err != nil { 1758 return err 1759 } 1760 delete(f, "FileName") 1761 delete(f, "InstanceId") 1762 if len(f) > 0 { 1763 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAuditLogFileRequest has unknown keys!", "") 1764 } 1765 return json.Unmarshal([]byte(s), &r) 1766} 1767 1768type DeleteAuditLogFileResponse struct { 1769 *tchttp.BaseResponse 1770 Response *struct { 1771 1772 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1773 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1774 } `json:"Response"` 1775} 1776 1777func (r *DeleteAuditLogFileResponse) ToJsonString() string { 1778 b, _ := json.Marshal(r) 1779 return string(b) 1780} 1781 1782// FromJsonString It is highly **NOT** recommended to use this function 1783// because it has no param check, nor strict type check 1784func (r *DeleteAuditLogFileResponse) FromJsonString(s string) error { 1785 return json.Unmarshal([]byte(s), &r) 1786} 1787 1788type DeleteAuditPolicyRequest struct { 1789 *tchttp.BaseRequest 1790 1791 // 审计策略 ID。 1792 PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` 1793 1794 // 实例 ID。 1795 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1796} 1797 1798func (r *DeleteAuditPolicyRequest) ToJsonString() string { 1799 b, _ := json.Marshal(r) 1800 return string(b) 1801} 1802 1803// FromJsonString It is highly **NOT** recommended to use this function 1804// because it has no param check, nor strict type check 1805func (r *DeleteAuditPolicyRequest) FromJsonString(s string) error { 1806 f := make(map[string]interface{}) 1807 if err := json.Unmarshal([]byte(s), &f); err != nil { 1808 return err 1809 } 1810 delete(f, "PolicyId") 1811 delete(f, "InstanceId") 1812 if len(f) > 0 { 1813 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAuditPolicyRequest has unknown keys!", "") 1814 } 1815 return json.Unmarshal([]byte(s), &r) 1816} 1817 1818type DeleteAuditPolicyResponse struct { 1819 *tchttp.BaseResponse 1820 Response *struct { 1821 1822 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1823 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1824 } `json:"Response"` 1825} 1826 1827func (r *DeleteAuditPolicyResponse) ToJsonString() string { 1828 b, _ := json.Marshal(r) 1829 return string(b) 1830} 1831 1832// FromJsonString It is highly **NOT** recommended to use this function 1833// because it has no param check, nor strict type check 1834func (r *DeleteAuditPolicyResponse) FromJsonString(s string) error { 1835 return json.Unmarshal([]byte(s), &r) 1836} 1837 1838type DeleteAuditRuleRequest struct { 1839 *tchttp.BaseRequest 1840 1841 // 审计规则 ID。 1842 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 1843} 1844 1845func (r *DeleteAuditRuleRequest) ToJsonString() string { 1846 b, _ := json.Marshal(r) 1847 return string(b) 1848} 1849 1850// FromJsonString It is highly **NOT** recommended to use this function 1851// because it has no param check, nor strict type check 1852func (r *DeleteAuditRuleRequest) FromJsonString(s string) error { 1853 f := make(map[string]interface{}) 1854 if err := json.Unmarshal([]byte(s), &f); err != nil { 1855 return err 1856 } 1857 delete(f, "RuleId") 1858 if len(f) > 0 { 1859 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAuditRuleRequest has unknown keys!", "") 1860 } 1861 return json.Unmarshal([]byte(s), &r) 1862} 1863 1864type DeleteAuditRuleResponse struct { 1865 *tchttp.BaseResponse 1866 Response *struct { 1867 1868 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1869 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1870 } `json:"Response"` 1871} 1872 1873func (r *DeleteAuditRuleResponse) ToJsonString() string { 1874 b, _ := json.Marshal(r) 1875 return string(b) 1876} 1877 1878// FromJsonString It is highly **NOT** recommended to use this function 1879// because it has no param check, nor strict type check 1880func (r *DeleteAuditRuleResponse) FromJsonString(s string) error { 1881 return json.Unmarshal([]byte(s), &r) 1882} 1883 1884type DeleteBackupRequest struct { 1885 *tchttp.BaseRequest 1886 1887 // 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 1888 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1889 1890 // 备份任务 ID。该任务 ID 为 [创建云数据库备份](https://cloud.tencent.com/document/api/236/15844) 接口返回的任务 ID。 1891 BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"` 1892} 1893 1894func (r *DeleteBackupRequest) ToJsonString() string { 1895 b, _ := json.Marshal(r) 1896 return string(b) 1897} 1898 1899// FromJsonString It is highly **NOT** recommended to use this function 1900// because it has no param check, nor strict type check 1901func (r *DeleteBackupRequest) FromJsonString(s string) error { 1902 f := make(map[string]interface{}) 1903 if err := json.Unmarshal([]byte(s), &f); err != nil { 1904 return err 1905 } 1906 delete(f, "InstanceId") 1907 delete(f, "BackupId") 1908 if len(f) > 0 { 1909 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteBackupRequest has unknown keys!", "") 1910 } 1911 return json.Unmarshal([]byte(s), &r) 1912} 1913 1914type DeleteBackupResponse struct { 1915 *tchttp.BaseResponse 1916 Response *struct { 1917 1918 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1919 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1920 } `json:"Response"` 1921} 1922 1923func (r *DeleteBackupResponse) ToJsonString() string { 1924 b, _ := json.Marshal(r) 1925 return string(b) 1926} 1927 1928// FromJsonString It is highly **NOT** recommended to use this function 1929// because it has no param check, nor strict type check 1930func (r *DeleteBackupResponse) FromJsonString(s string) error { 1931 return json.Unmarshal([]byte(s), &r) 1932} 1933 1934type DeleteDeployGroupsRequest struct { 1935 *tchttp.BaseRequest 1936 1937 // 要删除的置放群组 ID 列表。 1938 DeployGroupIds []*string `json:"DeployGroupIds,omitempty" name:"DeployGroupIds"` 1939} 1940 1941func (r *DeleteDeployGroupsRequest) ToJsonString() string { 1942 b, _ := json.Marshal(r) 1943 return string(b) 1944} 1945 1946// FromJsonString It is highly **NOT** recommended to use this function 1947// because it has no param check, nor strict type check 1948func (r *DeleteDeployGroupsRequest) FromJsonString(s string) error { 1949 f := make(map[string]interface{}) 1950 if err := json.Unmarshal([]byte(s), &f); err != nil { 1951 return err 1952 } 1953 delete(f, "DeployGroupIds") 1954 if len(f) > 0 { 1955 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDeployGroupsRequest has unknown keys!", "") 1956 } 1957 return json.Unmarshal([]byte(s), &r) 1958} 1959 1960type DeleteDeployGroupsResponse struct { 1961 *tchttp.BaseResponse 1962 Response *struct { 1963 1964 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1965 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1966 } `json:"Response"` 1967} 1968 1969func (r *DeleteDeployGroupsResponse) ToJsonString() string { 1970 b, _ := json.Marshal(r) 1971 return string(b) 1972} 1973 1974// FromJsonString It is highly **NOT** recommended to use this function 1975// because it has no param check, nor strict type check 1976func (r *DeleteDeployGroupsResponse) FromJsonString(s string) error { 1977 return json.Unmarshal([]byte(s), &r) 1978} 1979 1980type DeleteParamTemplateRequest struct { 1981 *tchttp.BaseRequest 1982 1983 // 参数模板ID。 1984 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 1985} 1986 1987func (r *DeleteParamTemplateRequest) ToJsonString() string { 1988 b, _ := json.Marshal(r) 1989 return string(b) 1990} 1991 1992// FromJsonString It is highly **NOT** recommended to use this function 1993// because it has no param check, nor strict type check 1994func (r *DeleteParamTemplateRequest) FromJsonString(s string) error { 1995 f := make(map[string]interface{}) 1996 if err := json.Unmarshal([]byte(s), &f); err != nil { 1997 return err 1998 } 1999 delete(f, "TemplateId") 2000 if len(f) > 0 { 2001 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteParamTemplateRequest has unknown keys!", "") 2002 } 2003 return json.Unmarshal([]byte(s), &r) 2004} 2005 2006type DeleteParamTemplateResponse struct { 2007 *tchttp.BaseResponse 2008 Response *struct { 2009 2010 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2011 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2012 } `json:"Response"` 2013} 2014 2015func (r *DeleteParamTemplateResponse) ToJsonString() string { 2016 b, _ := json.Marshal(r) 2017 return string(b) 2018} 2019 2020// FromJsonString It is highly **NOT** recommended to use this function 2021// because it has no param check, nor strict type check 2022func (r *DeleteParamTemplateResponse) FromJsonString(s string) error { 2023 return json.Unmarshal([]byte(s), &r) 2024} 2025 2026type DeleteTimeWindowRequest struct { 2027 *tchttp.BaseRequest 2028 2029 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 2030 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2031} 2032 2033func (r *DeleteTimeWindowRequest) ToJsonString() string { 2034 b, _ := json.Marshal(r) 2035 return string(b) 2036} 2037 2038// FromJsonString It is highly **NOT** recommended to use this function 2039// because it has no param check, nor strict type check 2040func (r *DeleteTimeWindowRequest) FromJsonString(s string) error { 2041 f := make(map[string]interface{}) 2042 if err := json.Unmarshal([]byte(s), &f); err != nil { 2043 return err 2044 } 2045 delete(f, "InstanceId") 2046 if len(f) > 0 { 2047 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTimeWindowRequest has unknown keys!", "") 2048 } 2049 return json.Unmarshal([]byte(s), &r) 2050} 2051 2052type DeleteTimeWindowResponse struct { 2053 *tchttp.BaseResponse 2054 Response *struct { 2055 2056 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2057 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2058 } `json:"Response"` 2059} 2060 2061func (r *DeleteTimeWindowResponse) ToJsonString() string { 2062 b, _ := json.Marshal(r) 2063 return string(b) 2064} 2065 2066// FromJsonString It is highly **NOT** recommended to use this function 2067// because it has no param check, nor strict type check 2068func (r *DeleteTimeWindowResponse) FromJsonString(s string) error { 2069 return json.Unmarshal([]byte(s), &r) 2070} 2071 2072type DeployGroupInfo struct { 2073 2074 // 置放群组 ID。 2075 DeployGroupId *string `json:"DeployGroupId,omitempty" name:"DeployGroupId"` 2076 2077 // 置放群组名称。 2078 DeployGroupName *string `json:"DeployGroupName,omitempty" name:"DeployGroupName"` 2079 2080 // 创建时间。 2081 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 2082 2083 // 置放群组实例配额,表示一个置放群组中可容纳的最大实例数目。 2084 Quota *int64 `json:"Quota,omitempty" name:"Quota"` 2085 2086 // 置放群组亲和性策略,目前仅支持策略1,即在物理机纬度打散实例的分布。 2087 // 注意:此字段可能返回 null,表示取不到有效值。 2088 Affinity *string `json:"Affinity,omitempty" name:"Affinity"` 2089 2090 // 置放群组亲和性策略1中,同台物理机上同个置放群组实例的限制个数。 2091 // 注意:此字段可能返回 null,表示取不到有效值。 2092 LimitNum *int64 `json:"LimitNum,omitempty" name:"LimitNum"` 2093 2094 // 置放群组详细信息。 2095 Description *string `json:"Description,omitempty" name:"Description"` 2096 2097 // 置放群组物理机型属性。 2098 // 注意:此字段可能返回 null,表示取不到有效值。 2099 DevClass *string `json:"DevClass,omitempty" name:"DevClass"` 2100} 2101 2102type DescribeAccountPrivilegesRequest struct { 2103 *tchttp.BaseRequest 2104 2105 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 2106 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2107 2108 // 数据库的账号名称。 2109 User *string `json:"User,omitempty" name:"User"` 2110 2111 // 数据库的账号域名。 2112 Host *string `json:"Host,omitempty" name:"Host"` 2113} 2114 2115func (r *DescribeAccountPrivilegesRequest) ToJsonString() string { 2116 b, _ := json.Marshal(r) 2117 return string(b) 2118} 2119 2120// FromJsonString It is highly **NOT** recommended to use this function 2121// because it has no param check, nor strict type check 2122func (r *DescribeAccountPrivilegesRequest) FromJsonString(s string) error { 2123 f := make(map[string]interface{}) 2124 if err := json.Unmarshal([]byte(s), &f); err != nil { 2125 return err 2126 } 2127 delete(f, "InstanceId") 2128 delete(f, "User") 2129 delete(f, "Host") 2130 if len(f) > 0 { 2131 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccountPrivilegesRequest has unknown keys!", "") 2132 } 2133 return json.Unmarshal([]byte(s), &r) 2134} 2135 2136type DescribeAccountPrivilegesResponse struct { 2137 *tchttp.BaseResponse 2138 Response *struct { 2139 2140 // 全局权限数组。 2141 GlobalPrivileges []*string `json:"GlobalPrivileges,omitempty" name:"GlobalPrivileges"` 2142 2143 // 数据库权限数组。 2144 DatabasePrivileges []*DatabasePrivilege `json:"DatabasePrivileges,omitempty" name:"DatabasePrivileges"` 2145 2146 // 数据库中的表权限数组。 2147 TablePrivileges []*TablePrivilege `json:"TablePrivileges,omitempty" name:"TablePrivileges"` 2148 2149 // 数据库表中的列权限数组。 2150 ColumnPrivileges []*ColumnPrivilege `json:"ColumnPrivileges,omitempty" name:"ColumnPrivileges"` 2151 2152 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2153 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2154 } `json:"Response"` 2155} 2156 2157func (r *DescribeAccountPrivilegesResponse) ToJsonString() string { 2158 b, _ := json.Marshal(r) 2159 return string(b) 2160} 2161 2162// FromJsonString It is highly **NOT** recommended to use this function 2163// because it has no param check, nor strict type check 2164func (r *DescribeAccountPrivilegesResponse) FromJsonString(s string) error { 2165 return json.Unmarshal([]byte(s), &r) 2166} 2167 2168type DescribeAccountsRequest struct { 2169 *tchttp.BaseRequest 2170 2171 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 2172 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2173 2174 // 记录偏移量,默认值为0。 2175 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2176 2177 // 单次请求返回的数量,默认值为20,最小值为1,最大值为100。 2178 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2179 2180 // 匹配账号名的正则表达式,规则同 MySQL 官网。 2181 AccountRegexp *string `json:"AccountRegexp,omitempty" name:"AccountRegexp"` 2182} 2183 2184func (r *DescribeAccountsRequest) ToJsonString() string { 2185 b, _ := json.Marshal(r) 2186 return string(b) 2187} 2188 2189// FromJsonString It is highly **NOT** recommended to use this function 2190// because it has no param check, nor strict type check 2191func (r *DescribeAccountsRequest) FromJsonString(s string) error { 2192 f := make(map[string]interface{}) 2193 if err := json.Unmarshal([]byte(s), &f); err != nil { 2194 return err 2195 } 2196 delete(f, "InstanceId") 2197 delete(f, "Offset") 2198 delete(f, "Limit") 2199 delete(f, "AccountRegexp") 2200 if len(f) > 0 { 2201 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccountsRequest has unknown keys!", "") 2202 } 2203 return json.Unmarshal([]byte(s), &r) 2204} 2205 2206type DescribeAccountsResponse struct { 2207 *tchttp.BaseResponse 2208 Response *struct { 2209 2210 // 符合查询条件的账号数量。 2211 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2212 2213 // 符合查询条件的账号详细信息。 2214 Items []*AccountInfo `json:"Items,omitempty" name:"Items"` 2215 2216 // 用户可设置实例最大连接数。 2217 MaxUserConnections *int64 `json:"MaxUserConnections,omitempty" name:"MaxUserConnections"` 2218 2219 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2220 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2221 } `json:"Response"` 2222} 2223 2224func (r *DescribeAccountsResponse) 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 *DescribeAccountsResponse) FromJsonString(s string) error { 2232 return json.Unmarshal([]byte(s), &r) 2233} 2234 2235type DescribeAsyncRequestInfoRequest struct { 2236 *tchttp.BaseRequest 2237 2238 // 异步任务的请求 ID。 2239 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 2240} 2241 2242func (r *DescribeAsyncRequestInfoRequest) ToJsonString() string { 2243 b, _ := json.Marshal(r) 2244 return string(b) 2245} 2246 2247// FromJsonString It is highly **NOT** recommended to use this function 2248// because it has no param check, nor strict type check 2249func (r *DescribeAsyncRequestInfoRequest) FromJsonString(s string) error { 2250 f := make(map[string]interface{}) 2251 if err := json.Unmarshal([]byte(s), &f); err != nil { 2252 return err 2253 } 2254 delete(f, "AsyncRequestId") 2255 if len(f) > 0 { 2256 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAsyncRequestInfoRequest has unknown keys!", "") 2257 } 2258 return json.Unmarshal([]byte(s), &r) 2259} 2260 2261type DescribeAsyncRequestInfoResponse struct { 2262 *tchttp.BaseResponse 2263 Response *struct { 2264 2265 // 任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。 2266 // 注意:此字段可能返回 null,表示取不到有效值。 2267 Status *string `json:"Status,omitempty" name:"Status"` 2268 2269 // 任务执行信息描述。 2270 // 注意:此字段可能返回 null,表示取不到有效值。 2271 Info *string `json:"Info,omitempty" name:"Info"` 2272 2273 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2274 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2275 } `json:"Response"` 2276} 2277 2278func (r *DescribeAsyncRequestInfoResponse) ToJsonString() string { 2279 b, _ := json.Marshal(r) 2280 return string(b) 2281} 2282 2283// FromJsonString It is highly **NOT** recommended to use this function 2284// because it has no param check, nor strict type check 2285func (r *DescribeAsyncRequestInfoResponse) FromJsonString(s string) error { 2286 return json.Unmarshal([]byte(s), &r) 2287} 2288 2289type DescribeAuditConfigRequest struct { 2290 *tchttp.BaseRequest 2291 2292 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 2293 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2294} 2295 2296func (r *DescribeAuditConfigRequest) ToJsonString() string { 2297 b, _ := json.Marshal(r) 2298 return string(b) 2299} 2300 2301// FromJsonString It is highly **NOT** recommended to use this function 2302// because it has no param check, nor strict type check 2303func (r *DescribeAuditConfigRequest) FromJsonString(s string) error { 2304 f := make(map[string]interface{}) 2305 if err := json.Unmarshal([]byte(s), &f); err != nil { 2306 return err 2307 } 2308 delete(f, "InstanceId") 2309 if len(f) > 0 { 2310 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditConfigRequest has unknown keys!", "") 2311 } 2312 return json.Unmarshal([]byte(s), &r) 2313} 2314 2315type DescribeAuditConfigResponse struct { 2316 *tchttp.BaseResponse 2317 Response *struct { 2318 2319 // 审计日志保存时长。目前支持的值包括:[0,7,30,180,365,1095,1825]。 2320 // 注意:此字段可能返回 null,表示取不到有效值。 2321 LogExpireDay *int64 `json:"LogExpireDay,omitempty" name:"LogExpireDay"` 2322 2323 // 审计日志存储类型。目前支持的值包括:"storage" - 存储型。 2324 LogType *string `json:"LogType,omitempty" name:"LogType"` 2325 2326 // 是否正在关闭审计。目前支持的值包括:"false"-否,"true"-是 2327 IsClosing *string `json:"IsClosing,omitempty" name:"IsClosing"` 2328 2329 // 审计服务开通时间。 2330 // 注意:此字段可能返回 null,表示取不到有效值。 2331 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 2332 2333 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2334 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2335 } `json:"Response"` 2336} 2337 2338func (r *DescribeAuditConfigResponse) ToJsonString() string { 2339 b, _ := json.Marshal(r) 2340 return string(b) 2341} 2342 2343// FromJsonString It is highly **NOT** recommended to use this function 2344// because it has no param check, nor strict type check 2345func (r *DescribeAuditConfigResponse) FromJsonString(s string) error { 2346 return json.Unmarshal([]byte(s), &r) 2347} 2348 2349type DescribeAuditLogFilesRequest struct { 2350 *tchttp.BaseRequest 2351 2352 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 2353 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2354 2355 // 分页大小参数。默认值为 20,最小值为 1,最大值为 100。 2356 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2357 2358 // 分页偏移量。 2359 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2360 2361 // 审计日志文件名。 2362 FileName *string `json:"FileName,omitempty" name:"FileName"` 2363} 2364 2365func (r *DescribeAuditLogFilesRequest) ToJsonString() string { 2366 b, _ := json.Marshal(r) 2367 return string(b) 2368} 2369 2370// FromJsonString It is highly **NOT** recommended to use this function 2371// because it has no param check, nor strict type check 2372func (r *DescribeAuditLogFilesRequest) FromJsonString(s string) error { 2373 f := make(map[string]interface{}) 2374 if err := json.Unmarshal([]byte(s), &f); err != nil { 2375 return err 2376 } 2377 delete(f, "InstanceId") 2378 delete(f, "Limit") 2379 delete(f, "Offset") 2380 delete(f, "FileName") 2381 if len(f) > 0 { 2382 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditLogFilesRequest has unknown keys!", "") 2383 } 2384 return json.Unmarshal([]byte(s), &r) 2385} 2386 2387type DescribeAuditLogFilesResponse struct { 2388 *tchttp.BaseResponse 2389 Response *struct { 2390 2391 // 符合条件的审计日志文件个数。 2392 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2393 2394 // 审计日志文件详情。 2395 Items []*AuditLogFile `json:"Items,omitempty" name:"Items"` 2396 2397 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2398 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2399 } `json:"Response"` 2400} 2401 2402func (r *DescribeAuditLogFilesResponse) ToJsonString() string { 2403 b, _ := json.Marshal(r) 2404 return string(b) 2405} 2406 2407// FromJsonString It is highly **NOT** recommended to use this function 2408// because it has no param check, nor strict type check 2409func (r *DescribeAuditLogFilesResponse) FromJsonString(s string) error { 2410 return json.Unmarshal([]byte(s), &r) 2411} 2412 2413type DescribeAuditPoliciesRequest struct { 2414 *tchttp.BaseRequest 2415 2416 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 2417 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2418 2419 // 审计策略 ID。 2420 PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` 2421 2422 // 审计策略名称。支持按审计策略名称进行模糊匹配查询。 2423 PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` 2424 2425 // 分页大小参数。默认值为 20,最小值为 1,最大值为 100。 2426 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2427 2428 // 分页偏移量。 2429 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2430 2431 // 审计规则 ID。可使用该审计规则 ID 查询到其关联的审计策略。 2432 // 注意,参数 RuleId,InstanceId,PolicyId,PolicyName 必须至少传一个。 2433 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 2434} 2435 2436func (r *DescribeAuditPoliciesRequest) ToJsonString() string { 2437 b, _ := json.Marshal(r) 2438 return string(b) 2439} 2440 2441// FromJsonString It is highly **NOT** recommended to use this function 2442// because it has no param check, nor strict type check 2443func (r *DescribeAuditPoliciesRequest) FromJsonString(s string) error { 2444 f := make(map[string]interface{}) 2445 if err := json.Unmarshal([]byte(s), &f); err != nil { 2446 return err 2447 } 2448 delete(f, "InstanceId") 2449 delete(f, "PolicyId") 2450 delete(f, "PolicyName") 2451 delete(f, "Limit") 2452 delete(f, "Offset") 2453 delete(f, "RuleId") 2454 if len(f) > 0 { 2455 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditPoliciesRequest has unknown keys!", "") 2456 } 2457 return json.Unmarshal([]byte(s), &r) 2458} 2459 2460type DescribeAuditPoliciesResponse struct { 2461 *tchttp.BaseResponse 2462 Response *struct { 2463 2464 // 符合条件的审计策略个数。 2465 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2466 2467 // 审计策略详情。 2468 // 注意:此字段可能返回 null,表示取不到有效值。 2469 Items []*AuditPolicy `json:"Items,omitempty" name:"Items"` 2470 2471 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2472 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2473 } `json:"Response"` 2474} 2475 2476func (r *DescribeAuditPoliciesResponse) ToJsonString() string { 2477 b, _ := json.Marshal(r) 2478 return string(b) 2479} 2480 2481// FromJsonString It is highly **NOT** recommended to use this function 2482// because it has no param check, nor strict type check 2483func (r *DescribeAuditPoliciesResponse) FromJsonString(s string) error { 2484 return json.Unmarshal([]byte(s), &r) 2485} 2486 2487type DescribeAuditRulesRequest struct { 2488 *tchttp.BaseRequest 2489 2490 // 审计规则 ID。 2491 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 2492 2493 // 审计规则名称。支持按审计规则名称进行模糊匹配查询。 2494 RuleName *string `json:"RuleName,omitempty" name:"RuleName"` 2495 2496 // 分页大小参数。默认值为 20,最小值为 1,最大值为 100。 2497 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2498 2499 // 分页偏移量。 2500 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2501} 2502 2503func (r *DescribeAuditRulesRequest) ToJsonString() string { 2504 b, _ := json.Marshal(r) 2505 return string(b) 2506} 2507 2508// FromJsonString It is highly **NOT** recommended to use this function 2509// because it has no param check, nor strict type check 2510func (r *DescribeAuditRulesRequest) FromJsonString(s string) error { 2511 f := make(map[string]interface{}) 2512 if err := json.Unmarshal([]byte(s), &f); err != nil { 2513 return err 2514 } 2515 delete(f, "RuleId") 2516 delete(f, "RuleName") 2517 delete(f, "Limit") 2518 delete(f, "Offset") 2519 if len(f) > 0 { 2520 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditRulesRequest has unknown keys!", "") 2521 } 2522 return json.Unmarshal([]byte(s), &r) 2523} 2524 2525type DescribeAuditRulesResponse struct { 2526 *tchttp.BaseResponse 2527 Response *struct { 2528 2529 // 符合条件的审计规则个数。 2530 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2531 2532 // 审计规则详情。 2533 // 注意:此字段可能返回 null,表示取不到有效值。 2534 Items []*AuditRule `json:"Items,omitempty" name:"Items"` 2535 2536 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2537 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2538 } `json:"Response"` 2539} 2540 2541func (r *DescribeAuditRulesResponse) ToJsonString() string { 2542 b, _ := json.Marshal(r) 2543 return string(b) 2544} 2545 2546// FromJsonString It is highly **NOT** recommended to use this function 2547// because it has no param check, nor strict type check 2548func (r *DescribeAuditRulesResponse) FromJsonString(s string) error { 2549 return json.Unmarshal([]byte(s), &r) 2550} 2551 2552type DescribeBackupConfigRequest struct { 2553 *tchttp.BaseRequest 2554 2555 // 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 2556 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2557} 2558 2559func (r *DescribeBackupConfigRequest) ToJsonString() string { 2560 b, _ := json.Marshal(r) 2561 return string(b) 2562} 2563 2564// FromJsonString It is highly **NOT** recommended to use this function 2565// because it has no param check, nor strict type check 2566func (r *DescribeBackupConfigRequest) FromJsonString(s string) error { 2567 f := make(map[string]interface{}) 2568 if err := json.Unmarshal([]byte(s), &f); err != nil { 2569 return err 2570 } 2571 delete(f, "InstanceId") 2572 if len(f) > 0 { 2573 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBackupConfigRequest has unknown keys!", "") 2574 } 2575 return json.Unmarshal([]byte(s), &r) 2576} 2577 2578type DescribeBackupConfigResponse struct { 2579 *tchttp.BaseResponse 2580 Response *struct { 2581 2582 // 自动备份开始的最早时间点,单位为时刻。例如,2 - 凌晨 2:00。(该字段已废弃,建议使用 BackupTimeWindow 字段) 2583 StartTimeMin *int64 `json:"StartTimeMin,omitempty" name:"StartTimeMin"` 2584 2585 // 自动备份开始的最晚时间点,单位为时刻。例如,6 - 凌晨 6:00。(该字段已废弃,建议使用 BackupTimeWindow 字段) 2586 StartTimeMax *int64 `json:"StartTimeMax,omitempty" name:"StartTimeMax"` 2587 2588 // 备份文件保留时间,单位为天。 2589 BackupExpireDays *int64 `json:"BackupExpireDays,omitempty" name:"BackupExpireDays"` 2590 2591 // 备份方式,可能的值为:physical - 物理备份,logical - 逻辑备份。 2592 BackupMethod *string `json:"BackupMethod,omitempty" name:"BackupMethod"` 2593 2594 // Binlog 文件保留时间,单位为天。 2595 BinlogExpireDays *int64 `json:"BinlogExpireDays,omitempty" name:"BinlogExpireDays"` 2596 2597 // 实例自动备份的时间窗。 2598 BackupTimeWindow *CommonTimeWindow `json:"BackupTimeWindow,omitempty" name:"BackupTimeWindow"` 2599 2600 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2601 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2602 } `json:"Response"` 2603} 2604 2605func (r *DescribeBackupConfigResponse) ToJsonString() string { 2606 b, _ := json.Marshal(r) 2607 return string(b) 2608} 2609 2610// FromJsonString It is highly **NOT** recommended to use this function 2611// because it has no param check, nor strict type check 2612func (r *DescribeBackupConfigResponse) FromJsonString(s string) error { 2613 return json.Unmarshal([]byte(s), &r) 2614} 2615 2616type DescribeBackupDatabasesRequest struct { 2617 *tchttp.BaseRequest 2618 2619 // 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 2620 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2621 2622 // 开始时间,格式为:2017-07-12 10:29:20。 2623 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 2624 2625 // 要查询的数据库名前缀。 2626 SearchDatabase *string `json:"SearchDatabase,omitempty" name:"SearchDatabase"` 2627 2628 // 分页偏移量。 2629 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2630 2631 // 分页大小,最小值为1,最大值为2000。 2632 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2633} 2634 2635func (r *DescribeBackupDatabasesRequest) ToJsonString() string { 2636 b, _ := json.Marshal(r) 2637 return string(b) 2638} 2639 2640// FromJsonString It is highly **NOT** recommended to use this function 2641// because it has no param check, nor strict type check 2642func (r *DescribeBackupDatabasesRequest) FromJsonString(s string) error { 2643 f := make(map[string]interface{}) 2644 if err := json.Unmarshal([]byte(s), &f); err != nil { 2645 return err 2646 } 2647 delete(f, "InstanceId") 2648 delete(f, "StartTime") 2649 delete(f, "SearchDatabase") 2650 delete(f, "Offset") 2651 delete(f, "Limit") 2652 if len(f) > 0 { 2653 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBackupDatabasesRequest has unknown keys!", "") 2654 } 2655 return json.Unmarshal([]byte(s), &r) 2656} 2657 2658type DescribeBackupDatabasesResponse struct { 2659 *tchttp.BaseResponse 2660 Response *struct { 2661 2662 // 返回的数据个数。 2663 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2664 2665 // 符合查询条件的数据库数组。 2666 Items []*DatabaseName `json:"Items,omitempty" name:"Items"` 2667 2668 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2669 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2670 } `json:"Response"` 2671} 2672 2673func (r *DescribeBackupDatabasesResponse) ToJsonString() string { 2674 b, _ := json.Marshal(r) 2675 return string(b) 2676} 2677 2678// FromJsonString It is highly **NOT** recommended to use this function 2679// because it has no param check, nor strict type check 2680func (r *DescribeBackupDatabasesResponse) FromJsonString(s string) error { 2681 return json.Unmarshal([]byte(s), &r) 2682} 2683 2684type DescribeBackupOverviewRequest struct { 2685 *tchttp.BaseRequest 2686 2687 // 需要查询的云数据库产品类型,目前仅支持 "mysql"。 2688 Product *string `json:"Product,omitempty" name:"Product"` 2689} 2690 2691func (r *DescribeBackupOverviewRequest) ToJsonString() string { 2692 b, _ := json.Marshal(r) 2693 return string(b) 2694} 2695 2696// FromJsonString It is highly **NOT** recommended to use this function 2697// because it has no param check, nor strict type check 2698func (r *DescribeBackupOverviewRequest) FromJsonString(s string) error { 2699 f := make(map[string]interface{}) 2700 if err := json.Unmarshal([]byte(s), &f); err != nil { 2701 return err 2702 } 2703 delete(f, "Product") 2704 if len(f) > 0 { 2705 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBackupOverviewRequest has unknown keys!", "") 2706 } 2707 return json.Unmarshal([]byte(s), &r) 2708} 2709 2710type DescribeBackupOverviewResponse struct { 2711 *tchttp.BaseResponse 2712 Response *struct { 2713 2714 // 用户在当前地域备份的总个数(包含数据备份和日志备份)。 2715 BackupCount *int64 `json:"BackupCount,omitempty" name:"BackupCount"` 2716 2717 // 用户在当前地域备份的总容量 2718 BackupVolume *int64 `json:"BackupVolume,omitempty" name:"BackupVolume"` 2719 2720 // 用户在当前地域备份的计费容量,即超出赠送容量的部分。 2721 BillingVolume *int64 `json:"BillingVolume,omitempty" name:"BillingVolume"` 2722 2723 // 用户在当前地域获得的赠送备份容量。 2724 FreeVolume *int64 `json:"FreeVolume,omitempty" name:"FreeVolume"` 2725 2726 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2727 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2728 } `json:"Response"` 2729} 2730 2731func (r *DescribeBackupOverviewResponse) ToJsonString() string { 2732 b, _ := json.Marshal(r) 2733 return string(b) 2734} 2735 2736// FromJsonString It is highly **NOT** recommended to use this function 2737// because it has no param check, nor strict type check 2738func (r *DescribeBackupOverviewResponse) FromJsonString(s string) error { 2739 return json.Unmarshal([]byte(s), &r) 2740} 2741 2742type DescribeBackupSummariesRequest struct { 2743 *tchttp.BaseRequest 2744 2745 // 需要查询的云数据库产品类型,目前仅支持 "mysql"。 2746 Product *string `json:"Product,omitempty" name:"Product"` 2747 2748 // 分页查询数据的偏移量。 2749 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2750 2751 // 分页查询数据的条目限制,默认值为20。 2752 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2753 2754 // 指定按某一项排序,可选值包括: BackupVolume: 备份容量, DataBackupVolume: 数据备份容量, BinlogBackupVolume: 日志备份容量, AutoBackupVolume: 自动备份容量, ManualBackupVolume: 手动备份容量。 2755 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 2756 2757 // 指定排序方向,可选值包括: ASC: 正序, DESC: 逆序。 2758 OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` 2759} 2760 2761func (r *DescribeBackupSummariesRequest) ToJsonString() string { 2762 b, _ := json.Marshal(r) 2763 return string(b) 2764} 2765 2766// FromJsonString It is highly **NOT** recommended to use this function 2767// because it has no param check, nor strict type check 2768func (r *DescribeBackupSummariesRequest) FromJsonString(s string) error { 2769 f := make(map[string]interface{}) 2770 if err := json.Unmarshal([]byte(s), &f); err != nil { 2771 return err 2772 } 2773 delete(f, "Product") 2774 delete(f, "Offset") 2775 delete(f, "Limit") 2776 delete(f, "OrderBy") 2777 delete(f, "OrderDirection") 2778 if len(f) > 0 { 2779 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBackupSummariesRequest has unknown keys!", "") 2780 } 2781 return json.Unmarshal([]byte(s), &r) 2782} 2783 2784type DescribeBackupSummariesResponse struct { 2785 *tchttp.BaseResponse 2786 Response *struct { 2787 2788 // 实例备份统计条目。 2789 Items []*BackupSummaryItem `json:"Items,omitempty" name:"Items"` 2790 2791 // 实例备份统计总条目数。 2792 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2793 2794 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2795 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2796 } `json:"Response"` 2797} 2798 2799func (r *DescribeBackupSummariesResponse) ToJsonString() string { 2800 b, _ := json.Marshal(r) 2801 return string(b) 2802} 2803 2804// FromJsonString It is highly **NOT** recommended to use this function 2805// because it has no param check, nor strict type check 2806func (r *DescribeBackupSummariesResponse) FromJsonString(s string) error { 2807 return json.Unmarshal([]byte(s), &r) 2808} 2809 2810type DescribeBackupTablesRequest struct { 2811 *tchttp.BaseRequest 2812 2813 // 实例ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。 2814 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2815 2816 // 开始时间,格式为:2017-07-12 10:29:20。 2817 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 2818 2819 // 指定的数据库名。 2820 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` 2821 2822 // 要查询的数据表名前缀。 2823 SearchTable *string `json:"SearchTable,omitempty" name:"SearchTable"` 2824 2825 // 分页偏移。 2826 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2827 2828 // 分页大小,最小值为1,最大值为2000。 2829 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2830} 2831 2832func (r *DescribeBackupTablesRequest) ToJsonString() string { 2833 b, _ := json.Marshal(r) 2834 return string(b) 2835} 2836 2837// FromJsonString It is highly **NOT** recommended to use this function 2838// because it has no param check, nor strict type check 2839func (r *DescribeBackupTablesRequest) FromJsonString(s string) error { 2840 f := make(map[string]interface{}) 2841 if err := json.Unmarshal([]byte(s), &f); err != nil { 2842 return err 2843 } 2844 delete(f, "InstanceId") 2845 delete(f, "StartTime") 2846 delete(f, "DatabaseName") 2847 delete(f, "SearchTable") 2848 delete(f, "Offset") 2849 delete(f, "Limit") 2850 if len(f) > 0 { 2851 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBackupTablesRequest has unknown keys!", "") 2852 } 2853 return json.Unmarshal([]byte(s), &r) 2854} 2855 2856type DescribeBackupTablesResponse struct { 2857 *tchttp.BaseResponse 2858 Response *struct { 2859 2860 // 返回的数据个数。 2861 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2862 2863 // 符合条件的数据表数组。 2864 Items []*TableName `json:"Items,omitempty" name:"Items"` 2865 2866 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2867 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2868 } `json:"Response"` 2869} 2870 2871func (r *DescribeBackupTablesResponse) ToJsonString() string { 2872 b, _ := json.Marshal(r) 2873 return string(b) 2874} 2875 2876// FromJsonString It is highly **NOT** recommended to use this function 2877// because it has no param check, nor strict type check 2878func (r *DescribeBackupTablesResponse) FromJsonString(s string) error { 2879 return json.Unmarshal([]byte(s), &r) 2880} 2881 2882type DescribeBackupsRequest struct { 2883 *tchttp.BaseRequest 2884 2885 // 实例ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 2886 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2887 2888 // 偏移量,最小值为0。 2889 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2890 2891 // 分页大小,默认值为20,最小值为1,最大值为100。 2892 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2893} 2894 2895func (r *DescribeBackupsRequest) ToJsonString() string { 2896 b, _ := json.Marshal(r) 2897 return string(b) 2898} 2899 2900// FromJsonString It is highly **NOT** recommended to use this function 2901// because it has no param check, nor strict type check 2902func (r *DescribeBackupsRequest) FromJsonString(s string) error { 2903 f := make(map[string]interface{}) 2904 if err := json.Unmarshal([]byte(s), &f); err != nil { 2905 return err 2906 } 2907 delete(f, "InstanceId") 2908 delete(f, "Offset") 2909 delete(f, "Limit") 2910 if len(f) > 0 { 2911 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBackupsRequest has unknown keys!", "") 2912 } 2913 return json.Unmarshal([]byte(s), &r) 2914} 2915 2916type DescribeBackupsResponse struct { 2917 *tchttp.BaseResponse 2918 Response *struct { 2919 2920 // 符合查询条件的实例总数。 2921 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2922 2923 // 符合查询条件的备份信息详情。 2924 Items []*BackupInfo `json:"Items,omitempty" name:"Items"` 2925 2926 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2927 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2928 } `json:"Response"` 2929} 2930 2931func (r *DescribeBackupsResponse) ToJsonString() string { 2932 b, _ := json.Marshal(r) 2933 return string(b) 2934} 2935 2936// FromJsonString It is highly **NOT** recommended to use this function 2937// because it has no param check, nor strict type check 2938func (r *DescribeBackupsResponse) FromJsonString(s string) error { 2939 return json.Unmarshal([]byte(s), &r) 2940} 2941 2942type DescribeBinlogBackupOverviewRequest struct { 2943 *tchttp.BaseRequest 2944 2945 // 需要查询的云数据库产品类型,目前仅支持 "mysql"。 2946 Product *string `json:"Product,omitempty" name:"Product"` 2947} 2948 2949func (r *DescribeBinlogBackupOverviewRequest) ToJsonString() string { 2950 b, _ := json.Marshal(r) 2951 return string(b) 2952} 2953 2954// FromJsonString It is highly **NOT** recommended to use this function 2955// because it has no param check, nor strict type check 2956func (r *DescribeBinlogBackupOverviewRequest) FromJsonString(s string) error { 2957 f := make(map[string]interface{}) 2958 if err := json.Unmarshal([]byte(s), &f); err != nil { 2959 return err 2960 } 2961 delete(f, "Product") 2962 if len(f) > 0 { 2963 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBinlogBackupOverviewRequest has unknown keys!", "") 2964 } 2965 return json.Unmarshal([]byte(s), &r) 2966} 2967 2968type DescribeBinlogBackupOverviewResponse struct { 2969 *tchttp.BaseResponse 2970 Response *struct { 2971 2972 // 总的日志备份容量(单位为字节)。 2973 BinlogBackupVolume *int64 `json:"BinlogBackupVolume,omitempty" name:"BinlogBackupVolume"` 2974 2975 // 总的日志备份个数。 2976 BinlogBackupCount *int64 `json:"BinlogBackupCount,omitempty" name:"BinlogBackupCount"` 2977 2978 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2979 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2980 } `json:"Response"` 2981} 2982 2983func (r *DescribeBinlogBackupOverviewResponse) ToJsonString() string { 2984 b, _ := json.Marshal(r) 2985 return string(b) 2986} 2987 2988// FromJsonString It is highly **NOT** recommended to use this function 2989// because it has no param check, nor strict type check 2990func (r *DescribeBinlogBackupOverviewResponse) FromJsonString(s string) error { 2991 return json.Unmarshal([]byte(s), &r) 2992} 2993 2994type DescribeBinlogsRequest struct { 2995 *tchttp.BaseRequest 2996 2997 // 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 2998 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2999 3000 // 偏移量,最小值为0。 3001 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 3002 3003 // 分页大小,默认值为20,最小值为1,最大值为100。 3004 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 3005} 3006 3007func (r *DescribeBinlogsRequest) ToJsonString() string { 3008 b, _ := json.Marshal(r) 3009 return string(b) 3010} 3011 3012// FromJsonString It is highly **NOT** recommended to use this function 3013// because it has no param check, nor strict type check 3014func (r *DescribeBinlogsRequest) FromJsonString(s string) error { 3015 f := make(map[string]interface{}) 3016 if err := json.Unmarshal([]byte(s), &f); err != nil { 3017 return err 3018 } 3019 delete(f, "InstanceId") 3020 delete(f, "Offset") 3021 delete(f, "Limit") 3022 if len(f) > 0 { 3023 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBinlogsRequest has unknown keys!", "") 3024 } 3025 return json.Unmarshal([]byte(s), &r) 3026} 3027 3028type DescribeBinlogsResponse struct { 3029 *tchttp.BaseResponse 3030 Response *struct { 3031 3032 // 符合查询条件的日志文件总数。 3033 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3034 3035 // 符合查询条件的二进制日志文件详情。 3036 Items []*BinlogInfo `json:"Items,omitempty" name:"Items"` 3037 3038 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3039 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3040 } `json:"Response"` 3041} 3042 3043func (r *DescribeBinlogsResponse) ToJsonString() string { 3044 b, _ := json.Marshal(r) 3045 return string(b) 3046} 3047 3048// FromJsonString It is highly **NOT** recommended to use this function 3049// because it has no param check, nor strict type check 3050func (r *DescribeBinlogsResponse) FromJsonString(s string) error { 3051 return json.Unmarshal([]byte(s), &r) 3052} 3053 3054type DescribeCloneListRequest struct { 3055 *tchttp.BaseRequest 3056 3057 // 查询指定源实例的克隆任务列表。 3058 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3059 3060 // 分页查询时的偏移量,默认值为0。 3061 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 3062 3063 // 分页查询时的每页条目数,默认值为20。 3064 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 3065} 3066 3067func (r *DescribeCloneListRequest) ToJsonString() string { 3068 b, _ := json.Marshal(r) 3069 return string(b) 3070} 3071 3072// FromJsonString It is highly **NOT** recommended to use this function 3073// because it has no param check, nor strict type check 3074func (r *DescribeCloneListRequest) FromJsonString(s string) error { 3075 f := make(map[string]interface{}) 3076 if err := json.Unmarshal([]byte(s), &f); err != nil { 3077 return err 3078 } 3079 delete(f, "InstanceId") 3080 delete(f, "Offset") 3081 delete(f, "Limit") 3082 if len(f) > 0 { 3083 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCloneListRequest has unknown keys!", "") 3084 } 3085 return json.Unmarshal([]byte(s), &r) 3086} 3087 3088type DescribeCloneListResponse struct { 3089 *tchttp.BaseResponse 3090 Response *struct { 3091 3092 // 满足条件的条目数。 3093 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3094 3095 // 克隆任务列表。 3096 Items []*CloneItem `json:"Items,omitempty" name:"Items"` 3097 3098 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3099 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3100 } `json:"Response"` 3101} 3102 3103func (r *DescribeCloneListResponse) ToJsonString() string { 3104 b, _ := json.Marshal(r) 3105 return string(b) 3106} 3107 3108// FromJsonString It is highly **NOT** recommended to use this function 3109// because it has no param check, nor strict type check 3110func (r *DescribeCloneListResponse) FromJsonString(s string) error { 3111 return json.Unmarshal([]byte(s), &r) 3112} 3113 3114type DescribeDBImportRecordsRequest struct { 3115 *tchttp.BaseRequest 3116 3117 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 3118 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3119 3120 // 开始时间,时间格式如:2016-01-01 00:00:01。 3121 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 3122 3123 // 结束时间,时间格式如:2016-01-01 23:59:59。 3124 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 3125 3126 // 分页参数,偏移量,默认值为0。 3127 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 3128 3129 // 分页参数,单次请求返回的数量,默认值为20,最小值为1,最大值为100。 3130 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 3131} 3132 3133func (r *DescribeDBImportRecordsRequest) ToJsonString() string { 3134 b, _ := json.Marshal(r) 3135 return string(b) 3136} 3137 3138// FromJsonString It is highly **NOT** recommended to use this function 3139// because it has no param check, nor strict type check 3140func (r *DescribeDBImportRecordsRequest) FromJsonString(s string) error { 3141 f := make(map[string]interface{}) 3142 if err := json.Unmarshal([]byte(s), &f); err != nil { 3143 return err 3144 } 3145 delete(f, "InstanceId") 3146 delete(f, "StartTime") 3147 delete(f, "EndTime") 3148 delete(f, "Offset") 3149 delete(f, "Limit") 3150 if len(f) > 0 { 3151 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBImportRecordsRequest has unknown keys!", "") 3152 } 3153 return json.Unmarshal([]byte(s), &r) 3154} 3155 3156type DescribeDBImportRecordsResponse struct { 3157 *tchttp.BaseResponse 3158 Response *struct { 3159 3160 // 符合查询条件的导入任务操作日志总数。 3161 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3162 3163 // 返回的导入操作记录列表。 3164 Items []*ImportRecord `json:"Items,omitempty" name:"Items"` 3165 3166 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3167 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3168 } `json:"Response"` 3169} 3170 3171func (r *DescribeDBImportRecordsResponse) ToJsonString() string { 3172 b, _ := json.Marshal(r) 3173 return string(b) 3174} 3175 3176// FromJsonString It is highly **NOT** recommended to use this function 3177// because it has no param check, nor strict type check 3178func (r *DescribeDBImportRecordsResponse) FromJsonString(s string) error { 3179 return json.Unmarshal([]byte(s), &r) 3180} 3181 3182type DescribeDBInstanceCharsetRequest struct { 3183 *tchttp.BaseRequest 3184 3185 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 3186 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3187} 3188 3189func (r *DescribeDBInstanceCharsetRequest) ToJsonString() string { 3190 b, _ := json.Marshal(r) 3191 return string(b) 3192} 3193 3194// FromJsonString It is highly **NOT** recommended to use this function 3195// because it has no param check, nor strict type check 3196func (r *DescribeDBInstanceCharsetRequest) FromJsonString(s string) error { 3197 f := make(map[string]interface{}) 3198 if err := json.Unmarshal([]byte(s), &f); err != nil { 3199 return err 3200 } 3201 delete(f, "InstanceId") 3202 if len(f) > 0 { 3203 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBInstanceCharsetRequest has unknown keys!", "") 3204 } 3205 return json.Unmarshal([]byte(s), &r) 3206} 3207 3208type DescribeDBInstanceCharsetResponse struct { 3209 *tchttp.BaseResponse 3210 Response *struct { 3211 3212 // 实例的默认字符集,如 "latin1","utf8" 等。 3213 Charset *string `json:"Charset,omitempty" name:"Charset"` 3214 3215 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3216 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3217 } `json:"Response"` 3218} 3219 3220func (r *DescribeDBInstanceCharsetResponse) ToJsonString() string { 3221 b, _ := json.Marshal(r) 3222 return string(b) 3223} 3224 3225// FromJsonString It is highly **NOT** recommended to use this function 3226// because it has no param check, nor strict type check 3227func (r *DescribeDBInstanceCharsetResponse) FromJsonString(s string) error { 3228 return json.Unmarshal([]byte(s), &r) 3229} 3230 3231type DescribeDBInstanceConfigRequest struct { 3232 *tchttp.BaseRequest 3233 3234 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 3235 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3236} 3237 3238func (r *DescribeDBInstanceConfigRequest) ToJsonString() string { 3239 b, _ := json.Marshal(r) 3240 return string(b) 3241} 3242 3243// FromJsonString It is highly **NOT** recommended to use this function 3244// because it has no param check, nor strict type check 3245func (r *DescribeDBInstanceConfigRequest) FromJsonString(s string) error { 3246 f := make(map[string]interface{}) 3247 if err := json.Unmarshal([]byte(s), &f); err != nil { 3248 return err 3249 } 3250 delete(f, "InstanceId") 3251 if len(f) > 0 { 3252 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBInstanceConfigRequest has unknown keys!", "") 3253 } 3254 return json.Unmarshal([]byte(s), &r) 3255} 3256 3257type DescribeDBInstanceConfigResponse struct { 3258 *tchttp.BaseResponse 3259 Response *struct { 3260 3261 // 主实例数据保护方式,可能的返回值:0 - 异步复制方式,1 - 半同步复制方式,2 - 强同步复制方式。 3262 ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 3263 3264 // 主实例部署方式,可能的返回值:0 - 单可用部署,1 - 多可用区部署。 3265 DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` 3266 3267 // 实例可用区信息,格式如 "ap-shanghai-1"。 3268 Zone *string `json:"Zone,omitempty" name:"Zone"` 3269 3270 // 备库的配置信息。 3271 // 注意:此字段可能返回 null,表示取不到有效值。 3272 SlaveConfig *SlaveConfig `json:"SlaveConfig,omitempty" name:"SlaveConfig"` 3273 3274 // 强同步实例第二备库的配置信息。 3275 // 注意:此字段可能返回 null,表示取不到有效值。 3276 BackupConfig *BackupConfig `json:"BackupConfig,omitempty" name:"BackupConfig"` 3277 3278 // 是否切换备库。 3279 Switched *bool `json:"Switched,omitempty" name:"Switched"` 3280 3281 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3282 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3283 } `json:"Response"` 3284} 3285 3286func (r *DescribeDBInstanceConfigResponse) ToJsonString() string { 3287 b, _ := json.Marshal(r) 3288 return string(b) 3289} 3290 3291// FromJsonString It is highly **NOT** recommended to use this function 3292// because it has no param check, nor strict type check 3293func (r *DescribeDBInstanceConfigResponse) FromJsonString(s string) error { 3294 return json.Unmarshal([]byte(s), &r) 3295} 3296 3297type DescribeDBInstanceGTIDRequest struct { 3298 *tchttp.BaseRequest 3299 3300 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 3301 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3302} 3303 3304func (r *DescribeDBInstanceGTIDRequest) ToJsonString() string { 3305 b, _ := json.Marshal(r) 3306 return string(b) 3307} 3308 3309// FromJsonString It is highly **NOT** recommended to use this function 3310// because it has no param check, nor strict type check 3311func (r *DescribeDBInstanceGTIDRequest) FromJsonString(s string) error { 3312 f := make(map[string]interface{}) 3313 if err := json.Unmarshal([]byte(s), &f); err != nil { 3314 return err 3315 } 3316 delete(f, "InstanceId") 3317 if len(f) > 0 { 3318 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBInstanceGTIDRequest has unknown keys!", "") 3319 } 3320 return json.Unmarshal([]byte(s), &r) 3321} 3322 3323type DescribeDBInstanceGTIDResponse struct { 3324 *tchttp.BaseResponse 3325 Response *struct { 3326 3327 // GTID 是否开通的标记,可能的取值为:0 - 未开通,1 - 已开通。 3328 IsGTIDOpen *int64 `json:"IsGTIDOpen,omitempty" name:"IsGTIDOpen"` 3329 3330 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3331 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3332 } `json:"Response"` 3333} 3334 3335func (r *DescribeDBInstanceGTIDResponse) ToJsonString() string { 3336 b, _ := json.Marshal(r) 3337 return string(b) 3338} 3339 3340// FromJsonString It is highly **NOT** recommended to use this function 3341// because it has no param check, nor strict type check 3342func (r *DescribeDBInstanceGTIDResponse) FromJsonString(s string) error { 3343 return json.Unmarshal([]byte(s), &r) 3344} 3345 3346type DescribeDBInstanceInfoRequest struct { 3347 *tchttp.BaseRequest 3348 3349 // 实例 ID 。 3350 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3351} 3352 3353func (r *DescribeDBInstanceInfoRequest) ToJsonString() string { 3354 b, _ := json.Marshal(r) 3355 return string(b) 3356} 3357 3358// FromJsonString It is highly **NOT** recommended to use this function 3359// because it has no param check, nor strict type check 3360func (r *DescribeDBInstanceInfoRequest) FromJsonString(s string) error { 3361 f := make(map[string]interface{}) 3362 if err := json.Unmarshal([]byte(s), &f); err != nil { 3363 return err 3364 } 3365 delete(f, "InstanceId") 3366 if len(f) > 0 { 3367 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBInstanceInfoRequest has unknown keys!", "") 3368 } 3369 return json.Unmarshal([]byte(s), &r) 3370} 3371 3372type DescribeDBInstanceInfoResponse struct { 3373 *tchttp.BaseResponse 3374 Response *struct { 3375 3376 // 实例 ID 。 3377 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3378 3379 // 实例名称。 3380 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 3381 3382 // 是否开通加密,YES 已开通,NO 未开通。 3383 Encryption *string `json:"Encryption,omitempty" name:"Encryption"` 3384 3385 // 加密使用的密钥 ID 。 3386 // 注意:此字段可能返回 null,表示取不到有效值。 3387 KeyId *string `json:"KeyId,omitempty" name:"KeyId"` 3388 3389 // 密钥所在地域。 3390 // 注意:此字段可能返回 null,表示取不到有效值。 3391 KeyRegion *string `json:"KeyRegion,omitempty" name:"KeyRegion"` 3392 3393 // 当前 CDB 后端服务使用的 KMS 服务的默认地域。 3394 // 注意:此字段可能返回 null,表示取不到有效值。 3395 DefaultKmsRegion *string `json:"DefaultKmsRegion,omitempty" name:"DefaultKmsRegion"` 3396 3397 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3398 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3399 } `json:"Response"` 3400} 3401 3402func (r *DescribeDBInstanceInfoResponse) ToJsonString() string { 3403 b, _ := json.Marshal(r) 3404 return string(b) 3405} 3406 3407// FromJsonString It is highly **NOT** recommended to use this function 3408// because it has no param check, nor strict type check 3409func (r *DescribeDBInstanceInfoResponse) FromJsonString(s string) error { 3410 return json.Unmarshal([]byte(s), &r) 3411} 3412 3413type DescribeDBInstanceRebootTimeRequest struct { 3414 *tchttp.BaseRequest 3415 3416 // 实例的 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 3417 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 3418} 3419 3420func (r *DescribeDBInstanceRebootTimeRequest) ToJsonString() string { 3421 b, _ := json.Marshal(r) 3422 return string(b) 3423} 3424 3425// FromJsonString It is highly **NOT** recommended to use this function 3426// because it has no param check, nor strict type check 3427func (r *DescribeDBInstanceRebootTimeRequest) FromJsonString(s string) error { 3428 f := make(map[string]interface{}) 3429 if err := json.Unmarshal([]byte(s), &f); err != nil { 3430 return err 3431 } 3432 delete(f, "InstanceIds") 3433 if len(f) > 0 { 3434 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBInstanceRebootTimeRequest has unknown keys!", "") 3435 } 3436 return json.Unmarshal([]byte(s), &r) 3437} 3438 3439type DescribeDBInstanceRebootTimeResponse struct { 3440 *tchttp.BaseResponse 3441 Response *struct { 3442 3443 // 符合查询条件的实例总数。 3444 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3445 3446 // 返回的参数信息。 3447 Items []*InstanceRebootTime `json:"Items,omitempty" name:"Items"` 3448 3449 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3450 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3451 } `json:"Response"` 3452} 3453 3454func (r *DescribeDBInstanceRebootTimeResponse) ToJsonString() string { 3455 b, _ := json.Marshal(r) 3456 return string(b) 3457} 3458 3459// FromJsonString It is highly **NOT** recommended to use this function 3460// because it has no param check, nor strict type check 3461func (r *DescribeDBInstanceRebootTimeResponse) FromJsonString(s string) error { 3462 return json.Unmarshal([]byte(s), &r) 3463} 3464 3465type DescribeDBInstancesRequest struct { 3466 *tchttp.BaseRequest 3467 3468 // 项目 ID,可使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口查询项目 ID。 3469 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 3470 3471 // 实例类型,可取值:1 - 主实例,2 - 灾备实例,3 - 只读实例。 3472 InstanceTypes []*uint64 `json:"InstanceTypes,omitempty" name:"InstanceTypes"` 3473 3474 // 实例的内网 IP 地址。 3475 Vips []*string `json:"Vips,omitempty" name:"Vips"` 3476 3477 // 实例状态,可取值:<br>0 - 创建中<br>1 - 运行中<br>4 - 正在进行隔离操作<br>5 - 隔离中(可在回收站恢复开机) 3478 Status []*uint64 `json:"Status,omitempty" name:"Status"` 3479 3480 // 偏移量,默认值为 0。 3481 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 3482 3483 // 单次请求返回的数量,默认值为 20,最大值为 2000。 3484 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 3485 3486 // 安全组 ID。当使用安全组 ID 为过滤条件时,需指定 WithSecurityGroup 参数为 1。 3487 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 3488 3489 // 付费类型,可取值:0 - 包年包月,1 - 小时计费。 3490 PayTypes []*uint64 `json:"PayTypes,omitempty" name:"PayTypes"` 3491 3492 // 实例名称。 3493 InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` 3494 3495 // 实例任务状态,可能取值:<br>0 - 没有任务<br>1 - 升级中<br>2 - 数据导入中<br>3 - 开放Slave中<br>4 - 外网访问开通中<br>5 - 批量操作执行中<br>6 - 回档中<br>7 - 外网访问关闭中<br>8 - 密码修改中<br>9 - 实例名修改中<br>10 - 重启中<br>12 - 自建迁移中<br>13 - 删除库表中<br>14 - 灾备实例创建同步中<br>15 - 升级待切换<br>16 - 升级切换中<br>17 - 升级切换完成<br>19 - 参数设置待执行 3496 TaskStatus []*uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` 3497 3498 // 实例数据库引擎版本,可能取值:5.1、5.5、5.6 和 5.7。 3499 EngineVersions []*string `json:"EngineVersions,omitempty" name:"EngineVersions"` 3500 3501 // 私有网络的 ID。 3502 VpcIds []*uint64 `json:"VpcIds,omitempty" name:"VpcIds"` 3503 3504 // 可用区的 ID。 3505 ZoneIds []*uint64 `json:"ZoneIds,omitempty" name:"ZoneIds"` 3506 3507 // 子网 ID。 3508 SubnetIds []*uint64 `json:"SubnetIds,omitempty" name:"SubnetIds"` 3509 3510 // 是否锁定标记。 3511 CdbErrors []*int64 `json:"CdbErrors,omitempty" name:"CdbErrors"` 3512 3513 // 返回结果集排序的字段,目前支持:"InstanceId","InstanceName","CreateTime","DeadlineTime"。 3514 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 3515 3516 // 返回结果集排序方式,目前支持:"ASC" 或者 "DESC"。 3517 OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` 3518 3519 // 是否以安全组 ID 为过滤条件。 3520 WithSecurityGroup *int64 `json:"WithSecurityGroup,omitempty" name:"WithSecurityGroup"` 3521 3522 // 是否包含独享集群详细信息,可取值:0 - 不包含,1 - 包含。 3523 WithExCluster *int64 `json:"WithExCluster,omitempty" name:"WithExCluster"` 3524 3525 // 独享集群 ID。 3526 ExClusterId *string `json:"ExClusterId,omitempty" name:"ExClusterId"` 3527 3528 // 实例 ID。 3529 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 3530 3531 // 初始化标记,可取值:0 - 未初始化,1 - 初始化。 3532 InitFlag *int64 `json:"InitFlag,omitempty" name:"InitFlag"` 3533 3534 // 是否包含灾备关系对应的实例,可取值:0 - 不包含,1 - 包含。默认取值为1。如果拉取主实例,则灾备关系的数据在DrInfo字段中, 如果拉取灾备实例, 则灾备关系的数据在MasterInfo字段中。灾备关系中只包含部分基本的数据,详细的数据需要自行调接口拉取。 3535 WithDr *int64 `json:"WithDr,omitempty" name:"WithDr"` 3536 3537 // 是否包含只读实例,可取值:0 - 不包含,1 - 包含。默认取值为1。 3538 WithRo *int64 `json:"WithRo,omitempty" name:"WithRo"` 3539 3540 // 是否包含主实例,可取值:0 - 不包含,1 - 包含。默认取值为1。 3541 WithMaster *int64 `json:"WithMaster,omitempty" name:"WithMaster"` 3542 3543 // 置放群组ID列表。 3544 DeployGroupIds []*string `json:"DeployGroupIds,omitempty" name:"DeployGroupIds"` 3545 3546 // 是否以标签键为过滤条件。 3547 TagKeysForSearch []*string `json:"TagKeysForSearch,omitempty" name:"TagKeysForSearch"` 3548} 3549 3550func (r *DescribeDBInstancesRequest) ToJsonString() string { 3551 b, _ := json.Marshal(r) 3552 return string(b) 3553} 3554 3555// FromJsonString It is highly **NOT** recommended to use this function 3556// because it has no param check, nor strict type check 3557func (r *DescribeDBInstancesRequest) FromJsonString(s string) error { 3558 f := make(map[string]interface{}) 3559 if err := json.Unmarshal([]byte(s), &f); err != nil { 3560 return err 3561 } 3562 delete(f, "ProjectId") 3563 delete(f, "InstanceTypes") 3564 delete(f, "Vips") 3565 delete(f, "Status") 3566 delete(f, "Offset") 3567 delete(f, "Limit") 3568 delete(f, "SecurityGroupId") 3569 delete(f, "PayTypes") 3570 delete(f, "InstanceNames") 3571 delete(f, "TaskStatus") 3572 delete(f, "EngineVersions") 3573 delete(f, "VpcIds") 3574 delete(f, "ZoneIds") 3575 delete(f, "SubnetIds") 3576 delete(f, "CdbErrors") 3577 delete(f, "OrderBy") 3578 delete(f, "OrderDirection") 3579 delete(f, "WithSecurityGroup") 3580 delete(f, "WithExCluster") 3581 delete(f, "ExClusterId") 3582 delete(f, "InstanceIds") 3583 delete(f, "InitFlag") 3584 delete(f, "WithDr") 3585 delete(f, "WithRo") 3586 delete(f, "WithMaster") 3587 delete(f, "DeployGroupIds") 3588 delete(f, "TagKeysForSearch") 3589 if len(f) > 0 { 3590 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBInstancesRequest has unknown keys!", "") 3591 } 3592 return json.Unmarshal([]byte(s), &r) 3593} 3594 3595type DescribeDBInstancesResponse struct { 3596 *tchttp.BaseResponse 3597 Response *struct { 3598 3599 // 符合查询条件的实例总数。 3600 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3601 3602 // 实例详细信息。 3603 Items []*InstanceInfo `json:"Items,omitempty" name:"Items"` 3604 3605 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3606 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3607 } `json:"Response"` 3608} 3609 3610func (r *DescribeDBInstancesResponse) ToJsonString() string { 3611 b, _ := json.Marshal(r) 3612 return string(b) 3613} 3614 3615// FromJsonString It is highly **NOT** recommended to use this function 3616// because it has no param check, nor strict type check 3617func (r *DescribeDBInstancesResponse) FromJsonString(s string) error { 3618 return json.Unmarshal([]byte(s), &r) 3619} 3620 3621type DescribeDBPriceRequest struct { 3622 *tchttp.BaseRequest 3623 3624 // 实例时长,单位:月,最小值 1,最大值为 36;查询按量计费价格时,该字段无效。 3625 Period *int64 `json:"Period,omitempty" name:"Period"` 3626 3627 // 可用区信息,格式如 "ap-guangzhou-2"。具体能设置的值请通过 <a href="https://cloud.tencent.com/document/api/236/17229">DescribeDBZoneConfig</a> 接口查询。InstanceId为空时该参数为必填项。 3628 Zone *string `json:"Zone,omitempty" name:"Zone"` 3629 3630 // 实例数量,默认值为 1,最小值 1,最大值为 100。InstanceId为空时该参数为必填项。 3631 GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` 3632 3633 // 实例内存大小,单位:MB。InstanceId为空时该参数为必填项。 3634 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 3635 3636 // 实例硬盘大小,单位:GB。InstanceId为空时该参数为必填项。 3637 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 3638 3639 // 实例类型,默认为 master,支持值包括:master - 表示主实例,ro - 表示只读实例,dr - 表示灾备实例。InstanceId为空时该参数为必填项。 3640 InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` 3641 3642 // 付费类型,支持值包括:PRE_PAID - 包年包月,HOUR_PAID - 按量计费。InstanceId为空时该参数为必填项。 3643 PayType *string `json:"PayType,omitempty" name:"PayType"` 3644 3645 // 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。 3646 ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 3647 3648 // 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。 3649 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 3650 3651 // 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要询价三节点实例, 请将该值设置为3。其余主实例该值默认为2。 3652 InstanceNodes *int64 `json:"InstanceNodes,omitempty" name:"InstanceNodes"` 3653 3654 // 询价实例的CPU核心数目,单位:核,为保证传入 CPU 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可售卖的核心数目,当未指定该值时,将按照 Memory 大小补全一个默认值。 3655 Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` 3656 3657 // 续费询价实例ID。如需查询实例续费价格,填写InstanceId和Period即可。 3658 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3659} 3660 3661func (r *DescribeDBPriceRequest) ToJsonString() string { 3662 b, _ := json.Marshal(r) 3663 return string(b) 3664} 3665 3666// FromJsonString It is highly **NOT** recommended to use this function 3667// because it has no param check, nor strict type check 3668func (r *DescribeDBPriceRequest) FromJsonString(s string) error { 3669 f := make(map[string]interface{}) 3670 if err := json.Unmarshal([]byte(s), &f); err != nil { 3671 return err 3672 } 3673 delete(f, "Period") 3674 delete(f, "Zone") 3675 delete(f, "GoodsNum") 3676 delete(f, "Memory") 3677 delete(f, "Volume") 3678 delete(f, "InstanceRole") 3679 delete(f, "PayType") 3680 delete(f, "ProtectMode") 3681 delete(f, "DeviceType") 3682 delete(f, "InstanceNodes") 3683 delete(f, "Cpu") 3684 delete(f, "InstanceId") 3685 if len(f) > 0 { 3686 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBPriceRequest has unknown keys!", "") 3687 } 3688 return json.Unmarshal([]byte(s), &r) 3689} 3690 3691type DescribeDBPriceResponse struct { 3692 *tchttp.BaseResponse 3693 Response *struct { 3694 3695 // 实例价格,单位:分(人民币)。 3696 Price *int64 `json:"Price,omitempty" name:"Price"` 3697 3698 // 实例原价,单位:分(人民币)。 3699 OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` 3700 3701 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3702 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3703 } `json:"Response"` 3704} 3705 3706func (r *DescribeDBPriceResponse) ToJsonString() string { 3707 b, _ := json.Marshal(r) 3708 return string(b) 3709} 3710 3711// FromJsonString It is highly **NOT** recommended to use this function 3712// because it has no param check, nor strict type check 3713func (r *DescribeDBPriceResponse) FromJsonString(s string) error { 3714 return json.Unmarshal([]byte(s), &r) 3715} 3716 3717type DescribeDBSecurityGroupsRequest struct { 3718 *tchttp.BaseRequest 3719 3720 // 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。 3721 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3722 3723 // 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True 3724 ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitempty" name:"ForReadonlyInstance"` 3725} 3726 3727func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string { 3728 b, _ := json.Marshal(r) 3729 return string(b) 3730} 3731 3732// FromJsonString It is highly **NOT** recommended to use this function 3733// because it has no param check, nor strict type check 3734func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error { 3735 f := make(map[string]interface{}) 3736 if err := json.Unmarshal([]byte(s), &f); err != nil { 3737 return err 3738 } 3739 delete(f, "InstanceId") 3740 delete(f, "ForReadonlyInstance") 3741 if len(f) > 0 { 3742 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBSecurityGroupsRequest has unknown keys!", "") 3743 } 3744 return json.Unmarshal([]byte(s), &r) 3745} 3746 3747type DescribeDBSecurityGroupsResponse struct { 3748 *tchttp.BaseResponse 3749 Response *struct { 3750 3751 // 安全组详情。 3752 Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"` 3753 3754 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3755 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3756 } `json:"Response"` 3757} 3758 3759func (r *DescribeDBSecurityGroupsResponse) ToJsonString() string { 3760 b, _ := json.Marshal(r) 3761 return string(b) 3762} 3763 3764// FromJsonString It is highly **NOT** recommended to use this function 3765// because it has no param check, nor strict type check 3766func (r *DescribeDBSecurityGroupsResponse) FromJsonString(s string) error { 3767 return json.Unmarshal([]byte(s), &r) 3768} 3769 3770type DescribeDBSwitchRecordsRequest struct { 3771 *tchttp.BaseRequest 3772 3773 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 3774 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3775 3776 // 分页偏移量。 3777 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 3778 3779 // 分页大小,默认值为 50,最小值为 1,最大值为 2000。 3780 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 3781} 3782 3783func (r *DescribeDBSwitchRecordsRequest) ToJsonString() string { 3784 b, _ := json.Marshal(r) 3785 return string(b) 3786} 3787 3788// FromJsonString It is highly **NOT** recommended to use this function 3789// because it has no param check, nor strict type check 3790func (r *DescribeDBSwitchRecordsRequest) FromJsonString(s string) error { 3791 f := make(map[string]interface{}) 3792 if err := json.Unmarshal([]byte(s), &f); err != nil { 3793 return err 3794 } 3795 delete(f, "InstanceId") 3796 delete(f, "Offset") 3797 delete(f, "Limit") 3798 if len(f) > 0 { 3799 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBSwitchRecordsRequest has unknown keys!", "") 3800 } 3801 return json.Unmarshal([]byte(s), &r) 3802} 3803 3804type DescribeDBSwitchRecordsResponse struct { 3805 *tchttp.BaseResponse 3806 Response *struct { 3807 3808 // 实例切换记录的总数。 3809 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3810 3811 // 实例切换记录详情。 3812 Items []*DBSwitchInfo `json:"Items,omitempty" name:"Items"` 3813 3814 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3815 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3816 } `json:"Response"` 3817} 3818 3819func (r *DescribeDBSwitchRecordsResponse) ToJsonString() string { 3820 b, _ := json.Marshal(r) 3821 return string(b) 3822} 3823 3824// FromJsonString It is highly **NOT** recommended to use this function 3825// because it has no param check, nor strict type check 3826func (r *DescribeDBSwitchRecordsResponse) FromJsonString(s string) error { 3827 return json.Unmarshal([]byte(s), &r) 3828} 3829 3830type DescribeDBZoneConfigRequest struct { 3831 *tchttp.BaseRequest 3832} 3833 3834func (r *DescribeDBZoneConfigRequest) ToJsonString() string { 3835 b, _ := json.Marshal(r) 3836 return string(b) 3837} 3838 3839// FromJsonString It is highly **NOT** recommended to use this function 3840// because it has no param check, nor strict type check 3841func (r *DescribeDBZoneConfigRequest) FromJsonString(s string) error { 3842 f := make(map[string]interface{}) 3843 if err := json.Unmarshal([]byte(s), &f); err != nil { 3844 return err 3845 } 3846 if len(f) > 0 { 3847 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBZoneConfigRequest has unknown keys!", "") 3848 } 3849 return json.Unmarshal([]byte(s), &r) 3850} 3851 3852type DescribeDBZoneConfigResponse struct { 3853 *tchttp.BaseResponse 3854 Response *struct { 3855 3856 // 可售卖地域配置数量 3857 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3858 3859 // 可售卖地域配置详情 3860 Items []*RegionSellConf `json:"Items,omitempty" name:"Items"` 3861 3862 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3863 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3864 } `json:"Response"` 3865} 3866 3867func (r *DescribeDBZoneConfigResponse) ToJsonString() string { 3868 b, _ := json.Marshal(r) 3869 return string(b) 3870} 3871 3872// FromJsonString It is highly **NOT** recommended to use this function 3873// because it has no param check, nor strict type check 3874func (r *DescribeDBZoneConfigResponse) FromJsonString(s string) error { 3875 return json.Unmarshal([]byte(s), &r) 3876} 3877 3878type DescribeDataBackupOverviewRequest struct { 3879 *tchttp.BaseRequest 3880 3881 // 需要查询的云数据库产品类型,目前仅支持 "mysql"。 3882 Product *string `json:"Product,omitempty" name:"Product"` 3883} 3884 3885func (r *DescribeDataBackupOverviewRequest) ToJsonString() string { 3886 b, _ := json.Marshal(r) 3887 return string(b) 3888} 3889 3890// FromJsonString It is highly **NOT** recommended to use this function 3891// because it has no param check, nor strict type check 3892func (r *DescribeDataBackupOverviewRequest) FromJsonString(s string) error { 3893 f := make(map[string]interface{}) 3894 if err := json.Unmarshal([]byte(s), &f); err != nil { 3895 return err 3896 } 3897 delete(f, "Product") 3898 if len(f) > 0 { 3899 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDataBackupOverviewRequest has unknown keys!", "") 3900 } 3901 return json.Unmarshal([]byte(s), &r) 3902} 3903 3904type DescribeDataBackupOverviewResponse struct { 3905 *tchttp.BaseResponse 3906 Response *struct { 3907 3908 // 当前地域的数据备份总容量(包含自动备份和手动备份,单位为字节)。 3909 DataBackupVolume *int64 `json:"DataBackupVolume,omitempty" name:"DataBackupVolume"` 3910 3911 // 当前地域的数据备份总个数。 3912 DataBackupCount *int64 `json:"DataBackupCount,omitempty" name:"DataBackupCount"` 3913 3914 // 当前地域的自动备份总容量。 3915 AutoBackupVolume *int64 `json:"AutoBackupVolume,omitempty" name:"AutoBackupVolume"` 3916 3917 // 当前地域的自动备份总个数。 3918 AutoBackupCount *int64 `json:"AutoBackupCount,omitempty" name:"AutoBackupCount"` 3919 3920 // 当前地域的手动备份总容量。 3921 ManualBackupVolume *int64 `json:"ManualBackupVolume,omitempty" name:"ManualBackupVolume"` 3922 3923 // 当前地域的手动备份总个数。 3924 ManualBackupCount *int64 `json:"ManualBackupCount,omitempty" name:"ManualBackupCount"` 3925 3926 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3927 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3928 } `json:"Response"` 3929} 3930 3931func (r *DescribeDataBackupOverviewResponse) ToJsonString() string { 3932 b, _ := json.Marshal(r) 3933 return string(b) 3934} 3935 3936// FromJsonString It is highly **NOT** recommended to use this function 3937// because it has no param check, nor strict type check 3938func (r *DescribeDataBackupOverviewResponse) FromJsonString(s string) error { 3939 return json.Unmarshal([]byte(s), &r) 3940} 3941 3942type DescribeDatabasesRequest struct { 3943 *tchttp.BaseRequest 3944 3945 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 3946 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3947 3948 // 偏移量,最小值为0。 3949 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 3950 3951 // 单次请求数量,默认值为20,最小值为1,最大值为100。 3952 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 3953 3954 // 匹配数据库库名的正则表达式。 3955 DatabaseRegexp *string `json:"DatabaseRegexp,omitempty" name:"DatabaseRegexp"` 3956} 3957 3958func (r *DescribeDatabasesRequest) ToJsonString() string { 3959 b, _ := json.Marshal(r) 3960 return string(b) 3961} 3962 3963// FromJsonString It is highly **NOT** recommended to use this function 3964// because it has no param check, nor strict type check 3965func (r *DescribeDatabasesRequest) FromJsonString(s string) error { 3966 f := make(map[string]interface{}) 3967 if err := json.Unmarshal([]byte(s), &f); err != nil { 3968 return err 3969 } 3970 delete(f, "InstanceId") 3971 delete(f, "Offset") 3972 delete(f, "Limit") 3973 delete(f, "DatabaseRegexp") 3974 if len(f) > 0 { 3975 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDatabasesRequest has unknown keys!", "") 3976 } 3977 return json.Unmarshal([]byte(s), &r) 3978} 3979 3980type DescribeDatabasesResponse struct { 3981 *tchttp.BaseResponse 3982 Response *struct { 3983 3984 // 符合查询条件的实例总数。 3985 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 3986 3987 // 返回的实例信息。 3988 Items []*string `json:"Items,omitempty" name:"Items"` 3989 3990 // 数据库名以及字符集 3991 DatabaseList []*DatabasesWithCharacterLists `json:"DatabaseList,omitempty" name:"DatabaseList"` 3992 3993 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3994 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3995 } `json:"Response"` 3996} 3997 3998func (r *DescribeDatabasesResponse) ToJsonString() string { 3999 b, _ := json.Marshal(r) 4000 return string(b) 4001} 4002 4003// FromJsonString It is highly **NOT** recommended to use this function 4004// because it has no param check, nor strict type check 4005func (r *DescribeDatabasesResponse) FromJsonString(s string) error { 4006 return json.Unmarshal([]byte(s), &r) 4007} 4008 4009type DescribeDefaultParamsRequest struct { 4010 *tchttp.BaseRequest 4011 4012 // mysql版本,目前支持 ["5.1", "5.5", "5.6", "5.7"]。 4013 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 4014} 4015 4016func (r *DescribeDefaultParamsRequest) ToJsonString() string { 4017 b, _ := json.Marshal(r) 4018 return string(b) 4019} 4020 4021// FromJsonString It is highly **NOT** recommended to use this function 4022// because it has no param check, nor strict type check 4023func (r *DescribeDefaultParamsRequest) FromJsonString(s string) error { 4024 f := make(map[string]interface{}) 4025 if err := json.Unmarshal([]byte(s), &f); err != nil { 4026 return err 4027 } 4028 delete(f, "EngineVersion") 4029 if len(f) > 0 { 4030 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDefaultParamsRequest has unknown keys!", "") 4031 } 4032 return json.Unmarshal([]byte(s), &r) 4033} 4034 4035type DescribeDefaultParamsResponse struct { 4036 *tchttp.BaseResponse 4037 Response *struct { 4038 4039 // 参数个数。 4040 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4041 4042 // 参数详情。 4043 Items []*ParameterDetail `json:"Items,omitempty" name:"Items"` 4044 4045 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4046 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4047 } `json:"Response"` 4048} 4049 4050func (r *DescribeDefaultParamsResponse) ToJsonString() string { 4051 b, _ := json.Marshal(r) 4052 return string(b) 4053} 4054 4055// FromJsonString It is highly **NOT** recommended to use this function 4056// because it has no param check, nor strict type check 4057func (r *DescribeDefaultParamsResponse) FromJsonString(s string) error { 4058 return json.Unmarshal([]byte(s), &r) 4059} 4060 4061type DescribeDeployGroupListRequest struct { 4062 *tchttp.BaseRequest 4063 4064 // 置放群组 ID。 4065 DeployGroupId *string `json:"DeployGroupId,omitempty" name:"DeployGroupId"` 4066 4067 // 置放群组名称。 4068 DeployGroupName *string `json:"DeployGroupName,omitempty" name:"DeployGroupName"` 4069 4070 // 返回数量,默认为20,最大值为100。 4071 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 4072 4073 // 偏移量,默认为0。 4074 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 4075} 4076 4077func (r *DescribeDeployGroupListRequest) ToJsonString() string { 4078 b, _ := json.Marshal(r) 4079 return string(b) 4080} 4081 4082// FromJsonString It is highly **NOT** recommended to use this function 4083// because it has no param check, nor strict type check 4084func (r *DescribeDeployGroupListRequest) FromJsonString(s string) error { 4085 f := make(map[string]interface{}) 4086 if err := json.Unmarshal([]byte(s), &f); err != nil { 4087 return err 4088 } 4089 delete(f, "DeployGroupId") 4090 delete(f, "DeployGroupName") 4091 delete(f, "Limit") 4092 delete(f, "Offset") 4093 if len(f) > 0 { 4094 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeployGroupListRequest has unknown keys!", "") 4095 } 4096 return json.Unmarshal([]byte(s), &r) 4097} 4098 4099type DescribeDeployGroupListResponse struct { 4100 *tchttp.BaseResponse 4101 Response *struct { 4102 4103 // 符合条件的记录总数。 4104 Total *int64 `json:"Total,omitempty" name:"Total"` 4105 4106 // 返回列表。 4107 // 注意:此字段可能返回 null,表示取不到有效值。 4108 Items []*DeployGroupInfo `json:"Items,omitempty" name:"Items"` 4109 4110 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4111 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4112 } `json:"Response"` 4113} 4114 4115func (r *DescribeDeployGroupListResponse) ToJsonString() string { 4116 b, _ := json.Marshal(r) 4117 return string(b) 4118} 4119 4120// FromJsonString It is highly **NOT** recommended to use this function 4121// because it has no param check, nor strict type check 4122func (r *DescribeDeployGroupListResponse) FromJsonString(s string) error { 4123 return json.Unmarshal([]byte(s), &r) 4124} 4125 4126type DescribeDeviceMonitorInfoRequest struct { 4127 *tchttp.BaseRequest 4128 4129 // 实例ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。 4130 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4131 4132 // 返回当天最近Count个5分钟粒度的监控数据。最小值1,最大值288,不传该参数默认返回当天所有5分钟粒度监控数据。 4133 Count *uint64 `json:"Count,omitempty" name:"Count"` 4134} 4135 4136func (r *DescribeDeviceMonitorInfoRequest) ToJsonString() string { 4137 b, _ := json.Marshal(r) 4138 return string(b) 4139} 4140 4141// FromJsonString It is highly **NOT** recommended to use this function 4142// because it has no param check, nor strict type check 4143func (r *DescribeDeviceMonitorInfoRequest) FromJsonString(s string) error { 4144 f := make(map[string]interface{}) 4145 if err := json.Unmarshal([]byte(s), &f); err != nil { 4146 return err 4147 } 4148 delete(f, "InstanceId") 4149 delete(f, "Count") 4150 if len(f) > 0 { 4151 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceMonitorInfoRequest has unknown keys!", "") 4152 } 4153 return json.Unmarshal([]byte(s), &r) 4154} 4155 4156type DescribeDeviceMonitorInfoResponse struct { 4157 *tchttp.BaseResponse 4158 Response *struct { 4159 4160 // 实例CPU监控数据 4161 Cpu *DeviceCpuInfo `json:"Cpu,omitempty" name:"Cpu"` 4162 4163 // 实例内存监控数据 4164 Mem *DeviceMemInfo `json:"Mem,omitempty" name:"Mem"` 4165 4166 // 实例网络监控数据 4167 Net *DeviceNetInfo `json:"Net,omitempty" name:"Net"` 4168 4169 // 实例磁盘监控数据 4170 Disk *DeviceDiskInfo `json:"Disk,omitempty" name:"Disk"` 4171 4172 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4173 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4174 } `json:"Response"` 4175} 4176 4177func (r *DescribeDeviceMonitorInfoResponse) ToJsonString() string { 4178 b, _ := json.Marshal(r) 4179 return string(b) 4180} 4181 4182// FromJsonString It is highly **NOT** recommended to use this function 4183// because it has no param check, nor strict type check 4184func (r *DescribeDeviceMonitorInfoResponse) FromJsonString(s string) error { 4185 return json.Unmarshal([]byte(s), &r) 4186} 4187 4188type DescribeErrorLogDataRequest struct { 4189 *tchttp.BaseRequest 4190 4191 // 实例 ID 。 4192 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4193 4194 // 开始时间戳。 4195 StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"` 4196 4197 // 结束时间戳。 4198 EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` 4199 4200 // 要匹配的关键字列表,最多支持15个关键字。 4201 KeyWords []*string `json:"KeyWords,omitempty" name:"KeyWords"` 4202 4203 // 分页的返回数量,默认为100,最大为400。 4204 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 4205 4206 // 偏移量,默认为0。 4207 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 4208 4209 // 仅在实例为主实例或者灾备实例时生效,可选值:slave,代表拉取从机的日志。 4210 InstType *string `json:"InstType,omitempty" name:"InstType"` 4211} 4212 4213func (r *DescribeErrorLogDataRequest) ToJsonString() string { 4214 b, _ := json.Marshal(r) 4215 return string(b) 4216} 4217 4218// FromJsonString It is highly **NOT** recommended to use this function 4219// because it has no param check, nor strict type check 4220func (r *DescribeErrorLogDataRequest) FromJsonString(s string) error { 4221 f := make(map[string]interface{}) 4222 if err := json.Unmarshal([]byte(s), &f); err != nil { 4223 return err 4224 } 4225 delete(f, "InstanceId") 4226 delete(f, "StartTime") 4227 delete(f, "EndTime") 4228 delete(f, "KeyWords") 4229 delete(f, "Limit") 4230 delete(f, "Offset") 4231 delete(f, "InstType") 4232 if len(f) > 0 { 4233 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeErrorLogDataRequest has unknown keys!", "") 4234 } 4235 return json.Unmarshal([]byte(s), &r) 4236} 4237 4238type DescribeErrorLogDataResponse struct { 4239 *tchttp.BaseResponse 4240 Response *struct { 4241 4242 // 符合条件的记录总数。 4243 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4244 4245 // 返回的记录。 4246 // 注意:此字段可能返回 null,表示取不到有效值。 4247 Items []*ErrlogItem `json:"Items,omitempty" name:"Items"` 4248 4249 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4250 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4251 } `json:"Response"` 4252} 4253 4254func (r *DescribeErrorLogDataResponse) ToJsonString() string { 4255 b, _ := json.Marshal(r) 4256 return string(b) 4257} 4258 4259// FromJsonString It is highly **NOT** recommended to use this function 4260// because it has no param check, nor strict type check 4261func (r *DescribeErrorLogDataResponse) FromJsonString(s string) error { 4262 return json.Unmarshal([]byte(s), &r) 4263} 4264 4265type DescribeInstanceParamRecordsRequest struct { 4266 *tchttp.BaseRequest 4267 4268 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 4269 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4270 4271 // 分页偏移量。 4272 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 4273 4274 // 分页大小。 4275 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 4276} 4277 4278func (r *DescribeInstanceParamRecordsRequest) ToJsonString() string { 4279 b, _ := json.Marshal(r) 4280 return string(b) 4281} 4282 4283// FromJsonString It is highly **NOT** recommended to use this function 4284// because it has no param check, nor strict type check 4285func (r *DescribeInstanceParamRecordsRequest) FromJsonString(s string) error { 4286 f := make(map[string]interface{}) 4287 if err := json.Unmarshal([]byte(s), &f); err != nil { 4288 return err 4289 } 4290 delete(f, "InstanceId") 4291 delete(f, "Offset") 4292 delete(f, "Limit") 4293 if len(f) > 0 { 4294 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceParamRecordsRequest has unknown keys!", "") 4295 } 4296 return json.Unmarshal([]byte(s), &r) 4297} 4298 4299type DescribeInstanceParamRecordsResponse struct { 4300 *tchttp.BaseResponse 4301 Response *struct { 4302 4303 // 符合条件的记录数。 4304 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4305 4306 // 参数修改记录。 4307 Items []*ParamRecord `json:"Items,omitempty" name:"Items"` 4308 4309 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4310 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4311 } `json:"Response"` 4312} 4313 4314func (r *DescribeInstanceParamRecordsResponse) ToJsonString() string { 4315 b, _ := json.Marshal(r) 4316 return string(b) 4317} 4318 4319// FromJsonString It is highly **NOT** recommended to use this function 4320// because it has no param check, nor strict type check 4321func (r *DescribeInstanceParamRecordsResponse) FromJsonString(s string) error { 4322 return json.Unmarshal([]byte(s), &r) 4323} 4324 4325type DescribeInstanceParamsRequest struct { 4326 *tchttp.BaseRequest 4327 4328 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 4329 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4330} 4331 4332func (r *DescribeInstanceParamsRequest) ToJsonString() string { 4333 b, _ := json.Marshal(r) 4334 return string(b) 4335} 4336 4337// FromJsonString It is highly **NOT** recommended to use this function 4338// because it has no param check, nor strict type check 4339func (r *DescribeInstanceParamsRequest) FromJsonString(s string) error { 4340 f := make(map[string]interface{}) 4341 if err := json.Unmarshal([]byte(s), &f); err != nil { 4342 return err 4343 } 4344 delete(f, "InstanceId") 4345 if len(f) > 0 { 4346 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceParamsRequest has unknown keys!", "") 4347 } 4348 return json.Unmarshal([]byte(s), &r) 4349} 4350 4351type DescribeInstanceParamsResponse struct { 4352 *tchttp.BaseResponse 4353 Response *struct { 4354 4355 // 实例的参数总数。 4356 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4357 4358 // 参数详情。 4359 Items []*ParameterDetail `json:"Items,omitempty" name:"Items"` 4360 4361 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4362 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4363 } `json:"Response"` 4364} 4365 4366func (r *DescribeInstanceParamsResponse) ToJsonString() string { 4367 b, _ := json.Marshal(r) 4368 return string(b) 4369} 4370 4371// FromJsonString It is highly **NOT** recommended to use this function 4372// because it has no param check, nor strict type check 4373func (r *DescribeInstanceParamsResponse) FromJsonString(s string) error { 4374 return json.Unmarshal([]byte(s), &r) 4375} 4376 4377type DescribeParamTemplateInfoRequest struct { 4378 *tchttp.BaseRequest 4379 4380 // 参数模板 ID。 4381 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 4382} 4383 4384func (r *DescribeParamTemplateInfoRequest) ToJsonString() string { 4385 b, _ := json.Marshal(r) 4386 return string(b) 4387} 4388 4389// FromJsonString It is highly **NOT** recommended to use this function 4390// because it has no param check, nor strict type check 4391func (r *DescribeParamTemplateInfoRequest) FromJsonString(s string) error { 4392 f := make(map[string]interface{}) 4393 if err := json.Unmarshal([]byte(s), &f); err != nil { 4394 return err 4395 } 4396 delete(f, "TemplateId") 4397 if len(f) > 0 { 4398 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeParamTemplateInfoRequest has unknown keys!", "") 4399 } 4400 return json.Unmarshal([]byte(s), &r) 4401} 4402 4403type DescribeParamTemplateInfoResponse struct { 4404 *tchttp.BaseResponse 4405 Response *struct { 4406 4407 // 参数模板 ID。 4408 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 4409 4410 // 参数模板名称。 4411 Name *string `json:"Name,omitempty" name:"Name"` 4412 4413 // 参数模板对应实例版本 4414 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 4415 4416 // 参数模板中的参数数量 4417 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4418 4419 // 参数详情 4420 Items []*ParameterDetail `json:"Items,omitempty" name:"Items"` 4421 4422 // 参数模板描述 4423 Description *string `json:"Description,omitempty" name:"Description"` 4424 4425 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4426 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4427 } `json:"Response"` 4428} 4429 4430func (r *DescribeParamTemplateInfoResponse) ToJsonString() string { 4431 b, _ := json.Marshal(r) 4432 return string(b) 4433} 4434 4435// FromJsonString It is highly **NOT** recommended to use this function 4436// because it has no param check, nor strict type check 4437func (r *DescribeParamTemplateInfoResponse) FromJsonString(s string) error { 4438 return json.Unmarshal([]byte(s), &r) 4439} 4440 4441type DescribeParamTemplatesRequest struct { 4442 *tchttp.BaseRequest 4443} 4444 4445func (r *DescribeParamTemplatesRequest) ToJsonString() string { 4446 b, _ := json.Marshal(r) 4447 return string(b) 4448} 4449 4450// FromJsonString It is highly **NOT** recommended to use this function 4451// because it has no param check, nor strict type check 4452func (r *DescribeParamTemplatesRequest) FromJsonString(s string) error { 4453 f := make(map[string]interface{}) 4454 if err := json.Unmarshal([]byte(s), &f); err != nil { 4455 return err 4456 } 4457 if len(f) > 0 { 4458 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeParamTemplatesRequest has unknown keys!", "") 4459 } 4460 return json.Unmarshal([]byte(s), &r) 4461} 4462 4463type DescribeParamTemplatesResponse struct { 4464 *tchttp.BaseResponse 4465 Response *struct { 4466 4467 // 该用户的参数模板数量。 4468 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4469 4470 // 参数模板详情。 4471 Items []*ParamTemplateInfo `json:"Items,omitempty" name:"Items"` 4472 4473 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4474 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4475 } `json:"Response"` 4476} 4477 4478func (r *DescribeParamTemplatesResponse) ToJsonString() string { 4479 b, _ := json.Marshal(r) 4480 return string(b) 4481} 4482 4483// FromJsonString It is highly **NOT** recommended to use this function 4484// because it has no param check, nor strict type check 4485func (r *DescribeParamTemplatesResponse) FromJsonString(s string) error { 4486 return json.Unmarshal([]byte(s), &r) 4487} 4488 4489type DescribeProjectSecurityGroupsRequest struct { 4490 *tchttp.BaseRequest 4491 4492 // 项目ID。 4493 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 4494} 4495 4496func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string { 4497 b, _ := json.Marshal(r) 4498 return string(b) 4499} 4500 4501// FromJsonString It is highly **NOT** recommended to use this function 4502// because it has no param check, nor strict type check 4503func (r *DescribeProjectSecurityGroupsRequest) FromJsonString(s string) error { 4504 f := make(map[string]interface{}) 4505 if err := json.Unmarshal([]byte(s), &f); err != nil { 4506 return err 4507 } 4508 delete(f, "ProjectId") 4509 if len(f) > 0 { 4510 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProjectSecurityGroupsRequest has unknown keys!", "") 4511 } 4512 return json.Unmarshal([]byte(s), &r) 4513} 4514 4515type DescribeProjectSecurityGroupsResponse struct { 4516 *tchttp.BaseResponse 4517 Response *struct { 4518 4519 // 安全组详情。 4520 Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"` 4521 4522 // 安全组规则数量。 4523 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4524 4525 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4526 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4527 } `json:"Response"` 4528} 4529 4530func (r *DescribeProjectSecurityGroupsResponse) ToJsonString() string { 4531 b, _ := json.Marshal(r) 4532 return string(b) 4533} 4534 4535// FromJsonString It is highly **NOT** recommended to use this function 4536// because it has no param check, nor strict type check 4537func (r *DescribeProjectSecurityGroupsResponse) FromJsonString(s string) error { 4538 return json.Unmarshal([]byte(s), &r) 4539} 4540 4541type DescribeRoGroupsRequest struct { 4542 *tchttp.BaseRequest 4543 4544 // 实例ID,格式如:cdb-c1nl9rpv或者cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。 4545 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4546} 4547 4548func (r *DescribeRoGroupsRequest) ToJsonString() string { 4549 b, _ := json.Marshal(r) 4550 return string(b) 4551} 4552 4553// FromJsonString It is highly **NOT** recommended to use this function 4554// because it has no param check, nor strict type check 4555func (r *DescribeRoGroupsRequest) FromJsonString(s string) error { 4556 f := make(map[string]interface{}) 4557 if err := json.Unmarshal([]byte(s), &f); err != nil { 4558 return err 4559 } 4560 delete(f, "InstanceId") 4561 if len(f) > 0 { 4562 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRoGroupsRequest has unknown keys!", "") 4563 } 4564 return json.Unmarshal([]byte(s), &r) 4565} 4566 4567type DescribeRoGroupsResponse struct { 4568 *tchttp.BaseResponse 4569 Response *struct { 4570 4571 // RO组信息数组,一个实例可关联多个RO组。 4572 RoGroups []*RoGroup `json:"RoGroups,omitempty" name:"RoGroups"` 4573 4574 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4575 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4576 } `json:"Response"` 4577} 4578 4579func (r *DescribeRoGroupsResponse) ToJsonString() string { 4580 b, _ := json.Marshal(r) 4581 return string(b) 4582} 4583 4584// FromJsonString It is highly **NOT** recommended to use this function 4585// because it has no param check, nor strict type check 4586func (r *DescribeRoGroupsResponse) FromJsonString(s string) error { 4587 return json.Unmarshal([]byte(s), &r) 4588} 4589 4590type DescribeRoMinScaleRequest struct { 4591 *tchttp.BaseRequest 4592 4593 // 只读实例ID,格式如:cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,该参数与MasterInstanceId参数不能同时为空。 4594 RoInstanceId *string `json:"RoInstanceId,omitempty" name:"RoInstanceId"` 4595 4596 // 主实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,该参数与RoInstanceId参数不能同时为空。注意,当传入参数包含RoInstanceId时,返回值为只读实例升级时的最小规格;当传入参数只包含MasterInstanceId时,返回值为只读实例购买时的最小规格。 4597 MasterInstanceId *string `json:"MasterInstanceId,omitempty" name:"MasterInstanceId"` 4598} 4599 4600func (r *DescribeRoMinScaleRequest) ToJsonString() string { 4601 b, _ := json.Marshal(r) 4602 return string(b) 4603} 4604 4605// FromJsonString It is highly **NOT** recommended to use this function 4606// because it has no param check, nor strict type check 4607func (r *DescribeRoMinScaleRequest) FromJsonString(s string) error { 4608 f := make(map[string]interface{}) 4609 if err := json.Unmarshal([]byte(s), &f); err != nil { 4610 return err 4611 } 4612 delete(f, "RoInstanceId") 4613 delete(f, "MasterInstanceId") 4614 if len(f) > 0 { 4615 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRoMinScaleRequest has unknown keys!", "") 4616 } 4617 return json.Unmarshal([]byte(s), &r) 4618} 4619 4620type DescribeRoMinScaleResponse struct { 4621 *tchttp.BaseResponse 4622 Response *struct { 4623 4624 // 内存规格大小, 单位为:MB。 4625 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 4626 4627 // 磁盘规格大小, 单位为:GB。 4628 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 4629 4630 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4631 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4632 } `json:"Response"` 4633} 4634 4635func (r *DescribeRoMinScaleResponse) ToJsonString() string { 4636 b, _ := json.Marshal(r) 4637 return string(b) 4638} 4639 4640// FromJsonString It is highly **NOT** recommended to use this function 4641// because it has no param check, nor strict type check 4642func (r *DescribeRoMinScaleResponse) FromJsonString(s string) error { 4643 return json.Unmarshal([]byte(s), &r) 4644} 4645 4646type DescribeRollbackRangeTimeRequest struct { 4647 *tchttp.BaseRequest 4648 4649 // 实例 ID 列表,单个实例 ID 的格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 4650 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 4651} 4652 4653func (r *DescribeRollbackRangeTimeRequest) ToJsonString() string { 4654 b, _ := json.Marshal(r) 4655 return string(b) 4656} 4657 4658// FromJsonString It is highly **NOT** recommended to use this function 4659// because it has no param check, nor strict type check 4660func (r *DescribeRollbackRangeTimeRequest) FromJsonString(s string) error { 4661 f := make(map[string]interface{}) 4662 if err := json.Unmarshal([]byte(s), &f); err != nil { 4663 return err 4664 } 4665 delete(f, "InstanceIds") 4666 if len(f) > 0 { 4667 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRollbackRangeTimeRequest has unknown keys!", "") 4668 } 4669 return json.Unmarshal([]byte(s), &r) 4670} 4671 4672type DescribeRollbackRangeTimeResponse struct { 4673 *tchttp.BaseResponse 4674 Response *struct { 4675 4676 // 符合查询条件的实例总数。 4677 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4678 4679 // 返回的参数信息。 4680 Items []*InstanceRollbackRangeTime `json:"Items,omitempty" name:"Items"` 4681 4682 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4683 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4684 } `json:"Response"` 4685} 4686 4687func (r *DescribeRollbackRangeTimeResponse) ToJsonString() string { 4688 b, _ := json.Marshal(r) 4689 return string(b) 4690} 4691 4692// FromJsonString It is highly **NOT** recommended to use this function 4693// because it has no param check, nor strict type check 4694func (r *DescribeRollbackRangeTimeResponse) FromJsonString(s string) error { 4695 return json.Unmarshal([]byte(s), &r) 4696} 4697 4698type DescribeRollbackTaskDetailRequest struct { 4699 *tchttp.BaseRequest 4700 4701 // 实例 ID。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872)。 4702 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4703 4704 // 异步任务 ID。 4705 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 4706 4707 // 分页参数,每次请求返回的记录数。默认值为 20,最大值为 100。 4708 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 4709 4710 // 分页偏移量。默认为 0。 4711 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 4712} 4713 4714func (r *DescribeRollbackTaskDetailRequest) ToJsonString() string { 4715 b, _ := json.Marshal(r) 4716 return string(b) 4717} 4718 4719// FromJsonString It is highly **NOT** recommended to use this function 4720// because it has no param check, nor strict type check 4721func (r *DescribeRollbackTaskDetailRequest) FromJsonString(s string) error { 4722 f := make(map[string]interface{}) 4723 if err := json.Unmarshal([]byte(s), &f); err != nil { 4724 return err 4725 } 4726 delete(f, "InstanceId") 4727 delete(f, "AsyncRequestId") 4728 delete(f, "Limit") 4729 delete(f, "Offset") 4730 if len(f) > 0 { 4731 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRollbackTaskDetailRequest has unknown keys!", "") 4732 } 4733 return json.Unmarshal([]byte(s), &r) 4734} 4735 4736type DescribeRollbackTaskDetailResponse struct { 4737 *tchttp.BaseResponse 4738 Response *struct { 4739 4740 // 符合条件的记录总数。 4741 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4742 4743 // 回档任务详情。 4744 // 注意:此字段可能返回 null,表示取不到有效值。 4745 Items []*RollbackTask `json:"Items,omitempty" name:"Items"` 4746 4747 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4748 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4749 } `json:"Response"` 4750} 4751 4752func (r *DescribeRollbackTaskDetailResponse) ToJsonString() string { 4753 b, _ := json.Marshal(r) 4754 return string(b) 4755} 4756 4757// FromJsonString It is highly **NOT** recommended to use this function 4758// because it has no param check, nor strict type check 4759func (r *DescribeRollbackTaskDetailResponse) FromJsonString(s string) error { 4760 return json.Unmarshal([]byte(s), &r) 4761} 4762 4763type DescribeSlowLogDataRequest struct { 4764 *tchttp.BaseRequest 4765 4766 // 实例 ID。 4767 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4768 4769 // 开始时间戳。 4770 StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"` 4771 4772 // 结束时间戳。 4773 EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` 4774 4775 // 客户端 Host 列表。 4776 UserHosts []*string `json:"UserHosts,omitempty" name:"UserHosts"` 4777 4778 // 客户端 用户名 列表。 4779 UserNames []*string `json:"UserNames,omitempty" name:"UserNames"` 4780 4781 // 访问的 数据库 列表。 4782 DataBases []*string `json:"DataBases,omitempty" name:"DataBases"` 4783 4784 // 排序字段。当前支持:Timestamp,QueryTime,LockTime,RowsExamined,RowsSent 。 4785 SortBy *string `json:"SortBy,omitempty" name:"SortBy"` 4786 4787 // 升序还是降序排列。当前支持:ASC,DESC 。 4788 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 4789 4790 // 偏移量,默认为0。 4791 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 4792 4793 // 一次性返回的记录数量,默认为100,最大为400。 4794 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 4795 4796 // 仅在实例为主实例或者灾备实例时生效,可选值:slave,代表拉取从机的日志。 4797 InstType *string `json:"InstType,omitempty" name:"InstType"` 4798} 4799 4800func (r *DescribeSlowLogDataRequest) ToJsonString() string { 4801 b, _ := json.Marshal(r) 4802 return string(b) 4803} 4804 4805// FromJsonString It is highly **NOT** recommended to use this function 4806// because it has no param check, nor strict type check 4807func (r *DescribeSlowLogDataRequest) FromJsonString(s string) error { 4808 f := make(map[string]interface{}) 4809 if err := json.Unmarshal([]byte(s), &f); err != nil { 4810 return err 4811 } 4812 delete(f, "InstanceId") 4813 delete(f, "StartTime") 4814 delete(f, "EndTime") 4815 delete(f, "UserHosts") 4816 delete(f, "UserNames") 4817 delete(f, "DataBases") 4818 delete(f, "SortBy") 4819 delete(f, "OrderBy") 4820 delete(f, "Offset") 4821 delete(f, "Limit") 4822 delete(f, "InstType") 4823 if len(f) > 0 { 4824 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSlowLogDataRequest has unknown keys!", "") 4825 } 4826 return json.Unmarshal([]byte(s), &r) 4827} 4828 4829type DescribeSlowLogDataResponse struct { 4830 *tchttp.BaseResponse 4831 Response *struct { 4832 4833 // 符合条件的记录总数。 4834 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4835 4836 // 查询到的记录。 4837 // 注意:此字段可能返回 null,表示取不到有效值。 4838 Items []*SlowLogItem `json:"Items,omitempty" name:"Items"` 4839 4840 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4841 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4842 } `json:"Response"` 4843} 4844 4845func (r *DescribeSlowLogDataResponse) ToJsonString() string { 4846 b, _ := json.Marshal(r) 4847 return string(b) 4848} 4849 4850// FromJsonString It is highly **NOT** recommended to use this function 4851// because it has no param check, nor strict type check 4852func (r *DescribeSlowLogDataResponse) FromJsonString(s string) error { 4853 return json.Unmarshal([]byte(s), &r) 4854} 4855 4856type DescribeSlowLogsRequest struct { 4857 *tchttp.BaseRequest 4858 4859 // 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。 4860 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4861 4862 // 偏移量,最小值为0。 4863 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 4864 4865 // 分页大小,默认值为20,最小值为1,最大值为100。 4866 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 4867} 4868 4869func (r *DescribeSlowLogsRequest) ToJsonString() string { 4870 b, _ := json.Marshal(r) 4871 return string(b) 4872} 4873 4874// FromJsonString It is highly **NOT** recommended to use this function 4875// because it has no param check, nor strict type check 4876func (r *DescribeSlowLogsRequest) FromJsonString(s string) error { 4877 f := make(map[string]interface{}) 4878 if err := json.Unmarshal([]byte(s), &f); err != nil { 4879 return err 4880 } 4881 delete(f, "InstanceId") 4882 delete(f, "Offset") 4883 delete(f, "Limit") 4884 if len(f) > 0 { 4885 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSlowLogsRequest has unknown keys!", "") 4886 } 4887 return json.Unmarshal([]byte(s), &r) 4888} 4889 4890type DescribeSlowLogsResponse struct { 4891 *tchttp.BaseResponse 4892 Response *struct { 4893 4894 // 符合查询条件的慢查询日志总数。 4895 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 4896 4897 // 符合查询条件的慢查询日志详情。 4898 Items []*SlowLogInfo `json:"Items,omitempty" name:"Items"` 4899 4900 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4901 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4902 } `json:"Response"` 4903} 4904 4905func (r *DescribeSlowLogsResponse) ToJsonString() string { 4906 b, _ := json.Marshal(r) 4907 return string(b) 4908} 4909 4910// FromJsonString It is highly **NOT** recommended to use this function 4911// because it has no param check, nor strict type check 4912func (r *DescribeSlowLogsResponse) FromJsonString(s string) error { 4913 return json.Unmarshal([]byte(s), &r) 4914} 4915 4916type DescribeSupportedPrivilegesRequest struct { 4917 *tchttp.BaseRequest 4918 4919 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 4920 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4921} 4922 4923func (r *DescribeSupportedPrivilegesRequest) ToJsonString() string { 4924 b, _ := json.Marshal(r) 4925 return string(b) 4926} 4927 4928// FromJsonString It is highly **NOT** recommended to use this function 4929// because it has no param check, nor strict type check 4930func (r *DescribeSupportedPrivilegesRequest) FromJsonString(s string) error { 4931 f := make(map[string]interface{}) 4932 if err := json.Unmarshal([]byte(s), &f); err != nil { 4933 return err 4934 } 4935 delete(f, "InstanceId") 4936 if len(f) > 0 { 4937 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSupportedPrivilegesRequest has unknown keys!", "") 4938 } 4939 return json.Unmarshal([]byte(s), &r) 4940} 4941 4942type DescribeSupportedPrivilegesResponse struct { 4943 *tchttp.BaseResponse 4944 Response *struct { 4945 4946 // 实例支持的全局权限。 4947 GlobalSupportedPrivileges []*string `json:"GlobalSupportedPrivileges,omitempty" name:"GlobalSupportedPrivileges"` 4948 4949 // 实例支持的数据库权限。 4950 DatabaseSupportedPrivileges []*string `json:"DatabaseSupportedPrivileges,omitempty" name:"DatabaseSupportedPrivileges"` 4951 4952 // 实例支持的数据库表权限。 4953 TableSupportedPrivileges []*string `json:"TableSupportedPrivileges,omitempty" name:"TableSupportedPrivileges"` 4954 4955 // 实例支持的数据库列权限。 4956 ColumnSupportedPrivileges []*string `json:"ColumnSupportedPrivileges,omitempty" name:"ColumnSupportedPrivileges"` 4957 4958 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4959 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4960 } `json:"Response"` 4961} 4962 4963func (r *DescribeSupportedPrivilegesResponse) ToJsonString() string { 4964 b, _ := json.Marshal(r) 4965 return string(b) 4966} 4967 4968// FromJsonString It is highly **NOT** recommended to use this function 4969// because it has no param check, nor strict type check 4970func (r *DescribeSupportedPrivilegesResponse) FromJsonString(s string) error { 4971 return json.Unmarshal([]byte(s), &r) 4972} 4973 4974type DescribeTablesRequest struct { 4975 *tchttp.BaseRequest 4976 4977 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 4978 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4979 4980 // 数据库的名称。 4981 Database *string `json:"Database,omitempty" name:"Database"` 4982 4983 // 记录偏移量,默认值为0。 4984 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 4985 4986 // 单次请求返回的数量,默认值为20,最大值为2000。 4987 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 4988 4989 // 匹配数据库表名的正则表达式,规则同 MySQL 官网 4990 TableRegexp *string `json:"TableRegexp,omitempty" name:"TableRegexp"` 4991} 4992 4993func (r *DescribeTablesRequest) ToJsonString() string { 4994 b, _ := json.Marshal(r) 4995 return string(b) 4996} 4997 4998// FromJsonString It is highly **NOT** recommended to use this function 4999// because it has no param check, nor strict type check 5000func (r *DescribeTablesRequest) FromJsonString(s string) error { 5001 f := make(map[string]interface{}) 5002 if err := json.Unmarshal([]byte(s), &f); err != nil { 5003 return err 5004 } 5005 delete(f, "InstanceId") 5006 delete(f, "Database") 5007 delete(f, "Offset") 5008 delete(f, "Limit") 5009 delete(f, "TableRegexp") 5010 if len(f) > 0 { 5011 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTablesRequest has unknown keys!", "") 5012 } 5013 return json.Unmarshal([]byte(s), &r) 5014} 5015 5016type DescribeTablesResponse struct { 5017 *tchttp.BaseResponse 5018 Response *struct { 5019 5020 // 符合查询条件的数据库表总数。 5021 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 5022 5023 // 返回的数据库表信息。 5024 Items []*string `json:"Items,omitempty" name:"Items"` 5025 5026 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5027 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5028 } `json:"Response"` 5029} 5030 5031func (r *DescribeTablesResponse) ToJsonString() string { 5032 b, _ := json.Marshal(r) 5033 return string(b) 5034} 5035 5036// FromJsonString It is highly **NOT** recommended to use this function 5037// because it has no param check, nor strict type check 5038func (r *DescribeTablesResponse) FromJsonString(s string) error { 5039 return json.Unmarshal([]byte(s), &r) 5040} 5041 5042type DescribeTagsOfInstanceIdsRequest struct { 5043 *tchttp.BaseRequest 5044 5045 // 实例列表。 5046 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 5047 5048 // 分页偏移量。 5049 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 5050 5051 // 分页大小。 5052 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 5053} 5054 5055func (r *DescribeTagsOfInstanceIdsRequest) ToJsonString() string { 5056 b, _ := json.Marshal(r) 5057 return string(b) 5058} 5059 5060// FromJsonString It is highly **NOT** recommended to use this function 5061// because it has no param check, nor strict type check 5062func (r *DescribeTagsOfInstanceIdsRequest) FromJsonString(s string) error { 5063 f := make(map[string]interface{}) 5064 if err := json.Unmarshal([]byte(s), &f); err != nil { 5065 return err 5066 } 5067 delete(f, "InstanceIds") 5068 delete(f, "Offset") 5069 delete(f, "Limit") 5070 if len(f) > 0 { 5071 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTagsOfInstanceIdsRequest has unknown keys!", "") 5072 } 5073 return json.Unmarshal([]byte(s), &r) 5074} 5075 5076type DescribeTagsOfInstanceIdsResponse struct { 5077 *tchttp.BaseResponse 5078 Response *struct { 5079 5080 // 分页偏移量。 5081 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 5082 5083 // 分页大小。 5084 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 5085 5086 // 实例标签信息。 5087 Rows []*TagsInfoOfInstance `json:"Rows,omitempty" name:"Rows"` 5088 5089 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5090 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5091 } `json:"Response"` 5092} 5093 5094func (r *DescribeTagsOfInstanceIdsResponse) ToJsonString() string { 5095 b, _ := json.Marshal(r) 5096 return string(b) 5097} 5098 5099// FromJsonString It is highly **NOT** recommended to use this function 5100// because it has no param check, nor strict type check 5101func (r *DescribeTagsOfInstanceIdsResponse) FromJsonString(s string) error { 5102 return json.Unmarshal([]byte(s), &r) 5103} 5104 5105type DescribeTasksRequest struct { 5106 *tchttp.BaseRequest 5107 5108 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 5109 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5110 5111 // 异步任务请求 ID,执行云数据库相关操作返回的 AsyncRequestId。 5112 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 5113 5114 // 任务类型,不传值则查询所有任务类型,支持的值包括: 5115 // 1 - 数据库回档; 5116 // 2 - SQL操作; 5117 // 3 - 数据导入; 5118 // 5 - 参数设置; 5119 // 6 - 初始化云数据库实例; 5120 // 7 - 重启云数据库实例; 5121 // 8 - 开启云数据库实例GTID; 5122 // 9 - 只读实例升级; 5123 // 10 - 数据库批量回档; 5124 // 11 - 主实例升级; 5125 // 12 - 删除云数据库库表; 5126 // 13 - 灾备实例提升为主。 5127 TaskTypes []*int64 `json:"TaskTypes,omitempty" name:"TaskTypes"` 5128 5129 // 任务状态,不传值则查询所有任务状态,支持的值包括: 5130 // -1 - 未定义; 5131 // 0 - 初始化; 5132 // 1 - 运行中; 5133 // 2 - 执行成功; 5134 // 3 - 执行失败; 5135 // 4 - 已终止; 5136 // 5 - 已删除; 5137 // 6 - 已暂停。 5138 TaskStatus []*int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` 5139 5140 // 第一个任务的开始时间,用于范围查询,时间格式如:2017-12-31 10:40:01。 5141 StartTimeBegin *string `json:"StartTimeBegin,omitempty" name:"StartTimeBegin"` 5142 5143 // 最后一个任务的开始时间,用于范围查询,时间格式如:2017-12-31 10:40:01。 5144 StartTimeEnd *string `json:"StartTimeEnd,omitempty" name:"StartTimeEnd"` 5145 5146 // 记录偏移量,默认值为0。 5147 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 5148 5149 // 单次请求返回的数量,默认值为20,最大值为100。 5150 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 5151} 5152 5153func (r *DescribeTasksRequest) ToJsonString() string { 5154 b, _ := json.Marshal(r) 5155 return string(b) 5156} 5157 5158// FromJsonString It is highly **NOT** recommended to use this function 5159// because it has no param check, nor strict type check 5160func (r *DescribeTasksRequest) FromJsonString(s string) error { 5161 f := make(map[string]interface{}) 5162 if err := json.Unmarshal([]byte(s), &f); err != nil { 5163 return err 5164 } 5165 delete(f, "InstanceId") 5166 delete(f, "AsyncRequestId") 5167 delete(f, "TaskTypes") 5168 delete(f, "TaskStatus") 5169 delete(f, "StartTimeBegin") 5170 delete(f, "StartTimeEnd") 5171 delete(f, "Offset") 5172 delete(f, "Limit") 5173 if len(f) > 0 { 5174 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTasksRequest has unknown keys!", "") 5175 } 5176 return json.Unmarshal([]byte(s), &r) 5177} 5178 5179type DescribeTasksResponse struct { 5180 *tchttp.BaseResponse 5181 Response *struct { 5182 5183 // 符合查询条件的实例总数。 5184 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 5185 5186 // 返回的实例任务信息。 5187 Items []*TaskDetail `json:"Items,omitempty" name:"Items"` 5188 5189 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5190 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5191 } `json:"Response"` 5192} 5193 5194func (r *DescribeTasksResponse) ToJsonString() string { 5195 b, _ := json.Marshal(r) 5196 return string(b) 5197} 5198 5199// FromJsonString It is highly **NOT** recommended to use this function 5200// because it has no param check, nor strict type check 5201func (r *DescribeTasksResponse) FromJsonString(s string) error { 5202 return json.Unmarshal([]byte(s), &r) 5203} 5204 5205type DescribeTimeWindowRequest struct { 5206 *tchttp.BaseRequest 5207 5208 // 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。 5209 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5210} 5211 5212func (r *DescribeTimeWindowRequest) ToJsonString() string { 5213 b, _ := json.Marshal(r) 5214 return string(b) 5215} 5216 5217// FromJsonString It is highly **NOT** recommended to use this function 5218// because it has no param check, nor strict type check 5219func (r *DescribeTimeWindowRequest) FromJsonString(s string) error { 5220 f := make(map[string]interface{}) 5221 if err := json.Unmarshal([]byte(s), &f); err != nil { 5222 return err 5223 } 5224 delete(f, "InstanceId") 5225 if len(f) > 0 { 5226 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTimeWindowRequest has unknown keys!", "") 5227 } 5228 return json.Unmarshal([]byte(s), &r) 5229} 5230 5231type DescribeTimeWindowResponse struct { 5232 *tchttp.BaseResponse 5233 Response *struct { 5234 5235 // 星期一的可维护时间列表。 5236 Monday []*string `json:"Monday,omitempty" name:"Monday"` 5237 5238 // 星期二的可维护时间列表。 5239 Tuesday []*string `json:"Tuesday,omitempty" name:"Tuesday"` 5240 5241 // 星期三的可维护时间列表。 5242 Wednesday []*string `json:"Wednesday,omitempty" name:"Wednesday"` 5243 5244 // 星期四的可维护时间列表。 5245 Thursday []*string `json:"Thursday,omitempty" name:"Thursday"` 5246 5247 // 星期五的可维护时间列表。 5248 Friday []*string `json:"Friday,omitempty" name:"Friday"` 5249 5250 // 星期六的可维护时间列表。 5251 Saturday []*string `json:"Saturday,omitempty" name:"Saturday"` 5252 5253 // 星期日的可维护时间列表。 5254 Sunday []*string `json:"Sunday,omitempty" name:"Sunday"` 5255 5256 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5257 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5258 } `json:"Response"` 5259} 5260 5261func (r *DescribeTimeWindowResponse) ToJsonString() string { 5262 b, _ := json.Marshal(r) 5263 return string(b) 5264} 5265 5266// FromJsonString It is highly **NOT** recommended to use this function 5267// because it has no param check, nor strict type check 5268func (r *DescribeTimeWindowResponse) FromJsonString(s string) error { 5269 return json.Unmarshal([]byte(s), &r) 5270} 5271 5272type DescribeUploadedFilesRequest struct { 5273 *tchttp.BaseRequest 5274 5275 // 文件路径。该字段应填用户主账号的OwnerUin信息。 5276 Path *string `json:"Path,omitempty" name:"Path"` 5277 5278 // 记录偏移量,默认值为0。 5279 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 5280 5281 // 单次请求返回的数量,默认值为20。 5282 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 5283} 5284 5285func (r *DescribeUploadedFilesRequest) ToJsonString() string { 5286 b, _ := json.Marshal(r) 5287 return string(b) 5288} 5289 5290// FromJsonString It is highly **NOT** recommended to use this function 5291// because it has no param check, nor strict type check 5292func (r *DescribeUploadedFilesRequest) FromJsonString(s string) error { 5293 f := make(map[string]interface{}) 5294 if err := json.Unmarshal([]byte(s), &f); err != nil { 5295 return err 5296 } 5297 delete(f, "Path") 5298 delete(f, "Offset") 5299 delete(f, "Limit") 5300 if len(f) > 0 { 5301 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeUploadedFilesRequest has unknown keys!", "") 5302 } 5303 return json.Unmarshal([]byte(s), &r) 5304} 5305 5306type DescribeUploadedFilesResponse struct { 5307 *tchttp.BaseResponse 5308 Response *struct { 5309 5310 // 符合查询条件的SQL文件总数。 5311 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 5312 5313 // 返回的SQL文件列表。 5314 Items []*SqlFileInfo `json:"Items,omitempty" name:"Items"` 5315 5316 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5317 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5318 } `json:"Response"` 5319} 5320 5321func (r *DescribeUploadedFilesResponse) ToJsonString() string { 5322 b, _ := json.Marshal(r) 5323 return string(b) 5324} 5325 5326// FromJsonString It is highly **NOT** recommended to use this function 5327// because it has no param check, nor strict type check 5328func (r *DescribeUploadedFilesResponse) FromJsonString(s string) error { 5329 return json.Unmarshal([]byte(s), &r) 5330} 5331 5332type DeviceCpuInfo struct { 5333 5334 // 实例CPU平均使用率 5335 Rate []*DeviceCpuRateInfo `json:"Rate,omitempty" name:"Rate"` 5336 5337 // 实例CPU监控数据 5338 Load []*int64 `json:"Load,omitempty" name:"Load"` 5339} 5340 5341type DeviceCpuRateInfo struct { 5342 5343 // Cpu核编号 5344 CpuCore *int64 `json:"CpuCore,omitempty" name:"CpuCore"` 5345 5346 // Cpu使用率 5347 Rate []*int64 `json:"Rate,omitempty" name:"Rate"` 5348} 5349 5350type DeviceDiskInfo struct { 5351 5352 // 平均每秒有百分之几的时间用于IO操作 5353 IoRatioPerSec []*int64 `json:"IoRatioPerSec,omitempty" name:"IoRatioPerSec"` 5354 5355 // 平均每次设备I/O操作的等待时间*100,单位为毫秒。例如:该值为201,表示平均每次I/O操作等待时间为:201/100=2.1毫秒 5356 IoWaitTime []*int64 `json:"IoWaitTime,omitempty" name:"IoWaitTime"` 5357 5358 // 磁盘平均每秒完成的读操作次数总和*100。例如:该值为2002,表示磁盘平均每秒完成读操作为:2002/100=20.2次 5359 Read []*int64 `json:"Read,omitempty" name:"Read"` 5360 5361 // 磁盘平均每秒完成的写操作次数总和*100。例如:该值为30001,表示磁盘平均每秒完成写操作为:30001/100=300.01次 5362 Write []*int64 `json:"Write,omitempty" name:"Write"` 5363 5364 // 磁盘空间容量,每两个一组,第一个为已使用容量,第二个为磁盘总容量 5365 CapacityRatio []*int64 `json:"CapacityRatio,omitempty" name:"CapacityRatio"` 5366} 5367 5368type DeviceMemInfo struct { 5369 5370 // 总内存大小。free命令中Mem:一行total的值,单位:KB 5371 Total []*int64 `json:"Total,omitempty" name:"Total"` 5372 5373 // 已使用内存。free命令中Mem:一行used的值,单位:KB 5374 Used []*int64 `json:"Used,omitempty" name:"Used"` 5375} 5376 5377type DeviceNetInfo struct { 5378 5379 // tcp连接数 5380 Conn []*int64 `json:"Conn,omitempty" name:"Conn"` 5381 5382 // 网卡入包量,单位:个/秒 5383 PackageIn []*int64 `json:"PackageIn,omitempty" name:"PackageIn"` 5384 5385 // 网卡出包量,单位:个/秒 5386 PackageOut []*int64 `json:"PackageOut,omitempty" name:"PackageOut"` 5387 5388 // 入流量,单位:kbps 5389 FlowIn []*int64 `json:"FlowIn,omitempty" name:"FlowIn"` 5390 5391 // 出流量,单位:kbps 5392 FlowOut []*int64 `json:"FlowOut,omitempty" name:"FlowOut"` 5393} 5394 5395type DisassociateSecurityGroupsRequest struct { 5396 *tchttp.BaseRequest 5397 5398 // 安全组 ID。 5399 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 5400 5401 // 实例 ID 列表,一个或者多个实例 ID 组成的数组。 5402 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 5403 5404 // 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True 5405 ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitempty" name:"ForReadonlyInstance"` 5406} 5407 5408func (r *DisassociateSecurityGroupsRequest) ToJsonString() string { 5409 b, _ := json.Marshal(r) 5410 return string(b) 5411} 5412 5413// FromJsonString It is highly **NOT** recommended to use this function 5414// because it has no param check, nor strict type check 5415func (r *DisassociateSecurityGroupsRequest) FromJsonString(s string) error { 5416 f := make(map[string]interface{}) 5417 if err := json.Unmarshal([]byte(s), &f); err != nil { 5418 return err 5419 } 5420 delete(f, "SecurityGroupId") 5421 delete(f, "InstanceIds") 5422 delete(f, "ForReadonlyInstance") 5423 if len(f) > 0 { 5424 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisassociateSecurityGroupsRequest has unknown keys!", "") 5425 } 5426 return json.Unmarshal([]byte(s), &r) 5427} 5428 5429type DisassociateSecurityGroupsResponse struct { 5430 *tchttp.BaseResponse 5431 Response *struct { 5432 5433 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5434 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5435 } `json:"Response"` 5436} 5437 5438func (r *DisassociateSecurityGroupsResponse) ToJsonString() string { 5439 b, _ := json.Marshal(r) 5440 return string(b) 5441} 5442 5443// FromJsonString It is highly **NOT** recommended to use this function 5444// because it has no param check, nor strict type check 5445func (r *DisassociateSecurityGroupsResponse) FromJsonString(s string) error { 5446 return json.Unmarshal([]byte(s), &r) 5447} 5448 5449type DrInfo struct { 5450 5451 // 灾备实例状态 5452 Status *int64 `json:"Status,omitempty" name:"Status"` 5453 5454 // 可用区信息 5455 Zone *string `json:"Zone,omitempty" name:"Zone"` 5456 5457 // 实例ID 5458 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5459 5460 // 地域信息 5461 Region *string `json:"Region,omitempty" name:"Region"` 5462 5463 // 实例同步状态。可能的返回值为: 5464 // 0 - 灾备未同步; 5465 // 1 - 灾备同步中; 5466 // 2 - 灾备同步成功; 5467 // 3 - 灾备同步失败; 5468 // 4 - 灾备同步修复中。 5469 SyncStatus *int64 `json:"SyncStatus,omitempty" name:"SyncStatus"` 5470 5471 // 实例名称 5472 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 5473 5474 // 实例类型 5475 InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` 5476} 5477 5478type ErrlogItem struct { 5479 5480 // 错误发生时间。 5481 // 注意:此字段可能返回 null,表示取不到有效值。 5482 Timestamp *uint64 `json:"Timestamp,omitempty" name:"Timestamp"` 5483 5484 // 错误详情 5485 // 注意:此字段可能返回 null,表示取不到有效值。 5486 Content *string `json:"Content,omitempty" name:"Content"` 5487} 5488 5489type ImportRecord struct { 5490 5491 // 状态值 5492 Status *int64 `json:"Status,omitempty" name:"Status"` 5493 5494 // 状态值 5495 Code *int64 `json:"Code,omitempty" name:"Code"` 5496 5497 // 执行时间 5498 CostTime *int64 `json:"CostTime,omitempty" name:"CostTime"` 5499 5500 // 实例ID 5501 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5502 5503 // 后端任务ID 5504 WorkId *string `json:"WorkId,omitempty" name:"WorkId"` 5505 5506 // 导入文件名 5507 FileName *string `json:"FileName,omitempty" name:"FileName"` 5508 5509 // 执行进度 5510 Process *int64 `json:"Process,omitempty" name:"Process"` 5511 5512 // 任务创建时间 5513 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 5514 5515 // 文件大小 5516 FileSize *string `json:"FileSize,omitempty" name:"FileSize"` 5517 5518 // 任务执行信息 5519 Message *string `json:"Message,omitempty" name:"Message"` 5520 5521 // 任务ID 5522 JobId *int64 `json:"JobId,omitempty" name:"JobId"` 5523 5524 // 导入库表名 5525 DbName *string `json:"DbName,omitempty" name:"DbName"` 5526 5527 // 异步任务的请求ID 5528 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 5529} 5530 5531type Inbound struct { 5532 5533 // 策略,ACCEPT 或者 DROP 5534 Action *string `json:"Action,omitempty" name:"Action"` 5535 5536 // 来源 IP 或 IP 段,例如192.168.0.0/16 5537 CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"` 5538 5539 // 端口 5540 PortRange *string `json:"PortRange,omitempty" name:"PortRange"` 5541 5542 // 网络协议,支持 UDP、TCP 等 5543 IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` 5544 5545 // 规则限定的方向,进站规则为 INPUT 5546 Dir *string `json:"Dir,omitempty" name:"Dir"` 5547 5548 // 规则描述 5549 Desc *string `json:"Desc,omitempty" name:"Desc"` 5550} 5551 5552type InitDBInstancesRequest struct { 5553 *tchttp.BaseRequest 5554 5555 // 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 5556 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 5557 5558 // 实例新的密码,密码规则:8-64个字符,至少包含字母、数字、字符(支持的字符:!@#$%^*())中的两种。 5559 NewPassword *string `json:"NewPassword,omitempty" name:"NewPassword"` 5560 5561 // 实例的参数列表,目前支持设置“character_set_server”、“lower_case_table_names”参数。其中,“character_set_server”参数可选值为["utf8","latin1","gbk","utf8mb4"];“lower_case_table_names”可选值为[“0”,“1”]。 5562 Parameters []*ParamInfo `json:"Parameters,omitempty" name:"Parameters"` 5563 5564 // 实例的端口,取值范围为[1024, 65535] 5565 Vport *int64 `json:"Vport,omitempty" name:"Vport"` 5566} 5567 5568func (r *InitDBInstancesRequest) ToJsonString() string { 5569 b, _ := json.Marshal(r) 5570 return string(b) 5571} 5572 5573// FromJsonString It is highly **NOT** recommended to use this function 5574// because it has no param check, nor strict type check 5575func (r *InitDBInstancesRequest) FromJsonString(s string) error { 5576 f := make(map[string]interface{}) 5577 if err := json.Unmarshal([]byte(s), &f); err != nil { 5578 return err 5579 } 5580 delete(f, "InstanceIds") 5581 delete(f, "NewPassword") 5582 delete(f, "Parameters") 5583 delete(f, "Vport") 5584 if len(f) > 0 { 5585 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InitDBInstancesRequest has unknown keys!", "") 5586 } 5587 return json.Unmarshal([]byte(s), &r) 5588} 5589 5590type InitDBInstancesResponse struct { 5591 *tchttp.BaseResponse 5592 Response *struct { 5593 5594 // 异步任务的请求ID数组,可使用此ID查询异步任务的执行结果 5595 AsyncRequestIds []*string `json:"AsyncRequestIds,omitempty" name:"AsyncRequestIds"` 5596 5597 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5598 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5599 } `json:"Response"` 5600} 5601 5602func (r *InitDBInstancesResponse) ToJsonString() string { 5603 b, _ := json.Marshal(r) 5604 return string(b) 5605} 5606 5607// FromJsonString It is highly **NOT** recommended to use this function 5608// because it has no param check, nor strict type check 5609func (r *InitDBInstancesResponse) FromJsonString(s string) error { 5610 return json.Unmarshal([]byte(s), &r) 5611} 5612 5613type InquiryPriceUpgradeInstancesRequest struct { 5614 *tchttp.BaseRequest 5615 5616 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 5617 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5618 5619 // 升级后的内存大小,单位:MB,为保证传入 Memory 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的内存规格。 5620 Memory *uint64 `json:"Memory,omitempty" name:"Memory"` 5621 5622 // 升级后的硬盘大小,单位:GB,为保证传入 Volume 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的硬盘范围。 5623 Volume *uint64 `json:"Volume,omitempty" name:"Volume"` 5624 5625 // 升级后的核心数目,单位:核,为保证传入 CPU 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的核心数目,当未指定该值时,将按照 Memory 大小补全一个默认值。 5626 Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"` 5627 5628 // 数据复制方式,支持值包括:0 - 异步复制,1 - 半同步复制,2 - 强同步复制,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。 5629 ProtectMode *uint64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 5630 5631 // 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。 5632 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 5633 5634 // 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要询价三节点实例, 请将该值设置为3。其余主实例该值默认为2。 5635 InstanceNodes *int64 `json:"InstanceNodes,omitempty" name:"InstanceNodes"` 5636} 5637 5638func (r *InquiryPriceUpgradeInstancesRequest) ToJsonString() string { 5639 b, _ := json.Marshal(r) 5640 return string(b) 5641} 5642 5643// FromJsonString It is highly **NOT** recommended to use this function 5644// because it has no param check, nor strict type check 5645func (r *InquiryPriceUpgradeInstancesRequest) FromJsonString(s string) error { 5646 f := make(map[string]interface{}) 5647 if err := json.Unmarshal([]byte(s), &f); err != nil { 5648 return err 5649 } 5650 delete(f, "InstanceId") 5651 delete(f, "Memory") 5652 delete(f, "Volume") 5653 delete(f, "Cpu") 5654 delete(f, "ProtectMode") 5655 delete(f, "DeviceType") 5656 delete(f, "InstanceNodes") 5657 if len(f) > 0 { 5658 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceUpgradeInstancesRequest has unknown keys!", "") 5659 } 5660 return json.Unmarshal([]byte(s), &r) 5661} 5662 5663type InquiryPriceUpgradeInstancesResponse struct { 5664 *tchttp.BaseResponse 5665 Response *struct { 5666 5667 // 实例价格,单位:分(人民币)。 5668 Price *int64 `json:"Price,omitempty" name:"Price"` 5669 5670 // 实例原价,单位:分(人民币)。 5671 OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` 5672 5673 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5674 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5675 } `json:"Response"` 5676} 5677 5678func (r *InquiryPriceUpgradeInstancesResponse) ToJsonString() string { 5679 b, _ := json.Marshal(r) 5680 return string(b) 5681} 5682 5683// FromJsonString It is highly **NOT** recommended to use this function 5684// because it has no param check, nor strict type check 5685func (r *InquiryPriceUpgradeInstancesResponse) FromJsonString(s string) error { 5686 return json.Unmarshal([]byte(s), &r) 5687} 5688 5689type InstanceInfo struct { 5690 5691 // 外网状态,可能的返回值为:0-未开通外网;1-已开通外网;2-已关闭外网 5692 WanStatus *int64 `json:"WanStatus,omitempty" name:"WanStatus"` 5693 5694 // 可用区信息 5695 Zone *string `json:"Zone,omitempty" name:"Zone"` 5696 5697 // 初始化标志,可能的返回值为:0-未初始化;1-已初始化 5698 InitFlag *int64 `json:"InitFlag,omitempty" name:"InitFlag"` 5699 5700 // 只读vip信息。单独开通只读实例访问的只读实例才有该字段 5701 // 注意:此字段可能返回 null,表示取不到有效值。 5702 RoVipInfo *RoVipInfo `json:"RoVipInfo,omitempty" name:"RoVipInfo"` 5703 5704 // 内存容量,单位为 MB 5705 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 5706 5707 // 实例状态,可能的返回值:0-创建中;1-运行中;4-隔离中;5-已隔离 5708 Status *int64 `json:"Status,omitempty" name:"Status"` 5709 5710 // 私有网络 ID,例如:51102 5711 VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` 5712 5713 // 备机信息 5714 // 注意:此字段可能返回 null,表示取不到有效值。 5715 SlaveInfo *SlaveInfo `json:"SlaveInfo,omitempty" name:"SlaveInfo"` 5716 5717 // 实例 ID 5718 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5719 5720 // 硬盘容量,单位为 GB 5721 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 5722 5723 // 自动续费标志,可能的返回值:0-未开通自动续费;1-已开通自动续费;2-已关闭自动续费 5724 AutoRenew *int64 `json:"AutoRenew,omitempty" name:"AutoRenew"` 5725 5726 // 数据复制方式。0 - 异步复制;1 - 半同步复制;2 - 强同步复制 5727 ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 5728 5729 // 只读组详细信息 5730 // 注意:此字段可能返回 null,表示取不到有效值。 5731 RoGroups []*RoGroup `json:"RoGroups,omitempty" name:"RoGroups"` 5732 5733 // 子网 ID,例如:2333 5734 SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` 5735 5736 // 实例类型,可能的返回值:1-主实例;2-灾备实例;3-只读实例 5737 InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` 5738 5739 // 项目 ID 5740 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 5741 5742 // 地域信息 5743 Region *string `json:"Region,omitempty" name:"Region"` 5744 5745 // 实例到期时间 5746 DeadlineTime *string `json:"DeadlineTime,omitempty" name:"DeadlineTime"` 5747 5748 // 可用区部署方式。可能的值为:0 - 单可用区;1 - 多可用区 5749 DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` 5750 5751 // 实例任务状态。0 - 没有任务 ,1 - 升级中,2 - 数据导入中,3 - 开放Slave中,4 - 外网访问开通中,5 - 批量操作执行中,6 - 回档中,7 - 外网访问关闭中,8 - 密码修改中,9 - 实例名修改中,10 - 重启中,12 - 自建迁移中,13 - 删除库表中,14 - 灾备实例创建同步中,15 - 升级待切换,16 - 升级切换中,17 - 升级切换完成 5752 TaskStatus *int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` 5753 5754 // 主实例详细信息 5755 // 注意:此字段可能返回 null,表示取不到有效值。 5756 MasterInfo *MasterInfo `json:"MasterInfo,omitempty" name:"MasterInfo"` 5757 5758 // 实例类型 5759 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 5760 5761 // 内核版本 5762 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 5763 5764 // 实例名称 5765 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 5766 5767 // 灾备实例详细信息 5768 // 注意:此字段可能返回 null,表示取不到有效值。 5769 DrInfo []*DrInfo `json:"DrInfo,omitempty" name:"DrInfo"` 5770 5771 // 外网域名 5772 WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"` 5773 5774 // 外网端口号 5775 WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"` 5776 5777 // 付费类型,可能的返回值:0-包年包月;1-按量计费 5778 PayType *int64 `json:"PayType,omitempty" name:"PayType"` 5779 5780 // 实例创建时间 5781 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 5782 5783 // 实例 IP 5784 Vip *string `json:"Vip,omitempty" name:"Vip"` 5785 5786 // 端口号 5787 Vport *int64 `json:"Vport,omitempty" name:"Vport"` 5788 5789 // 是否锁定标记 5790 CdbError *int64 `json:"CdbError,omitempty" name:"CdbError"` 5791 5792 // 私有网络描述符,例如:“vpc-5v8wn9mg” 5793 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 5794 5795 // 子网描述符,例如:“subnet-1typ0s7d” 5796 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 5797 5798 // 物理 ID 5799 PhysicalId *string `json:"PhysicalId,omitempty" name:"PhysicalId"` 5800 5801 // 核心数 5802 Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` 5803 5804 // 每秒查询数量 5805 Qps *int64 `json:"Qps,omitempty" name:"Qps"` 5806 5807 // 可用区中文名称 5808 ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` 5809 5810 // 物理机型 5811 // 注意:此字段可能返回 null,表示取不到有效值。 5812 DeviceClass *string `json:"DeviceClass,omitempty" name:"DeviceClass"` 5813 5814 // 置放群组 ID 5815 // 注意:此字段可能返回 null,表示取不到有效值。 5816 DeployGroupId *string `json:"DeployGroupId,omitempty" name:"DeployGroupId"` 5817 5818 // 可用区 ID 5819 // 注意:此字段可能返回 null,表示取不到有效值。 5820 ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` 5821 5822 // 节点数 5823 InstanceNodes *int64 `json:"InstanceNodes,omitempty" name:"InstanceNodes"` 5824 5825 // 标签列表 5826 // 注意:此字段可能返回 null,表示取不到有效值。 5827 TagList []*TagInfoItem `json:"TagList,omitempty" name:"TagList"` 5828} 5829 5830type InstanceRebootTime struct { 5831 5832 // 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同 5833 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5834 5835 // 预期重启时间 5836 TimeInSeconds *int64 `json:"TimeInSeconds,omitempty" name:"TimeInSeconds"` 5837} 5838 5839type InstanceRollbackRangeTime struct { 5840 5841 // 查询数据库错误码 5842 Code *int64 `json:"Code,omitempty" name:"Code"` 5843 5844 // 查询数据库错误信息 5845 Message *string `json:"Message,omitempty" name:"Message"` 5846 5847 // 实例ID列表,单个实例Id的格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同 5848 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5849 5850 // 可回档时间范围 5851 Times []*RollbackTimeRange `json:"Times,omitempty" name:"Times"` 5852} 5853 5854type IsolateDBInstanceRequest struct { 5855 *tchttp.BaseRequest 5856 5857 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 5858 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5859} 5860 5861func (r *IsolateDBInstanceRequest) ToJsonString() string { 5862 b, _ := json.Marshal(r) 5863 return string(b) 5864} 5865 5866// FromJsonString It is highly **NOT** recommended to use this function 5867// because it has no param check, nor strict type check 5868func (r *IsolateDBInstanceRequest) FromJsonString(s string) error { 5869 f := make(map[string]interface{}) 5870 if err := json.Unmarshal([]byte(s), &f); err != nil { 5871 return err 5872 } 5873 delete(f, "InstanceId") 5874 if len(f) > 0 { 5875 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "IsolateDBInstanceRequest has unknown keys!", "") 5876 } 5877 return json.Unmarshal([]byte(s), &r) 5878} 5879 5880type IsolateDBInstanceResponse struct { 5881 *tchttp.BaseResponse 5882 Response *struct { 5883 5884 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。(该返回字段目前已废弃,可以通过 DescribeDBInstances 接口查询实例的隔离状态) 5885 // 注意:此字段可能返回 null,表示取不到有效值。 5886 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 5887 5888 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5889 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5890 } `json:"Response"` 5891} 5892 5893func (r *IsolateDBInstanceResponse) ToJsonString() string { 5894 b, _ := json.Marshal(r) 5895 return string(b) 5896} 5897 5898// FromJsonString It is highly **NOT** recommended to use this function 5899// because it has no param check, nor strict type check 5900func (r *IsolateDBInstanceResponse) FromJsonString(s string) error { 5901 return json.Unmarshal([]byte(s), &r) 5902} 5903 5904type MasterInfo struct { 5905 5906 // 地域信息 5907 Region *string `json:"Region,omitempty" name:"Region"` 5908 5909 // 地域ID 5910 RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` 5911 5912 // 可用区ID 5913 ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` 5914 5915 // 可用区信息 5916 Zone *string `json:"Zone,omitempty" name:"Zone"` 5917 5918 // 实例ID 5919 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5920 5921 // 实例长ID 5922 ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` 5923 5924 // 实例状态 5925 Status *int64 `json:"Status,omitempty" name:"Status"` 5926 5927 // 实例名称 5928 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 5929 5930 // 实例类型 5931 InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` 5932 5933 // 任务状态 5934 TaskStatus *int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` 5935 5936 // 内存容量 5937 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 5938 5939 // 硬盘容量 5940 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 5941 5942 // 实例机型 5943 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 5944 5945 // 每秒查询数 5946 Qps *int64 `json:"Qps,omitempty" name:"Qps"` 5947 5948 // 私有网络ID 5949 VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` 5950 5951 // 子网ID 5952 SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` 5953 5954 // 独享集群ID 5955 ExClusterId *string `json:"ExClusterId,omitempty" name:"ExClusterId"` 5956 5957 // 独享集群名称 5958 ExClusterName *string `json:"ExClusterName,omitempty" name:"ExClusterName"` 5959} 5960 5961type ModifyAccountDescriptionRequest struct { 5962 *tchttp.BaseRequest 5963 5964 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 5965 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 5966 5967 // 云数据库账号。 5968 Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"` 5969 5970 // 数据库账号的备注信息。 5971 Description *string `json:"Description,omitempty" name:"Description"` 5972} 5973 5974func (r *ModifyAccountDescriptionRequest) ToJsonString() string { 5975 b, _ := json.Marshal(r) 5976 return string(b) 5977} 5978 5979// FromJsonString It is highly **NOT** recommended to use this function 5980// because it has no param check, nor strict type check 5981func (r *ModifyAccountDescriptionRequest) FromJsonString(s string) error { 5982 f := make(map[string]interface{}) 5983 if err := json.Unmarshal([]byte(s), &f); err != nil { 5984 return err 5985 } 5986 delete(f, "InstanceId") 5987 delete(f, "Accounts") 5988 delete(f, "Description") 5989 if len(f) > 0 { 5990 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAccountDescriptionRequest has unknown keys!", "") 5991 } 5992 return json.Unmarshal([]byte(s), &r) 5993} 5994 5995type ModifyAccountDescriptionResponse struct { 5996 *tchttp.BaseResponse 5997 Response *struct { 5998 5999 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 6000 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 6001 6002 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6003 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6004 } `json:"Response"` 6005} 6006 6007func (r *ModifyAccountDescriptionResponse) ToJsonString() string { 6008 b, _ := json.Marshal(r) 6009 return string(b) 6010} 6011 6012// FromJsonString It is highly **NOT** recommended to use this function 6013// because it has no param check, nor strict type check 6014func (r *ModifyAccountDescriptionResponse) FromJsonString(s string) error { 6015 return json.Unmarshal([]byte(s), &r) 6016} 6017 6018type ModifyAccountMaxUserConnectionsRequest struct { 6019 *tchttp.BaseRequest 6020 6021 // 云数据库账号。 6022 Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"` 6023 6024 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 6025 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6026 6027 // 设置账户最大可用连接数,最大可设置值为10240。 6028 MaxUserConnections *int64 `json:"MaxUserConnections,omitempty" name:"MaxUserConnections"` 6029} 6030 6031func (r *ModifyAccountMaxUserConnectionsRequest) ToJsonString() string { 6032 b, _ := json.Marshal(r) 6033 return string(b) 6034} 6035 6036// FromJsonString It is highly **NOT** recommended to use this function 6037// because it has no param check, nor strict type check 6038func (r *ModifyAccountMaxUserConnectionsRequest) FromJsonString(s string) error { 6039 f := make(map[string]interface{}) 6040 if err := json.Unmarshal([]byte(s), &f); err != nil { 6041 return err 6042 } 6043 delete(f, "Accounts") 6044 delete(f, "InstanceId") 6045 delete(f, "MaxUserConnections") 6046 if len(f) > 0 { 6047 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAccountMaxUserConnectionsRequest has unknown keys!", "") 6048 } 6049 return json.Unmarshal([]byte(s), &r) 6050} 6051 6052type ModifyAccountMaxUserConnectionsResponse struct { 6053 *tchttp.BaseResponse 6054 Response *struct { 6055 6056 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 6057 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 6058 6059 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6060 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6061 } `json:"Response"` 6062} 6063 6064func (r *ModifyAccountMaxUserConnectionsResponse) ToJsonString() string { 6065 b, _ := json.Marshal(r) 6066 return string(b) 6067} 6068 6069// FromJsonString It is highly **NOT** recommended to use this function 6070// because it has no param check, nor strict type check 6071func (r *ModifyAccountMaxUserConnectionsResponse) FromJsonString(s string) error { 6072 return json.Unmarshal([]byte(s), &r) 6073} 6074 6075type ModifyAccountPasswordRequest struct { 6076 *tchttp.BaseRequest 6077 6078 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 6079 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6080 6081 // 数据库账号的新密码。密码应至少包含字母、数字和字符(_+-&=!@#$%^*())中的两种,长度为8-64个字符。 6082 NewPassword *string `json:"NewPassword,omitempty" name:"NewPassword"` 6083 6084 // 云数据库账号。 6085 Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"` 6086} 6087 6088func (r *ModifyAccountPasswordRequest) ToJsonString() string { 6089 b, _ := json.Marshal(r) 6090 return string(b) 6091} 6092 6093// FromJsonString It is highly **NOT** recommended to use this function 6094// because it has no param check, nor strict type check 6095func (r *ModifyAccountPasswordRequest) FromJsonString(s string) error { 6096 f := make(map[string]interface{}) 6097 if err := json.Unmarshal([]byte(s), &f); err != nil { 6098 return err 6099 } 6100 delete(f, "InstanceId") 6101 delete(f, "NewPassword") 6102 delete(f, "Accounts") 6103 if len(f) > 0 { 6104 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAccountPasswordRequest has unknown keys!", "") 6105 } 6106 return json.Unmarshal([]byte(s), &r) 6107} 6108 6109type ModifyAccountPasswordResponse struct { 6110 *tchttp.BaseResponse 6111 Response *struct { 6112 6113 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 6114 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 6115 6116 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6117 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6118 } `json:"Response"` 6119} 6120 6121func (r *ModifyAccountPasswordResponse) ToJsonString() string { 6122 b, _ := json.Marshal(r) 6123 return string(b) 6124} 6125 6126// FromJsonString It is highly **NOT** recommended to use this function 6127// because it has no param check, nor strict type check 6128func (r *ModifyAccountPasswordResponse) FromJsonString(s string) error { 6129 return json.Unmarshal([]byte(s), &r) 6130} 6131 6132type ModifyAccountPrivilegesRequest struct { 6133 *tchttp.BaseRequest 6134 6135 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 6136 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6137 6138 // 数据库的账号,包括用户名和域名。 6139 Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"` 6140 6141 // 全局权限。其中,GlobalPrivileges 中权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "PROCESS", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。 6142 // 注意,不传该参数表示清除该权限。 6143 GlobalPrivileges []*string `json:"GlobalPrivileges,omitempty" name:"GlobalPrivileges"` 6144 6145 // 数据库的权限。Privileges 权限的可选值为:"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"。 6146 // 注意,不传该参数表示清除该权限。 6147 DatabasePrivileges []*DatabasePrivilege `json:"DatabasePrivileges,omitempty" name:"DatabasePrivileges"` 6148 6149 // 数据库中表的权限。Privileges 权限的可选值为:权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。 6150 // 注意,不传该参数表示清除该权限。 6151 TablePrivileges []*TablePrivilege `json:"TablePrivileges,omitempty" name:"TablePrivileges"` 6152 6153 // 数据库表中列的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。 6154 // 注意,不传该参数表示清除该权限。 6155 ColumnPrivileges []*ColumnPrivilege `json:"ColumnPrivileges,omitempty" name:"ColumnPrivileges"` 6156 6157 // 该参数不为空时,为批量修改权限。可选值为:grant,revoke。 6158 ModifyAction *string `json:"ModifyAction,omitempty" name:"ModifyAction"` 6159} 6160 6161func (r *ModifyAccountPrivilegesRequest) ToJsonString() string { 6162 b, _ := json.Marshal(r) 6163 return string(b) 6164} 6165 6166// FromJsonString It is highly **NOT** recommended to use this function 6167// because it has no param check, nor strict type check 6168func (r *ModifyAccountPrivilegesRequest) FromJsonString(s string) error { 6169 f := make(map[string]interface{}) 6170 if err := json.Unmarshal([]byte(s), &f); err != nil { 6171 return err 6172 } 6173 delete(f, "InstanceId") 6174 delete(f, "Accounts") 6175 delete(f, "GlobalPrivileges") 6176 delete(f, "DatabasePrivileges") 6177 delete(f, "TablePrivileges") 6178 delete(f, "ColumnPrivileges") 6179 delete(f, "ModifyAction") 6180 if len(f) > 0 { 6181 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAccountPrivilegesRequest has unknown keys!", "") 6182 } 6183 return json.Unmarshal([]byte(s), &r) 6184} 6185 6186type ModifyAccountPrivilegesResponse struct { 6187 *tchttp.BaseResponse 6188 Response *struct { 6189 6190 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 6191 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 6192 6193 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6194 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6195 } `json:"Response"` 6196} 6197 6198func (r *ModifyAccountPrivilegesResponse) ToJsonString() string { 6199 b, _ := json.Marshal(r) 6200 return string(b) 6201} 6202 6203// FromJsonString It is highly **NOT** recommended to use this function 6204// because it has no param check, nor strict type check 6205func (r *ModifyAccountPrivilegesResponse) FromJsonString(s string) error { 6206 return json.Unmarshal([]byte(s), &r) 6207} 6208 6209type ModifyAuditConfigRequest struct { 6210 *tchttp.BaseRequest 6211 6212 // 实例 ID。 6213 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6214 6215 // 审计日志保存时长。支持值包括: 6216 // 7 - 一周 6217 // 30 - 一个月; 6218 // 180 - 六个月; 6219 // 365 - 一年; 6220 // 1095 - 三年; 6221 // 1825 - 五年; 6222 LogExpireDay *int64 `json:"LogExpireDay,omitempty" name:"LogExpireDay"` 6223 6224 // 是否关闭审计服务。可选值:true - 关闭审计服务;false - 不关闭审计服务。默认值为 false。 6225 // 当关闭审计服务时,会删除用户的审计日志和文件,并删除该实例的所有审计策略。 6226 // CloseAudit、LogExpireDay必须至少提供一个,如果两个都提供则按照CloseAudit优先的逻辑处理。 6227 CloseAudit *bool `json:"CloseAudit,omitempty" name:"CloseAudit"` 6228} 6229 6230func (r *ModifyAuditConfigRequest) ToJsonString() string { 6231 b, _ := json.Marshal(r) 6232 return string(b) 6233} 6234 6235// FromJsonString It is highly **NOT** recommended to use this function 6236// because it has no param check, nor strict type check 6237func (r *ModifyAuditConfigRequest) FromJsonString(s string) error { 6238 f := make(map[string]interface{}) 6239 if err := json.Unmarshal([]byte(s), &f); err != nil { 6240 return err 6241 } 6242 delete(f, "InstanceId") 6243 delete(f, "LogExpireDay") 6244 delete(f, "CloseAudit") 6245 if len(f) > 0 { 6246 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAuditConfigRequest has unknown keys!", "") 6247 } 6248 return json.Unmarshal([]byte(s), &r) 6249} 6250 6251type ModifyAuditConfigResponse struct { 6252 *tchttp.BaseResponse 6253 Response *struct { 6254 6255 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6256 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6257 } `json:"Response"` 6258} 6259 6260func (r *ModifyAuditConfigResponse) ToJsonString() string { 6261 b, _ := json.Marshal(r) 6262 return string(b) 6263} 6264 6265// FromJsonString It is highly **NOT** recommended to use this function 6266// because it has no param check, nor strict type check 6267func (r *ModifyAuditConfigResponse) FromJsonString(s string) error { 6268 return json.Unmarshal([]byte(s), &r) 6269} 6270 6271type ModifyAuditRuleRequest struct { 6272 *tchttp.BaseRequest 6273 6274 // 审计规则 ID。 6275 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` 6276 6277 // 审计规则名称。 6278 RuleName *string `json:"RuleName,omitempty" name:"RuleName"` 6279 6280 // 审计规则描述。 6281 Description *string `json:"Description,omitempty" name:"Description"` 6282 6283 // 审计规则过滤条件。若设置了过滤条件,则不会开启全审计。 6284 RuleFilters []*AuditFilter `json:"RuleFilters,omitempty" name:"RuleFilters"` 6285 6286 // 是否开启全审计。支持值包括:false – 不开启全审计,true – 开启全审计。用户未设置审计规则过滤条件时,默认开启全审计。 6287 AuditAll *bool `json:"AuditAll,omitempty" name:"AuditAll"` 6288} 6289 6290func (r *ModifyAuditRuleRequest) ToJsonString() string { 6291 b, _ := json.Marshal(r) 6292 return string(b) 6293} 6294 6295// FromJsonString It is highly **NOT** recommended to use this function 6296// because it has no param check, nor strict type check 6297func (r *ModifyAuditRuleRequest) FromJsonString(s string) error { 6298 f := make(map[string]interface{}) 6299 if err := json.Unmarshal([]byte(s), &f); err != nil { 6300 return err 6301 } 6302 delete(f, "RuleId") 6303 delete(f, "RuleName") 6304 delete(f, "Description") 6305 delete(f, "RuleFilters") 6306 delete(f, "AuditAll") 6307 if len(f) > 0 { 6308 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAuditRuleRequest has unknown keys!", "") 6309 } 6310 return json.Unmarshal([]byte(s), &r) 6311} 6312 6313type ModifyAuditRuleResponse struct { 6314 *tchttp.BaseResponse 6315 Response *struct { 6316 6317 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6318 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6319 } `json:"Response"` 6320} 6321 6322func (r *ModifyAuditRuleResponse) ToJsonString() string { 6323 b, _ := json.Marshal(r) 6324 return string(b) 6325} 6326 6327// FromJsonString It is highly **NOT** recommended to use this function 6328// because it has no param check, nor strict type check 6329func (r *ModifyAuditRuleResponse) FromJsonString(s string) error { 6330 return json.Unmarshal([]byte(s), &r) 6331} 6332 6333type ModifyAutoRenewFlagRequest struct { 6334 *tchttp.BaseRequest 6335 6336 // 实例的 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 6337 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 6338 6339 // 自动续费标记,可取值的有:0 - 不自动续费,1 - 自动续费。 6340 AutoRenew *int64 `json:"AutoRenew,omitempty" name:"AutoRenew"` 6341} 6342 6343func (r *ModifyAutoRenewFlagRequest) ToJsonString() string { 6344 b, _ := json.Marshal(r) 6345 return string(b) 6346} 6347 6348// FromJsonString It is highly **NOT** recommended to use this function 6349// because it has no param check, nor strict type check 6350func (r *ModifyAutoRenewFlagRequest) FromJsonString(s string) error { 6351 f := make(map[string]interface{}) 6352 if err := json.Unmarshal([]byte(s), &f); err != nil { 6353 return err 6354 } 6355 delete(f, "InstanceIds") 6356 delete(f, "AutoRenew") 6357 if len(f) > 0 { 6358 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAutoRenewFlagRequest has unknown keys!", "") 6359 } 6360 return json.Unmarshal([]byte(s), &r) 6361} 6362 6363type ModifyAutoRenewFlagResponse struct { 6364 *tchttp.BaseResponse 6365 Response *struct { 6366 6367 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6368 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6369 } `json:"Response"` 6370} 6371 6372func (r *ModifyAutoRenewFlagResponse) ToJsonString() string { 6373 b, _ := json.Marshal(r) 6374 return string(b) 6375} 6376 6377// FromJsonString It is highly **NOT** recommended to use this function 6378// because it has no param check, nor strict type check 6379func (r *ModifyAutoRenewFlagResponse) FromJsonString(s string) error { 6380 return json.Unmarshal([]byte(s), &r) 6381} 6382 6383type ModifyBackupConfigRequest struct { 6384 *tchttp.BaseRequest 6385 6386 // 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。 6387 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6388 6389 // 备份文件的保留时间,单位为天。最小值为7天,最大值为732天。 6390 ExpireDays *int64 `json:"ExpireDays,omitempty" name:"ExpireDays"` 6391 6392 // (将废弃,建议使用 BackupTimeWindow 参数) 备份时间范围,格式为:02:00-06:00,起点和终点时间目前限制为整点,目前可以选择的范围为: 00:00-12:00,02:00-06:00,06:00-10:00,10:00-14:00,14:00-18:00,18:00-22:00,22:00-02:00。 6393 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 6394 6395 // 自动备份方式,仅支持:physical - 物理冷备 6396 BackupMethod *string `json:"BackupMethod,omitempty" name:"BackupMethod"` 6397 6398 // binlog的保留时间,单位为天。最小值为7天,最大值为732天。该值的设置不能大于备份文件的保留时间。 6399 BinlogExpireDays *int64 `json:"BinlogExpireDays,omitempty" name:"BinlogExpireDays"` 6400 6401 // 备份时间窗,比如要设置每周二和周日 10:00-14:00之间备份,该参数如下:{"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (注:可以设置一周的某几天备份,但是每天的备份时间需要设置为相同的时间段。 如果设置了该字段,将忽略StartTime字段的设置) 6402 BackupTimeWindow *CommonTimeWindow `json:"BackupTimeWindow,omitempty" name:"BackupTimeWindow"` 6403} 6404 6405func (r *ModifyBackupConfigRequest) ToJsonString() string { 6406 b, _ := json.Marshal(r) 6407 return string(b) 6408} 6409 6410// FromJsonString It is highly **NOT** recommended to use this function 6411// because it has no param check, nor strict type check 6412func (r *ModifyBackupConfigRequest) FromJsonString(s string) error { 6413 f := make(map[string]interface{}) 6414 if err := json.Unmarshal([]byte(s), &f); err != nil { 6415 return err 6416 } 6417 delete(f, "InstanceId") 6418 delete(f, "ExpireDays") 6419 delete(f, "StartTime") 6420 delete(f, "BackupMethod") 6421 delete(f, "BinlogExpireDays") 6422 delete(f, "BackupTimeWindow") 6423 if len(f) > 0 { 6424 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyBackupConfigRequest has unknown keys!", "") 6425 } 6426 return json.Unmarshal([]byte(s), &r) 6427} 6428 6429type ModifyBackupConfigResponse struct { 6430 *tchttp.BaseResponse 6431 Response *struct { 6432 6433 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6434 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6435 } `json:"Response"` 6436} 6437 6438func (r *ModifyBackupConfigResponse) ToJsonString() string { 6439 b, _ := json.Marshal(r) 6440 return string(b) 6441} 6442 6443// FromJsonString It is highly **NOT** recommended to use this function 6444// because it has no param check, nor strict type check 6445func (r *ModifyBackupConfigResponse) FromJsonString(s string) error { 6446 return json.Unmarshal([]byte(s), &r) 6447} 6448 6449type ModifyDBInstanceNameRequest struct { 6450 *tchttp.BaseRequest 6451 6452 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 6453 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6454 6455 // 实例名称。 6456 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 6457} 6458 6459func (r *ModifyDBInstanceNameRequest) ToJsonString() string { 6460 b, _ := json.Marshal(r) 6461 return string(b) 6462} 6463 6464// FromJsonString It is highly **NOT** recommended to use this function 6465// because it has no param check, nor strict type check 6466func (r *ModifyDBInstanceNameRequest) FromJsonString(s string) error { 6467 f := make(map[string]interface{}) 6468 if err := json.Unmarshal([]byte(s), &f); err != nil { 6469 return err 6470 } 6471 delete(f, "InstanceId") 6472 delete(f, "InstanceName") 6473 if len(f) > 0 { 6474 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBInstanceNameRequest has unknown keys!", "") 6475 } 6476 return json.Unmarshal([]byte(s), &r) 6477} 6478 6479type ModifyDBInstanceNameResponse struct { 6480 *tchttp.BaseResponse 6481 Response *struct { 6482 6483 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6484 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6485 } `json:"Response"` 6486} 6487 6488func (r *ModifyDBInstanceNameResponse) ToJsonString() string { 6489 b, _ := json.Marshal(r) 6490 return string(b) 6491} 6492 6493// FromJsonString It is highly **NOT** recommended to use this function 6494// because it has no param check, nor strict type check 6495func (r *ModifyDBInstanceNameResponse) FromJsonString(s string) error { 6496 return json.Unmarshal([]byte(s), &r) 6497} 6498 6499type ModifyDBInstanceProjectRequest struct { 6500 *tchttp.BaseRequest 6501 6502 // 实例 ID 数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 6503 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 6504 6505 // 项目的 ID。 6506 NewProjectId *int64 `json:"NewProjectId,omitempty" name:"NewProjectId"` 6507} 6508 6509func (r *ModifyDBInstanceProjectRequest) ToJsonString() string { 6510 b, _ := json.Marshal(r) 6511 return string(b) 6512} 6513 6514// FromJsonString It is highly **NOT** recommended to use this function 6515// because it has no param check, nor strict type check 6516func (r *ModifyDBInstanceProjectRequest) FromJsonString(s string) error { 6517 f := make(map[string]interface{}) 6518 if err := json.Unmarshal([]byte(s), &f); err != nil { 6519 return err 6520 } 6521 delete(f, "InstanceIds") 6522 delete(f, "NewProjectId") 6523 if len(f) > 0 { 6524 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBInstanceProjectRequest has unknown keys!", "") 6525 } 6526 return json.Unmarshal([]byte(s), &r) 6527} 6528 6529type ModifyDBInstanceProjectResponse struct { 6530 *tchttp.BaseResponse 6531 Response *struct { 6532 6533 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6534 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6535 } `json:"Response"` 6536} 6537 6538func (r *ModifyDBInstanceProjectResponse) ToJsonString() string { 6539 b, _ := json.Marshal(r) 6540 return string(b) 6541} 6542 6543// FromJsonString It is highly **NOT** recommended to use this function 6544// because it has no param check, nor strict type check 6545func (r *ModifyDBInstanceProjectResponse) FromJsonString(s string) error { 6546 return json.Unmarshal([]byte(s), &r) 6547} 6548 6549type ModifyDBInstanceSecurityGroupsRequest struct { 6550 *tchttp.BaseRequest 6551 6552 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 6553 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6554 6555 // 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。 6556 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` 6557 6558 // 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True 6559 ForReadonlyInstance *bool `json:"ForReadonlyInstance,omitempty" name:"ForReadonlyInstance"` 6560} 6561 6562func (r *ModifyDBInstanceSecurityGroupsRequest) ToJsonString() string { 6563 b, _ := json.Marshal(r) 6564 return string(b) 6565} 6566 6567// FromJsonString It is highly **NOT** recommended to use this function 6568// because it has no param check, nor strict type check 6569func (r *ModifyDBInstanceSecurityGroupsRequest) FromJsonString(s string) error { 6570 f := make(map[string]interface{}) 6571 if err := json.Unmarshal([]byte(s), &f); err != nil { 6572 return err 6573 } 6574 delete(f, "InstanceId") 6575 delete(f, "SecurityGroupIds") 6576 delete(f, "ForReadonlyInstance") 6577 if len(f) > 0 { 6578 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBInstanceSecurityGroupsRequest has unknown keys!", "") 6579 } 6580 return json.Unmarshal([]byte(s), &r) 6581} 6582 6583type ModifyDBInstanceSecurityGroupsResponse struct { 6584 *tchttp.BaseResponse 6585 Response *struct { 6586 6587 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6588 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6589 } `json:"Response"` 6590} 6591 6592func (r *ModifyDBInstanceSecurityGroupsResponse) ToJsonString() string { 6593 b, _ := json.Marshal(r) 6594 return string(b) 6595} 6596 6597// FromJsonString It is highly **NOT** recommended to use this function 6598// because it has no param check, nor strict type check 6599func (r *ModifyDBInstanceSecurityGroupsResponse) FromJsonString(s string) error { 6600 return json.Unmarshal([]byte(s), &r) 6601} 6602 6603type ModifyDBInstanceVipVportRequest struct { 6604 *tchttp.BaseRequest 6605 6606 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 6607 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6608 6609 // 目标 IP。该参数和 DstPort 参数,两者必传一个。 6610 DstIp *string `json:"DstIp,omitempty" name:"DstIp"` 6611 6612 // 目标端口,支持范围为:[1024-65535]。该参数和 DstIp 参数,两者必传一个。 6613 DstPort *int64 `json:"DstPort,omitempty" name:"DstPort"` 6614 6615 // 私有网络统一 ID。 6616 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 6617 6618 // 子网统一 ID。 6619 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 6620 6621 // 进行基础网络转 VPC 网络和 VPC 网络下的子网变更时,原网络中旧IP的回收时间,单位为小时,取值范围为0-168,默认值为24小时。 6622 ReleaseDuration *int64 `json:"ReleaseDuration,omitempty" name:"ReleaseDuration"` 6623} 6624 6625func (r *ModifyDBInstanceVipVportRequest) ToJsonString() string { 6626 b, _ := json.Marshal(r) 6627 return string(b) 6628} 6629 6630// FromJsonString It is highly **NOT** recommended to use this function 6631// because it has no param check, nor strict type check 6632func (r *ModifyDBInstanceVipVportRequest) FromJsonString(s string) error { 6633 f := make(map[string]interface{}) 6634 if err := json.Unmarshal([]byte(s), &f); err != nil { 6635 return err 6636 } 6637 delete(f, "InstanceId") 6638 delete(f, "DstIp") 6639 delete(f, "DstPort") 6640 delete(f, "UniqVpcId") 6641 delete(f, "UniqSubnetId") 6642 delete(f, "ReleaseDuration") 6643 if len(f) > 0 { 6644 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDBInstanceVipVportRequest has unknown keys!", "") 6645 } 6646 return json.Unmarshal([]byte(s), &r) 6647} 6648 6649type ModifyDBInstanceVipVportResponse struct { 6650 *tchttp.BaseResponse 6651 Response *struct { 6652 6653 // 异步任务ID。(该返回字段目前已废弃) 6654 // 注意:此字段可能返回 null,表示取不到有效值。 6655 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 6656 6657 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6658 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6659 } `json:"Response"` 6660} 6661 6662func (r *ModifyDBInstanceVipVportResponse) ToJsonString() string { 6663 b, _ := json.Marshal(r) 6664 return string(b) 6665} 6666 6667// FromJsonString It is highly **NOT** recommended to use this function 6668// because it has no param check, nor strict type check 6669func (r *ModifyDBInstanceVipVportResponse) FromJsonString(s string) error { 6670 return json.Unmarshal([]byte(s), &r) 6671} 6672 6673type ModifyInstanceParamRequest struct { 6674 *tchttp.BaseRequest 6675 6676 // 实例短 ID 列表。 6677 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 6678 6679 // 要修改的参数列表。每一个元素是 Name 和 CurrentValue 的组合。Name 是参数名,CurrentValue 是要修改成的值。 6680 ParamList []*Parameter `json:"ParamList,omitempty" name:"ParamList"` 6681 6682 // 模板id,ParamList和TemplateId必须至少传其中之一 6683 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 6684 6685 // 执行参数调整任务的方式,默认为 0。支持值包括:0 - 立刻执行,1 - 时间窗执行;当该值为 1 时,每次只能传一个实例(InstanceIds数量为1) 6686 WaitSwitch *int64 `json:"WaitSwitch,omitempty" name:"WaitSwitch"` 6687} 6688 6689func (r *ModifyInstanceParamRequest) ToJsonString() string { 6690 b, _ := json.Marshal(r) 6691 return string(b) 6692} 6693 6694// FromJsonString It is highly **NOT** recommended to use this function 6695// because it has no param check, nor strict type check 6696func (r *ModifyInstanceParamRequest) FromJsonString(s string) error { 6697 f := make(map[string]interface{}) 6698 if err := json.Unmarshal([]byte(s), &f); err != nil { 6699 return err 6700 } 6701 delete(f, "InstanceIds") 6702 delete(f, "ParamList") 6703 delete(f, "TemplateId") 6704 delete(f, "WaitSwitch") 6705 if len(f) > 0 { 6706 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyInstanceParamRequest has unknown keys!", "") 6707 } 6708 return json.Unmarshal([]byte(s), &r) 6709} 6710 6711type ModifyInstanceParamResponse struct { 6712 *tchttp.BaseResponse 6713 Response *struct { 6714 6715 // 异步任务 ID,可用于查询任务进度。 6716 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 6717 6718 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6719 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6720 } `json:"Response"` 6721} 6722 6723func (r *ModifyInstanceParamResponse) ToJsonString() string { 6724 b, _ := json.Marshal(r) 6725 return string(b) 6726} 6727 6728// FromJsonString It is highly **NOT** recommended to use this function 6729// because it has no param check, nor strict type check 6730func (r *ModifyInstanceParamResponse) FromJsonString(s string) error { 6731 return json.Unmarshal([]byte(s), &r) 6732} 6733 6734type ModifyInstanceTagRequest struct { 6735 *tchttp.BaseRequest 6736 6737 // 实例 ID。 6738 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6739 6740 // 要增加或修改的标签。 6741 ReplaceTags []*TagInfo `json:"ReplaceTags,omitempty" name:"ReplaceTags"` 6742 6743 // 要删除的标签。 6744 DeleteTags []*TagInfo `json:"DeleteTags,omitempty" name:"DeleteTags"` 6745} 6746 6747func (r *ModifyInstanceTagRequest) ToJsonString() string { 6748 b, _ := json.Marshal(r) 6749 return string(b) 6750} 6751 6752// FromJsonString It is highly **NOT** recommended to use this function 6753// because it has no param check, nor strict type check 6754func (r *ModifyInstanceTagRequest) FromJsonString(s string) error { 6755 f := make(map[string]interface{}) 6756 if err := json.Unmarshal([]byte(s), &f); err != nil { 6757 return err 6758 } 6759 delete(f, "InstanceId") 6760 delete(f, "ReplaceTags") 6761 delete(f, "DeleteTags") 6762 if len(f) > 0 { 6763 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyInstanceTagRequest has unknown keys!", "") 6764 } 6765 return json.Unmarshal([]byte(s), &r) 6766} 6767 6768type ModifyInstanceTagResponse struct { 6769 *tchttp.BaseResponse 6770 Response *struct { 6771 6772 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6773 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6774 } `json:"Response"` 6775} 6776 6777func (r *ModifyInstanceTagResponse) ToJsonString() string { 6778 b, _ := json.Marshal(r) 6779 return string(b) 6780} 6781 6782// FromJsonString It is highly **NOT** recommended to use this function 6783// because it has no param check, nor strict type check 6784func (r *ModifyInstanceTagResponse) FromJsonString(s string) error { 6785 return json.Unmarshal([]byte(s), &r) 6786} 6787 6788type ModifyNameOrDescByDpIdRequest struct { 6789 *tchttp.BaseRequest 6790 6791 // 置放群组 ID。 6792 DeployGroupId *string `json:"DeployGroupId,omitempty" name:"DeployGroupId"` 6793 6794 // 置放群组名称,最长不能超过60个字符。置放群组名和置放群组描述不能都为空。 6795 DeployGroupName *string `json:"DeployGroupName,omitempty" name:"DeployGroupName"` 6796 6797 // 置放群组描述,最长不能超过200个字符。置放群组名和置放群组描述不能都为空。 6798 Description *string `json:"Description,omitempty" name:"Description"` 6799} 6800 6801func (r *ModifyNameOrDescByDpIdRequest) ToJsonString() string { 6802 b, _ := json.Marshal(r) 6803 return string(b) 6804} 6805 6806// FromJsonString It is highly **NOT** recommended to use this function 6807// because it has no param check, nor strict type check 6808func (r *ModifyNameOrDescByDpIdRequest) FromJsonString(s string) error { 6809 f := make(map[string]interface{}) 6810 if err := json.Unmarshal([]byte(s), &f); err != nil { 6811 return err 6812 } 6813 delete(f, "DeployGroupId") 6814 delete(f, "DeployGroupName") 6815 delete(f, "Description") 6816 if len(f) > 0 { 6817 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNameOrDescByDpIdRequest has unknown keys!", "") 6818 } 6819 return json.Unmarshal([]byte(s), &r) 6820} 6821 6822type ModifyNameOrDescByDpIdResponse struct { 6823 *tchttp.BaseResponse 6824 Response *struct { 6825 6826 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6827 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6828 } `json:"Response"` 6829} 6830 6831func (r *ModifyNameOrDescByDpIdResponse) ToJsonString() string { 6832 b, _ := json.Marshal(r) 6833 return string(b) 6834} 6835 6836// FromJsonString It is highly **NOT** recommended to use this function 6837// because it has no param check, nor strict type check 6838func (r *ModifyNameOrDescByDpIdResponse) FromJsonString(s string) error { 6839 return json.Unmarshal([]byte(s), &r) 6840} 6841 6842type ModifyParamTemplateRequest struct { 6843 *tchttp.BaseRequest 6844 6845 // 模板 ID。 6846 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 6847 6848 // 模板名称。 6849 Name *string `json:"Name,omitempty" name:"Name"` 6850 6851 // 模板描述。 6852 Description *string `json:"Description,omitempty" name:"Description"` 6853 6854 // 参数列表。 6855 ParamList []*Parameter `json:"ParamList,omitempty" name:"ParamList"` 6856} 6857 6858func (r *ModifyParamTemplateRequest) ToJsonString() string { 6859 b, _ := json.Marshal(r) 6860 return string(b) 6861} 6862 6863// FromJsonString It is highly **NOT** recommended to use this function 6864// because it has no param check, nor strict type check 6865func (r *ModifyParamTemplateRequest) FromJsonString(s string) error { 6866 f := make(map[string]interface{}) 6867 if err := json.Unmarshal([]byte(s), &f); err != nil { 6868 return err 6869 } 6870 delete(f, "TemplateId") 6871 delete(f, "Name") 6872 delete(f, "Description") 6873 delete(f, "ParamList") 6874 if len(f) > 0 { 6875 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyParamTemplateRequest has unknown keys!", "") 6876 } 6877 return json.Unmarshal([]byte(s), &r) 6878} 6879 6880type ModifyParamTemplateResponse struct { 6881 *tchttp.BaseResponse 6882 Response *struct { 6883 6884 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6885 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6886 } `json:"Response"` 6887} 6888 6889func (r *ModifyParamTemplateResponse) ToJsonString() string { 6890 b, _ := json.Marshal(r) 6891 return string(b) 6892} 6893 6894// FromJsonString It is highly **NOT** recommended to use this function 6895// because it has no param check, nor strict type check 6896func (r *ModifyParamTemplateResponse) FromJsonString(s string) error { 6897 return json.Unmarshal([]byte(s), &r) 6898} 6899 6900type ModifyRoGroupInfoRequest struct { 6901 *tchttp.BaseRequest 6902 6903 // RO 组的 ID。 6904 RoGroupId *string `json:"RoGroupId,omitempty" name:"RoGroupId"` 6905 6906 // RO 组的详细信息。 6907 RoGroupInfo *RoGroupAttr `json:"RoGroupInfo,omitempty" name:"RoGroupInfo"` 6908 6909 // RO 组内实例的权重。若修改 RO 组的权重模式为用户自定义模式(custom),则必须设置该参数,且需要设置每个 RO 实例的权重值。 6910 RoWeightValues []*RoWeightValue `json:"RoWeightValues,omitempty" name:"RoWeightValues"` 6911 6912 // 是否重新均衡 RO 组内的 RO 实例的负载。支持值包括:1 - 重新均衡负载;0 - 不重新均衡负载。默认值为 0。注意,设置为重新均衡负载时,RO 组内 RO 实例会有一次数据库连接瞬断,请确保应用程序能重连数据库。 6913 IsBalanceRoLoad *int64 `json:"IsBalanceRoLoad,omitempty" name:"IsBalanceRoLoad"` 6914} 6915 6916func (r *ModifyRoGroupInfoRequest) ToJsonString() string { 6917 b, _ := json.Marshal(r) 6918 return string(b) 6919} 6920 6921// FromJsonString It is highly **NOT** recommended to use this function 6922// because it has no param check, nor strict type check 6923func (r *ModifyRoGroupInfoRequest) FromJsonString(s string) error { 6924 f := make(map[string]interface{}) 6925 if err := json.Unmarshal([]byte(s), &f); err != nil { 6926 return err 6927 } 6928 delete(f, "RoGroupId") 6929 delete(f, "RoGroupInfo") 6930 delete(f, "RoWeightValues") 6931 delete(f, "IsBalanceRoLoad") 6932 if len(f) > 0 { 6933 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRoGroupInfoRequest has unknown keys!", "") 6934 } 6935 return json.Unmarshal([]byte(s), &r) 6936} 6937 6938type ModifyRoGroupInfoResponse struct { 6939 *tchttp.BaseResponse 6940 Response *struct { 6941 6942 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6943 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6944 } `json:"Response"` 6945} 6946 6947func (r *ModifyRoGroupInfoResponse) ToJsonString() string { 6948 b, _ := json.Marshal(r) 6949 return string(b) 6950} 6951 6952// FromJsonString It is highly **NOT** recommended to use this function 6953// because it has no param check, nor strict type check 6954func (r *ModifyRoGroupInfoResponse) FromJsonString(s string) error { 6955 return json.Unmarshal([]byte(s), &r) 6956} 6957 6958type ModifyRoReplicationDelayRequest struct { 6959 *tchttp.BaseRequest 6960 6961 // 实例 ID。 6962 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 6963 6964 // 延迟时间(s)。最小值1,最大值259200。 6965 ReplicationDelay *int64 `json:"ReplicationDelay,omitempty" name:"ReplicationDelay"` 6966} 6967 6968func (r *ModifyRoReplicationDelayRequest) ToJsonString() string { 6969 b, _ := json.Marshal(r) 6970 return string(b) 6971} 6972 6973// FromJsonString It is highly **NOT** recommended to use this function 6974// because it has no param check, nor strict type check 6975func (r *ModifyRoReplicationDelayRequest) FromJsonString(s string) error { 6976 f := make(map[string]interface{}) 6977 if err := json.Unmarshal([]byte(s), &f); err != nil { 6978 return err 6979 } 6980 delete(f, "InstanceId") 6981 delete(f, "ReplicationDelay") 6982 if len(f) > 0 { 6983 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRoReplicationDelayRequest has unknown keys!", "") 6984 } 6985 return json.Unmarshal([]byte(s), &r) 6986} 6987 6988type ModifyRoReplicationDelayResponse struct { 6989 *tchttp.BaseResponse 6990 Response *struct { 6991 6992 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6993 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6994 } `json:"Response"` 6995} 6996 6997func (r *ModifyRoReplicationDelayResponse) ToJsonString() string { 6998 b, _ := json.Marshal(r) 6999 return string(b) 7000} 7001 7002// FromJsonString It is highly **NOT** recommended to use this function 7003// because it has no param check, nor strict type check 7004func (r *ModifyRoReplicationDelayResponse) FromJsonString(s string) error { 7005 return json.Unmarshal([]byte(s), &r) 7006} 7007 7008type ModifyRoTypeRequest struct { 7009 *tchttp.BaseRequest 7010 7011 // 实例 ID。 7012 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7013 7014 // 只读实例源类型,取值 NORMAL(普通只读实例)、DELAY_REPLICATION(延迟只读实例)。 7015 SrcRoInstType *string `json:"SrcRoInstType,omitempty" name:"SrcRoInstType"` 7016 7017 // 只读实例目标类型,取值 NORMAL(普通只读实例)、DELAY_REPLICATION(延迟只读实例)。 7018 DstRoInstType *string `json:"DstRoInstType,omitempty" name:"DstRoInstType"` 7019 7020 // 延迟时间(s),将实例修改为延迟只读实例时必传。最小值1,最大值259200。 7021 ReplicationDelay *int64 `json:"ReplicationDelay,omitempty" name:"ReplicationDelay"` 7022} 7023 7024func (r *ModifyRoTypeRequest) ToJsonString() string { 7025 b, _ := json.Marshal(r) 7026 return string(b) 7027} 7028 7029// FromJsonString It is highly **NOT** recommended to use this function 7030// because it has no param check, nor strict type check 7031func (r *ModifyRoTypeRequest) FromJsonString(s string) error { 7032 f := make(map[string]interface{}) 7033 if err := json.Unmarshal([]byte(s), &f); err != nil { 7034 return err 7035 } 7036 delete(f, "InstanceId") 7037 delete(f, "SrcRoInstType") 7038 delete(f, "DstRoInstType") 7039 delete(f, "ReplicationDelay") 7040 if len(f) > 0 { 7041 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRoTypeRequest has unknown keys!", "") 7042 } 7043 return json.Unmarshal([]byte(s), &r) 7044} 7045 7046type ModifyRoTypeResponse struct { 7047 *tchttp.BaseResponse 7048 Response *struct { 7049 7050 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7051 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7052 } `json:"Response"` 7053} 7054 7055func (r *ModifyRoTypeResponse) ToJsonString() string { 7056 b, _ := json.Marshal(r) 7057 return string(b) 7058} 7059 7060// FromJsonString It is highly **NOT** recommended to use this function 7061// because it has no param check, nor strict type check 7062func (r *ModifyRoTypeResponse) FromJsonString(s string) error { 7063 return json.Unmarshal([]byte(s), &r) 7064} 7065 7066type ModifyTimeWindowRequest struct { 7067 *tchttp.BaseRequest 7068 7069 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 7070 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7071 7072 // 修改后的可维护时间段,其中每一个时间段的格式形如:10:00-12:00;起止时间按半个小时对齐;最短半个小时,最长三个小时;最多设置两个时间段;起止时间范围为:[00:00, 24:00]。 7073 TimeRanges []*string `json:"TimeRanges,omitempty" name:"TimeRanges"` 7074 7075 // 指定修改哪一天的客户时间段,可能的取值为:monday,tuesday,wednesday,thursday,friday,saturday,sunday。如果不指定该值或者为空,则默认一周七天都修改。 7076 Weekdays []*string `json:"Weekdays,omitempty" name:"Weekdays"` 7077} 7078 7079func (r *ModifyTimeWindowRequest) ToJsonString() string { 7080 b, _ := json.Marshal(r) 7081 return string(b) 7082} 7083 7084// FromJsonString It is highly **NOT** recommended to use this function 7085// because it has no param check, nor strict type check 7086func (r *ModifyTimeWindowRequest) FromJsonString(s string) error { 7087 f := make(map[string]interface{}) 7088 if err := json.Unmarshal([]byte(s), &f); err != nil { 7089 return err 7090 } 7091 delete(f, "InstanceId") 7092 delete(f, "TimeRanges") 7093 delete(f, "Weekdays") 7094 if len(f) > 0 { 7095 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTimeWindowRequest has unknown keys!", "") 7096 } 7097 return json.Unmarshal([]byte(s), &r) 7098} 7099 7100type ModifyTimeWindowResponse struct { 7101 *tchttp.BaseResponse 7102 Response *struct { 7103 7104 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7105 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7106 } `json:"Response"` 7107} 7108 7109func (r *ModifyTimeWindowResponse) ToJsonString() string { 7110 b, _ := json.Marshal(r) 7111 return string(b) 7112} 7113 7114// FromJsonString It is highly **NOT** recommended to use this function 7115// because it has no param check, nor strict type check 7116func (r *ModifyTimeWindowResponse) FromJsonString(s string) error { 7117 return json.Unmarshal([]byte(s), &r) 7118} 7119 7120type OfflineIsolatedInstancesRequest struct { 7121 *tchttp.BaseRequest 7122 7123 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 7124 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 7125} 7126 7127func (r *OfflineIsolatedInstancesRequest) ToJsonString() string { 7128 b, _ := json.Marshal(r) 7129 return string(b) 7130} 7131 7132// FromJsonString It is highly **NOT** recommended to use this function 7133// because it has no param check, nor strict type check 7134func (r *OfflineIsolatedInstancesRequest) FromJsonString(s string) error { 7135 f := make(map[string]interface{}) 7136 if err := json.Unmarshal([]byte(s), &f); err != nil { 7137 return err 7138 } 7139 delete(f, "InstanceIds") 7140 if len(f) > 0 { 7141 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OfflineIsolatedInstancesRequest has unknown keys!", "") 7142 } 7143 return json.Unmarshal([]byte(s), &r) 7144} 7145 7146type OfflineIsolatedInstancesResponse struct { 7147 *tchttp.BaseResponse 7148 Response *struct { 7149 7150 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7151 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7152 } `json:"Response"` 7153} 7154 7155func (r *OfflineIsolatedInstancesResponse) ToJsonString() string { 7156 b, _ := json.Marshal(r) 7157 return string(b) 7158} 7159 7160// FromJsonString It is highly **NOT** recommended to use this function 7161// because it has no param check, nor strict type check 7162func (r *OfflineIsolatedInstancesResponse) FromJsonString(s string) error { 7163 return json.Unmarshal([]byte(s), &r) 7164} 7165 7166type OpenDBInstanceGTIDRequest struct { 7167 *tchttp.BaseRequest 7168 7169 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 7170 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7171} 7172 7173func (r *OpenDBInstanceGTIDRequest) ToJsonString() string { 7174 b, _ := json.Marshal(r) 7175 return string(b) 7176} 7177 7178// FromJsonString It is highly **NOT** recommended to use this function 7179// because it has no param check, nor strict type check 7180func (r *OpenDBInstanceGTIDRequest) FromJsonString(s string) error { 7181 f := make(map[string]interface{}) 7182 if err := json.Unmarshal([]byte(s), &f); err != nil { 7183 return err 7184 } 7185 delete(f, "InstanceId") 7186 if len(f) > 0 { 7187 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OpenDBInstanceGTIDRequest has unknown keys!", "") 7188 } 7189 return json.Unmarshal([]byte(s), &r) 7190} 7191 7192type OpenDBInstanceGTIDResponse struct { 7193 *tchttp.BaseResponse 7194 Response *struct { 7195 7196 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 7197 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 7198 7199 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7200 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7201 } `json:"Response"` 7202} 7203 7204func (r *OpenDBInstanceGTIDResponse) ToJsonString() string { 7205 b, _ := json.Marshal(r) 7206 return string(b) 7207} 7208 7209// FromJsonString It is highly **NOT** recommended to use this function 7210// because it has no param check, nor strict type check 7211func (r *OpenDBInstanceGTIDResponse) FromJsonString(s string) error { 7212 return json.Unmarshal([]byte(s), &r) 7213} 7214 7215type OpenWanServiceRequest struct { 7216 *tchttp.BaseRequest 7217 7218 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 7219 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7220} 7221 7222func (r *OpenWanServiceRequest) ToJsonString() string { 7223 b, _ := json.Marshal(r) 7224 return string(b) 7225} 7226 7227// FromJsonString It is highly **NOT** recommended to use this function 7228// because it has no param check, nor strict type check 7229func (r *OpenWanServiceRequest) FromJsonString(s string) error { 7230 f := make(map[string]interface{}) 7231 if err := json.Unmarshal([]byte(s), &f); err != nil { 7232 return err 7233 } 7234 delete(f, "InstanceId") 7235 if len(f) > 0 { 7236 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OpenWanServiceRequest has unknown keys!", "") 7237 } 7238 return json.Unmarshal([]byte(s), &r) 7239} 7240 7241type OpenWanServiceResponse struct { 7242 *tchttp.BaseResponse 7243 Response *struct { 7244 7245 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 7246 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 7247 7248 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7249 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7250 } `json:"Response"` 7251} 7252 7253func (r *OpenWanServiceResponse) ToJsonString() string { 7254 b, _ := json.Marshal(r) 7255 return string(b) 7256} 7257 7258// FromJsonString It is highly **NOT** recommended to use this function 7259// because it has no param check, nor strict type check 7260func (r *OpenWanServiceResponse) FromJsonString(s string) error { 7261 return json.Unmarshal([]byte(s), &r) 7262} 7263 7264type Outbound struct { 7265 7266 // 策略,ACCEPT 或者 DROP 7267 Action *string `json:"Action,omitempty" name:"Action"` 7268 7269 // 目的 IP 或 IP 段,例如172.16.0.0/12 7270 CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"` 7271 7272 // 端口或者端口范围 7273 PortRange *string `json:"PortRange,omitempty" name:"PortRange"` 7274 7275 // 网络协议,支持 UDP、TCP等 7276 IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` 7277 7278 // 规则限定的方向,进站规则为 OUTPUT 7279 Dir *string `json:"Dir,omitempty" name:"Dir"` 7280 7281 // 规则描述 7282 Desc *string `json:"Desc,omitempty" name:"Desc"` 7283} 7284 7285type ParamInfo struct { 7286 7287 // 参数名 7288 Name *string `json:"Name,omitempty" name:"Name"` 7289 7290 // 参数值 7291 Value *string `json:"Value,omitempty" name:"Value"` 7292} 7293 7294type ParamRecord struct { 7295 7296 // 实例ID 7297 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7298 7299 // 参数名称 7300 ParamName *string `json:"ParamName,omitempty" name:"ParamName"` 7301 7302 // 参数修改前的值 7303 OldValue *string `json:"OldValue,omitempty" name:"OldValue"` 7304 7305 // 参数修改后的值 7306 NewValue *string `json:"NewValue,omitempty" name:"NewValue"` 7307 7308 // 参数是否修改成功 7309 IsSucess *bool `json:"IsSucess,omitempty" name:"IsSucess"` 7310 7311 // 修改时间 7312 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` 7313} 7314 7315type ParamTemplateInfo struct { 7316 7317 // 参数模板ID 7318 TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"` 7319 7320 // 参数模板名称 7321 Name *string `json:"Name,omitempty" name:"Name"` 7322 7323 // 参数模板描述 7324 Description *string `json:"Description,omitempty" name:"Description"` 7325 7326 // 实例引擎版本 7327 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 7328} 7329 7330type Parameter struct { 7331 7332 // 参数名称 7333 Name *string `json:"Name,omitempty" name:"Name"` 7334 7335 // 参数值 7336 CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` 7337} 7338 7339type ParameterDetail struct { 7340 7341 // 参数名称 7342 Name *string `json:"Name,omitempty" name:"Name"` 7343 7344 // 参数类型 7345 ParamType *string `json:"ParamType,omitempty" name:"ParamType"` 7346 7347 // 参数默认值 7348 Default *string `json:"Default,omitempty" name:"Default"` 7349 7350 // 参数描述 7351 Description *string `json:"Description,omitempty" name:"Description"` 7352 7353 // 参数当前值 7354 CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` 7355 7356 // 修改参数后,是否需要重启数据库以使参数生效。可能的值包括:0-不需要重启;1-需要重启 7357 NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"` 7358 7359 // 参数允许的最大值 7360 Max *int64 `json:"Max,omitempty" name:"Max"` 7361 7362 // 参数允许的最小值 7363 Min *int64 `json:"Min,omitempty" name:"Min"` 7364 7365 // 参数的可选枚举值。如果为非枚举参数,则为空 7366 EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"` 7367} 7368 7369type RegionSellConf struct { 7370 7371 // 地域中文名称 7372 RegionName *string `json:"RegionName,omitempty" name:"RegionName"` 7373 7374 // 所属大区 7375 Area *string `json:"Area,omitempty" name:"Area"` 7376 7377 // 是否为默认地域 7378 IsDefaultRegion *int64 `json:"IsDefaultRegion,omitempty" name:"IsDefaultRegion"` 7379 7380 // 地域名称 7381 Region *string `json:"Region,omitempty" name:"Region"` 7382 7383 // 可用区售卖配置 7384 ZonesConf []*ZoneSellConf `json:"ZonesConf,omitempty" name:"ZonesConf"` 7385} 7386 7387type ReleaseIsolatedDBInstancesRequest struct { 7388 *tchttp.BaseRequest 7389 7390 // 实例 ID 数组,单个实例 ID 格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 7391 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 7392} 7393 7394func (r *ReleaseIsolatedDBInstancesRequest) ToJsonString() string { 7395 b, _ := json.Marshal(r) 7396 return string(b) 7397} 7398 7399// FromJsonString It is highly **NOT** recommended to use this function 7400// because it has no param check, nor strict type check 7401func (r *ReleaseIsolatedDBInstancesRequest) FromJsonString(s string) error { 7402 f := make(map[string]interface{}) 7403 if err := json.Unmarshal([]byte(s), &f); err != nil { 7404 return err 7405 } 7406 delete(f, "InstanceIds") 7407 if len(f) > 0 { 7408 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ReleaseIsolatedDBInstancesRequest has unknown keys!", "") 7409 } 7410 return json.Unmarshal([]byte(s), &r) 7411} 7412 7413type ReleaseIsolatedDBInstancesResponse struct { 7414 *tchttp.BaseResponse 7415 Response *struct { 7416 7417 // 解隔离操作的结果集。 7418 Items []*ReleaseResult `json:"Items,omitempty" name:"Items"` 7419 7420 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7421 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7422 } `json:"Response"` 7423} 7424 7425func (r *ReleaseIsolatedDBInstancesResponse) ToJsonString() string { 7426 b, _ := json.Marshal(r) 7427 return string(b) 7428} 7429 7430// FromJsonString It is highly **NOT** recommended to use this function 7431// because it has no param check, nor strict type check 7432func (r *ReleaseIsolatedDBInstancesResponse) FromJsonString(s string) error { 7433 return json.Unmarshal([]byte(s), &r) 7434} 7435 7436type ReleaseResult struct { 7437 7438 // 实例 ID。 7439 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7440 7441 // 实例解隔离操作的结果值。返回值为0表示成功。 7442 Code *int64 `json:"Code,omitempty" name:"Code"` 7443 7444 // 实例解隔离操作的错误信息。 7445 Message *string `json:"Message,omitempty" name:"Message"` 7446} 7447 7448type RenewDBInstanceRequest struct { 7449 *tchttp.BaseRequest 7450 7451 // 待续费的实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872)。 7452 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7453 7454 // 续费时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。 7455 TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"` 7456 7457 // 如果需要将按量计费实例续费为包年包月的实例,该入参的值需要指定为 "PREPAID" 。 7458 ModifyPayType *string `json:"ModifyPayType,omitempty" name:"ModifyPayType"` 7459} 7460 7461func (r *RenewDBInstanceRequest) ToJsonString() string { 7462 b, _ := json.Marshal(r) 7463 return string(b) 7464} 7465 7466// FromJsonString It is highly **NOT** recommended to use this function 7467// because it has no param check, nor strict type check 7468func (r *RenewDBInstanceRequest) FromJsonString(s string) error { 7469 f := make(map[string]interface{}) 7470 if err := json.Unmarshal([]byte(s), &f); err != nil { 7471 return err 7472 } 7473 delete(f, "InstanceId") 7474 delete(f, "TimeSpan") 7475 delete(f, "ModifyPayType") 7476 if len(f) > 0 { 7477 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RenewDBInstanceRequest has unknown keys!", "") 7478 } 7479 return json.Unmarshal([]byte(s), &r) 7480} 7481 7482type RenewDBInstanceResponse struct { 7483 *tchttp.BaseResponse 7484 Response *struct { 7485 7486 // 订单 ID。 7487 DealId *string `json:"DealId,omitempty" name:"DealId"` 7488 7489 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7490 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7491 } `json:"Response"` 7492} 7493 7494func (r *RenewDBInstanceResponse) ToJsonString() string { 7495 b, _ := json.Marshal(r) 7496 return string(b) 7497} 7498 7499// FromJsonString It is highly **NOT** recommended to use this function 7500// because it has no param check, nor strict type check 7501func (r *RenewDBInstanceResponse) FromJsonString(s string) error { 7502 return json.Unmarshal([]byte(s), &r) 7503} 7504 7505type RestartDBInstancesRequest struct { 7506 *tchttp.BaseRequest 7507 7508 // 实例 ID 数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 7509 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 7510} 7511 7512func (r *RestartDBInstancesRequest) ToJsonString() string { 7513 b, _ := json.Marshal(r) 7514 return string(b) 7515} 7516 7517// FromJsonString It is highly **NOT** recommended to use this function 7518// because it has no param check, nor strict type check 7519func (r *RestartDBInstancesRequest) FromJsonString(s string) error { 7520 f := make(map[string]interface{}) 7521 if err := json.Unmarshal([]byte(s), &f); err != nil { 7522 return err 7523 } 7524 delete(f, "InstanceIds") 7525 if len(f) > 0 { 7526 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RestartDBInstancesRequest has unknown keys!", "") 7527 } 7528 return json.Unmarshal([]byte(s), &r) 7529} 7530 7531type RestartDBInstancesResponse struct { 7532 *tchttp.BaseResponse 7533 Response *struct { 7534 7535 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 7536 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 7537 7538 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7539 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7540 } `json:"Response"` 7541} 7542 7543func (r *RestartDBInstancesResponse) ToJsonString() string { 7544 b, _ := json.Marshal(r) 7545 return string(b) 7546} 7547 7548// FromJsonString It is highly **NOT** recommended to use this function 7549// because it has no param check, nor strict type check 7550func (r *RestartDBInstancesResponse) FromJsonString(s string) error { 7551 return json.Unmarshal([]byte(s), &r) 7552} 7553 7554type RoGroup struct { 7555 7556 // 只读组模式,可选值为:alone-系统自动分配只读组;allinone-新建只读组;join-使用现有只读组。 7557 RoGroupMode *string `json:"RoGroupMode,omitempty" name:"RoGroupMode"` 7558 7559 // 只读组 ID。 7560 RoGroupId *string `json:"RoGroupId,omitempty" name:"RoGroupId"` 7561 7562 // 只读组名称。 7563 RoGroupName *string `json:"RoGroupName,omitempty" name:"RoGroupName"` 7564 7565 // 是否启用延迟超限剔除功能,启用该功能后,只读实例与主实例的延迟超过延迟阈值,只读实例将被隔离。可选值:1-启用;0-不启用。 7566 RoOfflineDelay *int64 `json:"RoOfflineDelay,omitempty" name:"RoOfflineDelay"` 7567 7568 // 延迟阈值。 7569 RoMaxDelayTime *int64 `json:"RoMaxDelayTime,omitempty" name:"RoMaxDelayTime"` 7570 7571 // 最少实例保留个数,若购买只读实例数量小于设置数量将不做剔除。 7572 MinRoInGroup *int64 `json:"MinRoInGroup,omitempty" name:"MinRoInGroup"` 7573 7574 // 读写权重分配模式,可选值:system-系统自动分配;custom-自定义。 7575 WeightMode *string `json:"WeightMode,omitempty" name:"WeightMode"` 7576 7577 // 权重值。 7578 Weight *int64 `json:"Weight,omitempty" name:"Weight"` 7579 7580 // 只读组中的只读实例详情。 7581 RoInstances []*RoInstanceInfo `json:"RoInstances,omitempty" name:"RoInstances"` 7582 7583 // 只读组的内网 IP。 7584 Vip *string `json:"Vip,omitempty" name:"Vip"` 7585 7586 // 只读组的内网端口号。 7587 Vport *int64 `json:"Vport,omitempty" name:"Vport"` 7588 7589 // 私有网络 ID。 7590 // 注意:此字段可能返回 null,表示取不到有效值。 7591 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 7592 7593 // 子网 ID。 7594 // 注意:此字段可能返回 null,表示取不到有效值。 7595 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 7596 7597 // 只读组所在的地域。 7598 // 注意:此字段可能返回 null,表示取不到有效值。 7599 RoGroupRegion *string `json:"RoGroupRegion,omitempty" name:"RoGroupRegion"` 7600 7601 // 只读组所在的可用区。 7602 // 注意:此字段可能返回 null,表示取不到有效值。 7603 RoGroupZone *string `json:"RoGroupZone,omitempty" name:"RoGroupZone"` 7604} 7605 7606type RoGroupAttr struct { 7607 7608 // RO 组名称。 7609 RoGroupName *string `json:"RoGroupName,omitempty" name:"RoGroupName"` 7610 7611 // RO 实例最大延迟阈值。单位为秒,最小值为 1。注意,RO 组必须设置了开启实例延迟剔除策略,该值才有效。 7612 RoMaxDelayTime *int64 `json:"RoMaxDelayTime,omitempty" name:"RoMaxDelayTime"` 7613 7614 // 是否开启实例延迟剔除。支持的值包括:1 - 开启;0 - 不开启。注意,若设置开启实例延迟剔除,则必须设置延迟阈值(RoMaxDelayTime)参数。 7615 RoOfflineDelay *int64 `json:"RoOfflineDelay,omitempty" name:"RoOfflineDelay"` 7616 7617 // 最少保留实例数。可设置为小于或等于该 RO 组下 RO 实例个数的任意值。注意,若设置值大于 RO 实例数量将不做剔除;若设置为 0,所有实例延迟超限都会被剔除。 7618 MinRoInGroup *int64 `json:"MinRoInGroup,omitempty" name:"MinRoInGroup"` 7619 7620 // 权重模式。支持值包括:"system" - 系统自动分配; "custom" - 用户自定义设置。注意,若设置 "custom" 模式,则必须设置 RO 实例权重配置(RoWeightValues)参数。 7621 WeightMode *string `json:"WeightMode,omitempty" name:"WeightMode"` 7622} 7623 7624type RoInstanceInfo struct { 7625 7626 // RO组对应的主实例的ID 7627 MasterInstanceId *string `json:"MasterInstanceId,omitempty" name:"MasterInstanceId"` 7628 7629 // RO实例在RO组内的状态,可能的值:online-在线,offline-下线 7630 RoStatus *string `json:"RoStatus,omitempty" name:"RoStatus"` 7631 7632 // RO实例在RO组内上一次下线的时间 7633 OfflineTime *string `json:"OfflineTime,omitempty" name:"OfflineTime"` 7634 7635 // RO实例在RO组内的权重 7636 Weight *int64 `json:"Weight,omitempty" name:"Weight"` 7637 7638 // RO实例所在区域名称,如ap-shanghai 7639 Region *string `json:"Region,omitempty" name:"Region"` 7640 7641 // RO可用区的正式名称,如ap-shanghai-1 7642 Zone *string `json:"Zone,omitempty" name:"Zone"` 7643 7644 // RO实例ID,格式如:cdbro-c1nl9rpv 7645 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7646 7647 // RO实例状态,可能返回值:0-创建中,1-运行中,4-删除中 7648 Status *int64 `json:"Status,omitempty" name:"Status"` 7649 7650 // 实例类型,可能返回值:1-主实例,2-灾备实例,3-只读实例 7651 InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` 7652 7653 // RO实例名称 7654 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 7655 7656 // 按量计费状态,可能的取值:1-正常,2-欠费 7657 HourFeeStatus *int64 `json:"HourFeeStatus,omitempty" name:"HourFeeStatus"` 7658 7659 // RO实例任务状态,可能返回值:<br>0-没有任务<br>1-升级中<br>2-数据导入中<br>3-开放Slave中<br>4-外网访问开通中<br>5-批量操作执行中<br>6-回档中<br>7-外网访问关闭中<br>8-密码修改中<br>9-实例名修改中<br>10-重启中<br>12-自建迁移中<br>13-删除库表中<br>14-灾备实例创建同步中 7660 TaskStatus *int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` 7661 7662 // RO实例内存大小,单位:MB 7663 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 7664 7665 // RO实例硬盘大小,单位:GB 7666 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 7667 7668 // 每次查询数量 7669 Qps *int64 `json:"Qps,omitempty" name:"Qps"` 7670 7671 // RO实例的内网IP地址 7672 Vip *string `json:"Vip,omitempty" name:"Vip"` 7673 7674 // RO实例访问端口 7675 Vport *int64 `json:"Vport,omitempty" name:"Vport"` 7676 7677 // RO实例所在私有网络ID 7678 VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` 7679 7680 // RO实例所在私有网络子网ID 7681 SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` 7682 7683 // RO实例规格描述,目前可取值 CUSTOM 7684 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 7685 7686 // RO实例数据库引擎版本,可能返回值:5.1、5.5、5.6、5.7、8.0 7687 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 7688 7689 // RO实例到期时间,时间格式:yyyy-mm-dd hh:mm:ss,如实例为按量计费模式,则此字段值为0000-00-00 00:00:00 7690 DeadlineTime *string `json:"DeadlineTime,omitempty" name:"DeadlineTime"` 7691 7692 // RO实例计费类型,可能返回值:0-包年包月,1-按量计费,2-后付费月结 7693 PayType *int64 `json:"PayType,omitempty" name:"PayType"` 7694} 7695 7696type RoVipInfo struct { 7697 7698 // 只读vip状态 7699 RoVipStatus *int64 `json:"RoVipStatus,omitempty" name:"RoVipStatus"` 7700 7701 // 只读vip的子网 7702 RoSubnetId *int64 `json:"RoSubnetId,omitempty" name:"RoSubnetId"` 7703 7704 // 只读vip的私有网络 7705 RoVpcId *int64 `json:"RoVpcId,omitempty" name:"RoVpcId"` 7706 7707 // 只读vip的端口号 7708 RoVport *int64 `json:"RoVport,omitempty" name:"RoVport"` 7709 7710 // 只读vip 7711 RoVip *string `json:"RoVip,omitempty" name:"RoVip"` 7712} 7713 7714type RoWeightValue struct { 7715 7716 // RO 实例 ID。 7717 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7718 7719 // 权重值。取值范围为 [0, 100]。 7720 Weight *int64 `json:"Weight,omitempty" name:"Weight"` 7721} 7722 7723type RollbackDBName struct { 7724 7725 // 回档前的原数据库名 7726 // 注意:此字段可能返回 null,表示取不到有效值。 7727 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` 7728 7729 // 回档后的新数据库名 7730 // 注意:此字段可能返回 null,表示取不到有效值。 7731 NewDatabaseName *string `json:"NewDatabaseName,omitempty" name:"NewDatabaseName"` 7732} 7733 7734type RollbackInstancesInfo struct { 7735 7736 // 云数据库实例ID 7737 // 注意:此字段可能返回 null,表示取不到有效值。 7738 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 7739 7740 // 回档策略。可选值为:table、db、full;默认值为full。table - 极速回档模式,仅导入所选中表级别的备份和binlog,如有跨表操作,且关联表未被同时选中,将会导致回档失败,该模式下参数Databases必须为空;db - 快速模式,仅导入所选中库级别的备份和binlog,如有跨库操作,且关联库未被同时选中,将会导致回档失败;full - 普通回档模式,将导入整个实例的备份和binlog,速度较慢。 7741 Strategy *string `json:"Strategy,omitempty" name:"Strategy"` 7742 7743 // 数据库回档时间,时间格式为:yyyy-mm-dd hh:mm:ss 7744 RollbackTime *string `json:"RollbackTime,omitempty" name:"RollbackTime"` 7745 7746 // 待回档的数据库信息,表示整库回档 7747 // 注意:此字段可能返回 null,表示取不到有效值。 7748 Databases []*RollbackDBName `json:"Databases,omitempty" name:"Databases"` 7749 7750 // 待回档的数据库表信息,表示按表回档 7751 // 注意:此字段可能返回 null,表示取不到有效值。 7752 Tables []*RollbackTables `json:"Tables,omitempty" name:"Tables"` 7753} 7754 7755type RollbackTableName struct { 7756 7757 // 回档前的原数据库表名 7758 // 注意:此字段可能返回 null,表示取不到有效值。 7759 TableName *string `json:"TableName,omitempty" name:"TableName"` 7760 7761 // 回档后的新数据库表名 7762 // 注意:此字段可能返回 null,表示取不到有效值。 7763 NewTableName *string `json:"NewTableName,omitempty" name:"NewTableName"` 7764} 7765 7766type RollbackTables struct { 7767 7768 // 数据库名 7769 // 注意:此字段可能返回 null,表示取不到有效值。 7770 Database *string `json:"Database,omitempty" name:"Database"` 7771 7772 // 数据库表详情 7773 // 注意:此字段可能返回 null,表示取不到有效值。 7774 Table []*RollbackTableName `json:"Table,omitempty" name:"Table"` 7775} 7776 7777type RollbackTask struct { 7778 7779 // 任务执行信息描述。 7780 Info *string `json:"Info,omitempty" name:"Info"` 7781 7782 // 任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。 7783 Status *string `json:"Status,omitempty" name:"Status"` 7784 7785 // 任务执行进度。取值范围为[0, 100]。 7786 Progress *int64 `json:"Progress,omitempty" name:"Progress"` 7787 7788 // 任务开始时间。 7789 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 7790 7791 // 任务结束时间。 7792 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 7793 7794 // 回档任务详情。 7795 // 注意:此字段可能返回 null,表示取不到有效值。 7796 Detail []*RollbackInstancesInfo `json:"Detail,omitempty" name:"Detail"` 7797} 7798 7799type RollbackTimeRange struct { 7800 7801 // 实例可回档开始时间,时间格式:2016-10-29 01:06:04 7802 Begin *string `json:"Begin,omitempty" name:"Begin"` 7803 7804 // 实例可回档结束时间,时间格式:2016-11-02 11:44:47 7805 End *string `json:"End,omitempty" name:"End"` 7806} 7807 7808type SecurityGroup struct { 7809 7810 // 项目ID 7811 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 7812 7813 // 创建时间,时间格式:yyyy-mm-dd hh:mm:ss 7814 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 7815 7816 // 入站规则 7817 Inbound []*Inbound `json:"Inbound,omitempty" name:"Inbound"` 7818 7819 // 出站规则 7820 Outbound []*Outbound `json:"Outbound,omitempty" name:"Outbound"` 7821 7822 // 安全组ID 7823 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 7824 7825 // 安全组名称 7826 SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"` 7827 7828 // 安全组备注 7829 SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"` 7830} 7831 7832type SellConfig struct { 7833 7834 // 设备类型(废弃) 7835 Device *string `json:"Device,omitempty" name:"Device"` 7836 7837 // 售卖规格描述(废弃) 7838 Type *string `json:"Type,omitempty" name:"Type"` 7839 7840 // 实例类型(废弃) 7841 CdbType *string `json:"CdbType,omitempty" name:"CdbType"` 7842 7843 // 内存大小,单位为MB 7844 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 7845 7846 // CPU核心数 7847 Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` 7848 7849 // 磁盘最小规格,单位为GB 7850 VolumeMin *int64 `json:"VolumeMin,omitempty" name:"VolumeMin"` 7851 7852 // 磁盘最大规格,单位为GB 7853 VolumeMax *int64 `json:"VolumeMax,omitempty" name:"VolumeMax"` 7854 7855 // 磁盘步长,单位为GB 7856 VolumeStep *int64 `json:"VolumeStep,omitempty" name:"VolumeStep"` 7857 7858 // 链接数 7859 Connection *int64 `json:"Connection,omitempty" name:"Connection"` 7860 7861 // 每秒查询数量 7862 Qps *int64 `json:"Qps,omitempty" name:"Qps"` 7863 7864 // 每秒IO数量 7865 Iops *int64 `json:"Iops,omitempty" name:"Iops"` 7866 7867 // 应用场景描述 7868 Info *string `json:"Info,omitempty" name:"Info"` 7869 7870 // 状态值,0 表示该规格对外售卖 7871 Status *int64 `json:"Status,omitempty" name:"Status"` 7872 7873 // 标签值(废弃) 7874 Tag *int64 `json:"Tag,omitempty" name:"Tag"` 7875 7876 // 实例类型,可能的取值范围有:UNIVERSAL (通用型), EXCLUSIVE (独享型), BASIC (基础型) 7877 // 注意:此字段可能返回 null,表示取不到有效值。 7878 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 7879 7880 // 实例类型描述,可能的取值范围有:通用型, 独享型, 基础型 7881 // 注意:此字段可能返回 null,表示取不到有效值。 7882 DeviceTypeName *string `json:"DeviceTypeName,omitempty" name:"DeviceTypeName"` 7883} 7884 7885type SellType struct { 7886 7887 // 售卖实例名称 7888 TypeName *string `json:"TypeName,omitempty" name:"TypeName"` 7889 7890 // 内核版本号 7891 EngineVersion []*string `json:"EngineVersion,omitempty" name:"EngineVersion"` 7892 7893 // 售卖规格详细配置 7894 Configs []*SellConfig `json:"Configs,omitempty" name:"Configs"` 7895} 7896 7897type SlaveConfig struct { 7898 7899 // 从库复制方式,可能的返回值:aysnc-异步,semisync-半同步 7900 ReplicationMode *string `json:"ReplicationMode,omitempty" name:"ReplicationMode"` 7901 7902 // 从库可用区的正式名称,如ap-shanghai-1 7903 Zone *string `json:"Zone,omitempty" name:"Zone"` 7904} 7905 7906type SlaveInfo struct { 7907 7908 // 第一备机信息 7909 First *SlaveInstanceInfo `json:"First,omitempty" name:"First"` 7910 7911 // 第二备机信息 7912 // 注意:此字段可能返回 null,表示取不到有效值。 7913 Second *SlaveInstanceInfo `json:"Second,omitempty" name:"Second"` 7914} 7915 7916type SlaveInstanceInfo struct { 7917 7918 // 端口号 7919 Vport *int64 `json:"Vport,omitempty" name:"Vport"` 7920 7921 // 地域信息 7922 Region *string `json:"Region,omitempty" name:"Region"` 7923 7924 // 虚拟 IP 信息 7925 Vip *string `json:"Vip,omitempty" name:"Vip"` 7926 7927 // 可用区信息 7928 Zone *string `json:"Zone,omitempty" name:"Zone"` 7929} 7930 7931type SlowLogInfo struct { 7932 7933 // 备份文件名 7934 Name *string `json:"Name,omitempty" name:"Name"` 7935 7936 // 备份文件大小,单位:Byte 7937 Size *int64 `json:"Size,omitempty" name:"Size"` 7938 7939 // 备份快照时间,时间格式:2016-03-17 02:10:37 7940 Date *string `json:"Date,omitempty" name:"Date"` 7941 7942 // 内网下载地址 7943 IntranetUrl *string `json:"IntranetUrl,omitempty" name:"IntranetUrl"` 7944 7945 // 外网下载地址 7946 InternetUrl *string `json:"InternetUrl,omitempty" name:"InternetUrl"` 7947 7948 // 日志具体类型,可能的值:slowlog - 慢日志 7949 Type *string `json:"Type,omitempty" name:"Type"` 7950} 7951 7952type SlowLogItem struct { 7953 7954 // Sql的执行时间。 7955 // 注意:此字段可能返回 null,表示取不到有效值。 7956 Timestamp *uint64 `json:"Timestamp,omitempty" name:"Timestamp"` 7957 7958 // Sql的执行时长。 7959 // 注意:此字段可能返回 null,表示取不到有效值。 7960 QueryTime *float64 `json:"QueryTime,omitempty" name:"QueryTime"` 7961 7962 // Sql语句。 7963 // 注意:此字段可能返回 null,表示取不到有效值。 7964 SqlText *string `json:"SqlText,omitempty" name:"SqlText"` 7965 7966 // 客户端地址。 7967 // 注意:此字段可能返回 null,表示取不到有效值。 7968 UserHost *string `json:"UserHost,omitempty" name:"UserHost"` 7969 7970 // 用户名。 7971 // 注意:此字段可能返回 null,表示取不到有效值。 7972 UserName *string `json:"UserName,omitempty" name:"UserName"` 7973 7974 // 数据库名。 7975 // 注意:此字段可能返回 null,表示取不到有效值。 7976 Database *string `json:"Database,omitempty" name:"Database"` 7977 7978 // 锁时长。 7979 // 注意:此字段可能返回 null,表示取不到有效值。 7980 LockTime *float64 `json:"LockTime,omitempty" name:"LockTime"` 7981 7982 // 扫描行数。 7983 // 注意:此字段可能返回 null,表示取不到有效值。 7984 RowsExamined *int64 `json:"RowsExamined,omitempty" name:"RowsExamined"` 7985 7986 // 结果集行数。 7987 // 注意:此字段可能返回 null,表示取不到有效值。 7988 RowsSent *int64 `json:"RowsSent,omitempty" name:"RowsSent"` 7989 7990 // Sql模板。 7991 // 注意:此字段可能返回 null,表示取不到有效值。 7992 SqlTemplate *string `json:"SqlTemplate,omitempty" name:"SqlTemplate"` 7993 7994 // Sql语句的md5。 7995 // 注意:此字段可能返回 null,表示取不到有效值。 7996 Md5 *string `json:"Md5,omitempty" name:"Md5"` 7997} 7998 7999type SqlFileInfo struct { 8000 8001 // 上传时间 8002 UploadTime *string `json:"UploadTime,omitempty" name:"UploadTime"` 8003 8004 // 上传进度 8005 UploadInfo *UploadInfo `json:"UploadInfo,omitempty" name:"UploadInfo"` 8006 8007 // 文件名 8008 FileName *string `json:"FileName,omitempty" name:"FileName"` 8009 8010 // 文件大小,单位为Bytes 8011 FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"` 8012 8013 // 上传是否完成标志,可选值:0 - 未完成,1 - 已完成 8014 IsUploadFinished *int64 `json:"IsUploadFinished,omitempty" name:"IsUploadFinished"` 8015 8016 // 文件ID 8017 FileId *string `json:"FileId,omitempty" name:"FileId"` 8018} 8019 8020type StartBatchRollbackRequest struct { 8021 *tchttp.BaseRequest 8022 8023 // 用于回档的实例详情信息。 8024 Instances []*RollbackInstancesInfo `json:"Instances,omitempty" name:"Instances"` 8025} 8026 8027func (r *StartBatchRollbackRequest) ToJsonString() string { 8028 b, _ := json.Marshal(r) 8029 return string(b) 8030} 8031 8032// FromJsonString It is highly **NOT** recommended to use this function 8033// because it has no param check, nor strict type check 8034func (r *StartBatchRollbackRequest) FromJsonString(s string) error { 8035 f := make(map[string]interface{}) 8036 if err := json.Unmarshal([]byte(s), &f); err != nil { 8037 return err 8038 } 8039 delete(f, "Instances") 8040 if len(f) > 0 { 8041 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StartBatchRollbackRequest has unknown keys!", "") 8042 } 8043 return json.Unmarshal([]byte(s), &r) 8044} 8045 8046type StartBatchRollbackResponse struct { 8047 *tchttp.BaseResponse 8048 Response *struct { 8049 8050 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 8051 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8052 8053 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8054 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8055 } `json:"Response"` 8056} 8057 8058func (r *StartBatchRollbackResponse) ToJsonString() string { 8059 b, _ := json.Marshal(r) 8060 return string(b) 8061} 8062 8063// FromJsonString It is highly **NOT** recommended to use this function 8064// because it has no param check, nor strict type check 8065func (r *StartBatchRollbackResponse) FromJsonString(s string) error { 8066 return json.Unmarshal([]byte(s), &r) 8067} 8068 8069type StartDelayReplicationRequest struct { 8070 *tchttp.BaseRequest 8071 8072 // 实例 ID。 8073 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8074 8075 // 延迟复制类型。可选值 DEFAULT(按照延迟复制时间进行复制)、GTID(回放到指定GTID)、DUE_TIME(回放到指定时间点)。 8076 DelayReplicationType *string `json:"DelayReplicationType,omitempty" name:"DelayReplicationType"` 8077 8078 // 指定时间点,默认为0,最大值不能超过当前时间。 8079 DueTime *int64 `json:"DueTime,omitempty" name:"DueTime"` 8080 8081 // 指定GITD。回放到指定GTID时必传。 8082 Gtid *string `json:"Gtid,omitempty" name:"Gtid"` 8083} 8084 8085func (r *StartDelayReplicationRequest) ToJsonString() string { 8086 b, _ := json.Marshal(r) 8087 return string(b) 8088} 8089 8090// FromJsonString It is highly **NOT** recommended to use this function 8091// because it has no param check, nor strict type check 8092func (r *StartDelayReplicationRequest) FromJsonString(s string) error { 8093 f := make(map[string]interface{}) 8094 if err := json.Unmarshal([]byte(s), &f); err != nil { 8095 return err 8096 } 8097 delete(f, "InstanceId") 8098 delete(f, "DelayReplicationType") 8099 delete(f, "DueTime") 8100 delete(f, "Gtid") 8101 if len(f) > 0 { 8102 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StartDelayReplicationRequest has unknown keys!", "") 8103 } 8104 return json.Unmarshal([]byte(s), &r) 8105} 8106 8107type StartDelayReplicationResponse struct { 8108 *tchttp.BaseResponse 8109 Response *struct { 8110 8111 // 延迟复制任务 ID。DelayReplicationType不为DEFAULT时返回,可用来查询回放任务状态。 8112 // 注意:此字段可能返回 null,表示取不到有效值。 8113 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8114 8115 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8116 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8117 } `json:"Response"` 8118} 8119 8120func (r *StartDelayReplicationResponse) ToJsonString() string { 8121 b, _ := json.Marshal(r) 8122 return string(b) 8123} 8124 8125// FromJsonString It is highly **NOT** recommended to use this function 8126// because it has no param check, nor strict type check 8127func (r *StartDelayReplicationResponse) FromJsonString(s string) error { 8128 return json.Unmarshal([]byte(s), &r) 8129} 8130 8131type StopDBImportJobRequest struct { 8132 *tchttp.BaseRequest 8133 8134 // 异步任务的请求 ID。 8135 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8136} 8137 8138func (r *StopDBImportJobRequest) ToJsonString() string { 8139 b, _ := json.Marshal(r) 8140 return string(b) 8141} 8142 8143// FromJsonString It is highly **NOT** recommended to use this function 8144// because it has no param check, nor strict type check 8145func (r *StopDBImportJobRequest) FromJsonString(s string) error { 8146 f := make(map[string]interface{}) 8147 if err := json.Unmarshal([]byte(s), &f); err != nil { 8148 return err 8149 } 8150 delete(f, "AsyncRequestId") 8151 if len(f) > 0 { 8152 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopDBImportJobRequest has unknown keys!", "") 8153 } 8154 return json.Unmarshal([]byte(s), &r) 8155} 8156 8157type StopDBImportJobResponse struct { 8158 *tchttp.BaseResponse 8159 Response *struct { 8160 8161 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8162 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8163 } `json:"Response"` 8164} 8165 8166func (r *StopDBImportJobResponse) ToJsonString() string { 8167 b, _ := json.Marshal(r) 8168 return string(b) 8169} 8170 8171// FromJsonString It is highly **NOT** recommended to use this function 8172// because it has no param check, nor strict type check 8173func (r *StopDBImportJobResponse) FromJsonString(s string) error { 8174 return json.Unmarshal([]byte(s), &r) 8175} 8176 8177type StopDelayReplicationRequest struct { 8178 *tchttp.BaseRequest 8179 8180 // 实例 ID。 8181 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8182} 8183 8184func (r *StopDelayReplicationRequest) ToJsonString() string { 8185 b, _ := json.Marshal(r) 8186 return string(b) 8187} 8188 8189// FromJsonString It is highly **NOT** recommended to use this function 8190// because it has no param check, nor strict type check 8191func (r *StopDelayReplicationRequest) FromJsonString(s string) error { 8192 f := make(map[string]interface{}) 8193 if err := json.Unmarshal([]byte(s), &f); err != nil { 8194 return err 8195 } 8196 delete(f, "InstanceId") 8197 if len(f) > 0 { 8198 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopDelayReplicationRequest has unknown keys!", "") 8199 } 8200 return json.Unmarshal([]byte(s), &r) 8201} 8202 8203type StopDelayReplicationResponse struct { 8204 *tchttp.BaseResponse 8205 Response *struct { 8206 8207 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8208 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8209 } `json:"Response"` 8210} 8211 8212func (r *StopDelayReplicationResponse) ToJsonString() string { 8213 b, _ := json.Marshal(r) 8214 return string(b) 8215} 8216 8217// FromJsonString It is highly **NOT** recommended to use this function 8218// because it has no param check, nor strict type check 8219func (r *StopDelayReplicationResponse) FromJsonString(s string) error { 8220 return json.Unmarshal([]byte(s), &r) 8221} 8222 8223type StopRollbackRequest struct { 8224 *tchttp.BaseRequest 8225 8226 // 撤销回档任务对应的实例Id。 8227 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8228} 8229 8230func (r *StopRollbackRequest) ToJsonString() string { 8231 b, _ := json.Marshal(r) 8232 return string(b) 8233} 8234 8235// FromJsonString It is highly **NOT** recommended to use this function 8236// because it has no param check, nor strict type check 8237func (r *StopRollbackRequest) FromJsonString(s string) error { 8238 f := make(map[string]interface{}) 8239 if err := json.Unmarshal([]byte(s), &f); err != nil { 8240 return err 8241 } 8242 delete(f, "InstanceId") 8243 if len(f) > 0 { 8244 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopRollbackRequest has unknown keys!", "") 8245 } 8246 return json.Unmarshal([]byte(s), &r) 8247} 8248 8249type StopRollbackResponse struct { 8250 *tchttp.BaseResponse 8251 Response *struct { 8252 8253 // 执行请求的异步任务ID 8254 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8255 8256 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8257 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8258 } `json:"Response"` 8259} 8260 8261func (r *StopRollbackResponse) ToJsonString() string { 8262 b, _ := json.Marshal(r) 8263 return string(b) 8264} 8265 8266// FromJsonString It is highly **NOT** recommended to use this function 8267// because it has no param check, nor strict type check 8268func (r *StopRollbackResponse) FromJsonString(s string) error { 8269 return json.Unmarshal([]byte(s), &r) 8270} 8271 8272type SwitchDBInstanceMasterSlaveRequest struct { 8273 *tchttp.BaseRequest 8274 8275 // 实例 ID。 8276 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8277 8278 // 目标从实例。可选值:"first" - 第一备机;"second" - 第二备机。默认值为 "first",仅多可用区实例支持设置为 "second"。 8279 DstSlave *string `json:"DstSlave,omitempty" name:"DstSlave"` 8280 8281 // 是否强制切换。默认为 False。注意,若设置强制切换为 True,实例存在丢失数据的风险,请谨慎使用。 8282 ForceSwitch *bool `json:"ForceSwitch,omitempty" name:"ForceSwitch"` 8283 8284 // 是否时间窗内切换。默认为 False,即不在时间窗内切换。注意,如果设置了 ForceSwitch 参数为 True,则该参数不生效。 8285 WaitSwitch *bool `json:"WaitSwitch,omitempty" name:"WaitSwitch"` 8286} 8287 8288func (r *SwitchDBInstanceMasterSlaveRequest) ToJsonString() string { 8289 b, _ := json.Marshal(r) 8290 return string(b) 8291} 8292 8293// FromJsonString It is highly **NOT** recommended to use this function 8294// because it has no param check, nor strict type check 8295func (r *SwitchDBInstanceMasterSlaveRequest) FromJsonString(s string) error { 8296 f := make(map[string]interface{}) 8297 if err := json.Unmarshal([]byte(s), &f); err != nil { 8298 return err 8299 } 8300 delete(f, "InstanceId") 8301 delete(f, "DstSlave") 8302 delete(f, "ForceSwitch") 8303 delete(f, "WaitSwitch") 8304 if len(f) > 0 { 8305 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SwitchDBInstanceMasterSlaveRequest has unknown keys!", "") 8306 } 8307 return json.Unmarshal([]byte(s), &r) 8308} 8309 8310type SwitchDBInstanceMasterSlaveResponse struct { 8311 *tchttp.BaseResponse 8312 Response *struct { 8313 8314 // 异步任务 ID。 8315 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8316 8317 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8318 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8319 } `json:"Response"` 8320} 8321 8322func (r *SwitchDBInstanceMasterSlaveResponse) ToJsonString() string { 8323 b, _ := json.Marshal(r) 8324 return string(b) 8325} 8326 8327// FromJsonString It is highly **NOT** recommended to use this function 8328// because it has no param check, nor strict type check 8329func (r *SwitchDBInstanceMasterSlaveResponse) FromJsonString(s string) error { 8330 return json.Unmarshal([]byte(s), &r) 8331} 8332 8333type SwitchDrInstanceToMasterRequest struct { 8334 *tchttp.BaseRequest 8335 8336 // 灾备实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。 8337 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8338} 8339 8340func (r *SwitchDrInstanceToMasterRequest) ToJsonString() string { 8341 b, _ := json.Marshal(r) 8342 return string(b) 8343} 8344 8345// FromJsonString It is highly **NOT** recommended to use this function 8346// because it has no param check, nor strict type check 8347func (r *SwitchDrInstanceToMasterRequest) FromJsonString(s string) error { 8348 f := make(map[string]interface{}) 8349 if err := json.Unmarshal([]byte(s), &f); err != nil { 8350 return err 8351 } 8352 delete(f, "InstanceId") 8353 if len(f) > 0 { 8354 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SwitchDrInstanceToMasterRequest has unknown keys!", "") 8355 } 8356 return json.Unmarshal([]byte(s), &r) 8357} 8358 8359type SwitchDrInstanceToMasterResponse struct { 8360 *tchttp.BaseResponse 8361 Response *struct { 8362 8363 // 异步任务的请求ID,可使用此ID查询异步任务的执行结果。 8364 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8365 8366 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8367 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8368 } `json:"Response"` 8369} 8370 8371func (r *SwitchDrInstanceToMasterResponse) ToJsonString() string { 8372 b, _ := json.Marshal(r) 8373 return string(b) 8374} 8375 8376// FromJsonString It is highly **NOT** recommended to use this function 8377// because it has no param check, nor strict type check 8378func (r *SwitchDrInstanceToMasterResponse) FromJsonString(s string) error { 8379 return json.Unmarshal([]byte(s), &r) 8380} 8381 8382type SwitchForUpgradeRequest struct { 8383 *tchttp.BaseRequest 8384 8385 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 8386 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8387} 8388 8389func (r *SwitchForUpgradeRequest) ToJsonString() string { 8390 b, _ := json.Marshal(r) 8391 return string(b) 8392} 8393 8394// FromJsonString It is highly **NOT** recommended to use this function 8395// because it has no param check, nor strict type check 8396func (r *SwitchForUpgradeRequest) FromJsonString(s string) error { 8397 f := make(map[string]interface{}) 8398 if err := json.Unmarshal([]byte(s), &f); err != nil { 8399 return err 8400 } 8401 delete(f, "InstanceId") 8402 if len(f) > 0 { 8403 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SwitchForUpgradeRequest has unknown keys!", "") 8404 } 8405 return json.Unmarshal([]byte(s), &r) 8406} 8407 8408type SwitchForUpgradeResponse struct { 8409 *tchttp.BaseResponse 8410 Response *struct { 8411 8412 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8413 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8414 } `json:"Response"` 8415} 8416 8417func (r *SwitchForUpgradeResponse) ToJsonString() string { 8418 b, _ := json.Marshal(r) 8419 return string(b) 8420} 8421 8422// FromJsonString It is highly **NOT** recommended to use this function 8423// because it has no param check, nor strict type check 8424func (r *SwitchForUpgradeResponse) FromJsonString(s string) error { 8425 return json.Unmarshal([]byte(s), &r) 8426} 8427 8428type TableName struct { 8429 8430 // 表名 8431 TableName *string `json:"TableName,omitempty" name:"TableName"` 8432} 8433 8434type TablePrivilege struct { 8435 8436 // 数据库名 8437 Database *string `json:"Database,omitempty" name:"Database"` 8438 8439 // 数据库表名 8440 Table *string `json:"Table,omitempty" name:"Table"` 8441 8442 // 权限信息 8443 Privileges []*string `json:"Privileges,omitempty" name:"Privileges"` 8444} 8445 8446type TagInfo struct { 8447 8448 // 标签键 8449 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` 8450 8451 // 标签值 8452 TagValue []*string `json:"TagValue,omitempty" name:"TagValue"` 8453} 8454 8455type TagInfoItem struct { 8456 8457 // 标签键 8458 // 注意:此字段可能返回 null,表示取不到有效值。 8459 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` 8460 8461 // 标签值 8462 // 注意:此字段可能返回 null,表示取不到有效值。 8463 TagValue *string `json:"TagValue,omitempty" name:"TagValue"` 8464} 8465 8466type TagInfoUnit struct { 8467 8468 // 标签键 8469 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` 8470 8471 // 标签值 8472 TagValue *string `json:"TagValue,omitempty" name:"TagValue"` 8473} 8474 8475type TagsInfoOfInstance struct { 8476 8477 // 实例Id 8478 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8479 8480 // 标签信息 8481 Tags []*TagInfoUnit `json:"Tags,omitempty" name:"Tags"` 8482} 8483 8484type TaskDetail struct { 8485 8486 // 错误码。 8487 Code *int64 `json:"Code,omitempty" name:"Code"` 8488 8489 // 错误信息。 8490 Message *string `json:"Message,omitempty" name:"Message"` 8491 8492 // 实例任务 ID。 8493 JobId *int64 `json:"JobId,omitempty" name:"JobId"` 8494 8495 // 实例任务进度。 8496 Progress *int64 `json:"Progress,omitempty" name:"Progress"` 8497 8498 // 实例任务状态,可能的值包括: 8499 // "UNDEFINED" - 未定义; 8500 // "INITIAL" - 初始化; 8501 // "RUNNING" - 运行中; 8502 // "SUCCEED" - 执行成功; 8503 // "FAILED" - 执行失败; 8504 // "KILLED" - 已终止; 8505 // "REMOVED" - 已删除; 8506 // "PAUSED" - 已暂停。 8507 // "WAITING" - 等待中(可撤销) 8508 TaskStatus *string `json:"TaskStatus,omitempty" name:"TaskStatus"` 8509 8510 // 实例任务类型,可能的值包括: 8511 // "ROLLBACK" - 数据库回档; 8512 // "SQL OPERATION" - SQL操作; 8513 // "IMPORT DATA" - 数据导入; 8514 // "MODIFY PARAM" - 参数设置; 8515 // "INITIAL" - 初始化云数据库实例; 8516 // "REBOOT" - 重启云数据库实例; 8517 // "OPEN GTID" - 开启云数据库实例GTID; 8518 // "UPGRADE RO" - 只读实例升级; 8519 // "BATCH ROLLBACK" - 数据库批量回档; 8520 // "UPGRADE MASTER" - 主实例升级; 8521 // "DROP TABLES" - 删除云数据库库表; 8522 // "SWITCH DR TO MASTER" - 灾备实例提升为主。 8523 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` 8524 8525 // 实例任务开始时间。 8526 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 8527 8528 // 实例任务结束时间。 8529 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 8530 8531 // 任务关联的实例 ID。 8532 // 注意:此字段可能返回 null,表示取不到有效值。 8533 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` 8534 8535 // 异步任务的请求 ID。 8536 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8537} 8538 8539type UpgradeDBInstanceEngineVersionRequest struct { 8540 *tchttp.BaseRequest 8541 8542 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 8543 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8544 8545 // 主实例数据库引擎版本,支持值包括:5.6 和 5.7。 8546 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 8547 8548 // 切换访问新实例的方式,默认为 0。支持值包括:0 - 立刻切换,1 - 时间窗切换;当该值为 1 时,升级中过程中,切换访问新实例的流程将会在时间窗内进行,或者用户主动调用接口 [切换访问新实例](https://cloud.tencent.com/document/product/236/15864) 触发该流程。 8549 WaitSwitch *int64 `json:"WaitSwitch,omitempty" name:"WaitSwitch"` 8550 8551 // 是否是内核子版本升级,支持的值:1 - 升级内核子版本;0 - 升级数据库引擎版本。 8552 UpgradeSubversion *int64 `json:"UpgradeSubversion,omitempty" name:"UpgradeSubversion"` 8553} 8554 8555func (r *UpgradeDBInstanceEngineVersionRequest) ToJsonString() string { 8556 b, _ := json.Marshal(r) 8557 return string(b) 8558} 8559 8560// FromJsonString It is highly **NOT** recommended to use this function 8561// because it has no param check, nor strict type check 8562func (r *UpgradeDBInstanceEngineVersionRequest) FromJsonString(s string) error { 8563 f := make(map[string]interface{}) 8564 if err := json.Unmarshal([]byte(s), &f); err != nil { 8565 return err 8566 } 8567 delete(f, "InstanceId") 8568 delete(f, "EngineVersion") 8569 delete(f, "WaitSwitch") 8570 delete(f, "UpgradeSubversion") 8571 if len(f) > 0 { 8572 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpgradeDBInstanceEngineVersionRequest has unknown keys!", "") 8573 } 8574 return json.Unmarshal([]byte(s), &r) 8575} 8576 8577type UpgradeDBInstanceEngineVersionResponse struct { 8578 *tchttp.BaseResponse 8579 Response *struct { 8580 8581 // 异步任务 ID,可使用 [查询异步任务的执行结果](https://cloud.tencent.com/document/api/236/20410) 获取其执行情况。 8582 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8583 8584 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8585 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8586 } `json:"Response"` 8587} 8588 8589func (r *UpgradeDBInstanceEngineVersionResponse) ToJsonString() string { 8590 b, _ := json.Marshal(r) 8591 return string(b) 8592} 8593 8594// FromJsonString It is highly **NOT** recommended to use this function 8595// because it has no param check, nor strict type check 8596func (r *UpgradeDBInstanceEngineVersionResponse) FromJsonString(s string) error { 8597 return json.Unmarshal([]byte(s), &r) 8598} 8599 8600type UpgradeDBInstanceRequest struct { 8601 *tchttp.BaseRequest 8602 8603 // 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。 8604 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8605 8606 // 升级后的内存大小,单位:MB,为保证传入 Memory 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的内存规格。 8607 Memory *int64 `json:"Memory,omitempty" name:"Memory"` 8608 8609 // 升级后的硬盘大小,单位:GB,为保证传入 Volume 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的硬盘范围。 8610 Volume *int64 `json:"Volume,omitempty" name:"Volume"` 8611 8612 // 数据复制方式,支持值包括:0 - 异步复制,1 - 半同步复制,2 - 强同步复制,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。 8613 ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` 8614 8615 // 部署模式,默认为 0,支持值包括:0 - 单可用区部署,1 - 多可用区部署,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。 8616 DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` 8617 8618 // 备库1的可用区信息,默认和实例的 Zone 参数一致,升级主实例为多可用区部署时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。可通过 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口查询支持的可用区。 8619 SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"` 8620 8621 // 主实例数据库引擎版本,支持值包括:5.5、5.6 和 5.7。 8622 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` 8623 8624 // 切换访问新实例的方式,默认为 0。支持值包括:0 - 立刻切换,1 - 时间窗切换;当该值为 1 时,升级中过程中,切换访问新实例的流程将会在时间窗内进行,或者用户主动调用接口 [切换访问新实例](https://cloud.tencent.com/document/product/236/15864) 触发该流程。 8625 WaitSwitch *int64 `json:"WaitSwitch,omitempty" name:"WaitSwitch"` 8626 8627 // 备库 2 的可用区信息,默认为空,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。 8628 BackupZone *string `json:"BackupZone,omitempty" name:"BackupZone"` 8629 8630 // 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。 8631 InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` 8632 8633 // 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 8634 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` 8635 8636 // 升级后的实例cpu核数, 如果不传将根据 Memory 指定的内存值自动填充对应的cpu值。 8637 Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` 8638 8639 // 是否极速变配。0-普通升级,1-极速变配。选择极速变配会根据资源状况校验是否可以进行极速变配,满足条件则进行极速变配,不满足条件会返回报错信息。 8640 FastUpgrade *int64 `json:"FastUpgrade,omitempty" name:"FastUpgrade"` 8641} 8642 8643func (r *UpgradeDBInstanceRequest) ToJsonString() string { 8644 b, _ := json.Marshal(r) 8645 return string(b) 8646} 8647 8648// FromJsonString It is highly **NOT** recommended to use this function 8649// because it has no param check, nor strict type check 8650func (r *UpgradeDBInstanceRequest) FromJsonString(s string) error { 8651 f := make(map[string]interface{}) 8652 if err := json.Unmarshal([]byte(s), &f); err != nil { 8653 return err 8654 } 8655 delete(f, "InstanceId") 8656 delete(f, "Memory") 8657 delete(f, "Volume") 8658 delete(f, "ProtectMode") 8659 delete(f, "DeployMode") 8660 delete(f, "SlaveZone") 8661 delete(f, "EngineVersion") 8662 delete(f, "WaitSwitch") 8663 delete(f, "BackupZone") 8664 delete(f, "InstanceRole") 8665 delete(f, "DeviceType") 8666 delete(f, "Cpu") 8667 delete(f, "FastUpgrade") 8668 if len(f) > 0 { 8669 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpgradeDBInstanceRequest has unknown keys!", "") 8670 } 8671 return json.Unmarshal([]byte(s), &r) 8672} 8673 8674type UpgradeDBInstanceResponse struct { 8675 *tchttp.BaseResponse 8676 Response *struct { 8677 8678 // 订单 ID。 8679 DealIds []*string `json:"DealIds,omitempty" name:"DealIds"` 8680 8681 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。 8682 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8683 8684 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8685 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8686 } `json:"Response"` 8687} 8688 8689func (r *UpgradeDBInstanceResponse) ToJsonString() string { 8690 b, _ := json.Marshal(r) 8691 return string(b) 8692} 8693 8694// FromJsonString It is highly **NOT** recommended to use this function 8695// because it has no param check, nor strict type check 8696func (r *UpgradeDBInstanceResponse) FromJsonString(s string) error { 8697 return json.Unmarshal([]byte(s), &r) 8698} 8699 8700type UploadInfo struct { 8701 8702 // 文件所有分片数 8703 AllSliceNum *int64 `json:"AllSliceNum,omitempty" name:"AllSliceNum"` 8704 8705 // 已完成分片数 8706 CompleteNum *int64 `json:"CompleteNum,omitempty" name:"CompleteNum"` 8707} 8708 8709type VerifyRootAccountRequest struct { 8710 *tchttp.BaseRequest 8711 8712 // 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 8713 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 8714 8715 // 实例 ROOT 账号的密码。 8716 Password *string `json:"Password,omitempty" name:"Password"` 8717} 8718 8719func (r *VerifyRootAccountRequest) ToJsonString() string { 8720 b, _ := json.Marshal(r) 8721 return string(b) 8722} 8723 8724// FromJsonString It is highly **NOT** recommended to use this function 8725// because it has no param check, nor strict type check 8726func (r *VerifyRootAccountRequest) FromJsonString(s string) error { 8727 f := make(map[string]interface{}) 8728 if err := json.Unmarshal([]byte(s), &f); err != nil { 8729 return err 8730 } 8731 delete(f, "InstanceId") 8732 delete(f, "Password") 8733 if len(f) > 0 { 8734 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "VerifyRootAccountRequest has unknown keys!", "") 8735 } 8736 return json.Unmarshal([]byte(s), &r) 8737} 8738 8739type VerifyRootAccountResponse struct { 8740 *tchttp.BaseResponse 8741 Response *struct { 8742 8743 // 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果 8744 AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` 8745 8746 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8747 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8748 } `json:"Response"` 8749} 8750 8751func (r *VerifyRootAccountResponse) ToJsonString() string { 8752 b, _ := json.Marshal(r) 8753 return string(b) 8754} 8755 8756// FromJsonString It is highly **NOT** recommended to use this function 8757// because it has no param check, nor strict type check 8758func (r *VerifyRootAccountResponse) FromJsonString(s string) error { 8759 return json.Unmarshal([]byte(s), &r) 8760} 8761 8762type ZoneConf struct { 8763 8764 // 可用区部署方式,可能的值为:0-单可用区;1-多可用区 8765 DeployMode []*int64 `json:"DeployMode,omitempty" name:"DeployMode"` 8766 8767 // 主实例所在的可用区 8768 MasterZone []*string `json:"MasterZone,omitempty" name:"MasterZone"` 8769 8770 // 实例为多可用区部署时,备库1所在的可用区 8771 SlaveZone []*string `json:"SlaveZone,omitempty" name:"SlaveZone"` 8772 8773 // 实例为多可用区部署时,备库2所在的可用区 8774 BackupZone []*string `json:"BackupZone,omitempty" name:"BackupZone"` 8775} 8776 8777type ZoneSellConf struct { 8778 8779 // 可用区状态。可能的返回值为:0-未上线;1-上线;2-开放;3-停售;4-不展示 8780 Status *int64 `json:"Status,omitempty" name:"Status"` 8781 8782 // 可用区中文名称 8783 ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` 8784 8785 // 实例类型是否为自定义类型 8786 IsCustom *bool `json:"IsCustom,omitempty" name:"IsCustom"` 8787 8788 // 是否支持灾备 8789 IsSupportDr *bool `json:"IsSupportDr,omitempty" name:"IsSupportDr"` 8790 8791 // 是否支持私有网络 8792 IsSupportVpc *bool `json:"IsSupportVpc,omitempty" name:"IsSupportVpc"` 8793 8794 // 小时计费实例最大售卖数量 8795 HourInstanceSaleMaxNum *int64 `json:"HourInstanceSaleMaxNum,omitempty" name:"HourInstanceSaleMaxNum"` 8796 8797 // 是否为默认可用区 8798 IsDefaultZone *bool `json:"IsDefaultZone,omitempty" name:"IsDefaultZone"` 8799 8800 // 是否为黑石区 8801 IsBm *bool `json:"IsBm,omitempty" name:"IsBm"` 8802 8803 // 支持的付费类型。可能的返回值为:0-包年包月;1-小时计费;2-后付费 8804 PayType []*string `json:"PayType,omitempty" name:"PayType"` 8805 8806 // 数据复制类型。0-异步复制;1-半同步复制;2-强同步复制 8807 ProtectMode []*string `json:"ProtectMode,omitempty" name:"ProtectMode"` 8808 8809 // 可用区名称 8810 Zone *string `json:"Zone,omitempty" name:"Zone"` 8811 8812 // 售卖实例类型数组 8813 SellType []*SellType `json:"SellType,omitempty" name:"SellType"` 8814 8815 // 多可用区信息 8816 ZoneConf *ZoneConf `json:"ZoneConf,omitempty" name:"ZoneConf"` 8817 8818 // 可支持的灾备可用区信息 8819 DrZone []*string `json:"DrZone,omitempty" name:"DrZone"` 8820 8821 // 是否支持跨可用区只读 8822 IsSupportRemoteRo *bool `json:"IsSupportRemoteRo,omitempty" name:"IsSupportRemoteRo"` 8823 8824 // 可支持的跨可用区只读区信息 8825 // 注意:此字段可能返回 null,表示取不到有效值。 8826 RemoteRoZone []*string `json:"RemoteRoZone,omitempty" name:"RemoteRoZone"` 8827} 8828