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 v20180412 16 17import ( 18 "encoding/json" 19 "errors" 20 21 tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" 22) 23 24type Account struct { 25 26 // 实例ID 27 // 注意:此字段可能返回 null,表示取不到有效值。 28 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 29 30 // 账号名称(如果是主账号,名称为root) 31 // 注意:此字段可能返回 null,表示取不到有效值。 32 AccountName *string `json:"AccountName,omitempty" name:"AccountName"` 33 34 // 账号描述信息 35 // 注意:此字段可能返回 null,表示取不到有效值。 36 Remark *string `json:"Remark,omitempty" name:"Remark"` 37 38 // 读写策略:r-只读,w-只写,rw-读写 39 // 注意:此字段可能返回 null,表示取不到有效值。 40 Privilege *string `json:"Privilege,omitempty" name:"Privilege"` 41 42 // 路由策略:master-主节点,replication-从节点 43 // 注意:此字段可能返回 null,表示取不到有效值。 44 ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` 45 46 // 子账号状态:1-账号变更中,2-账号有效,-4-账号已删除 47 // 注意:此字段可能返回 null,表示取不到有效值。 48 Status *int64 `json:"Status,omitempty" name:"Status"` 49} 50 51type AssociateSecurityGroupsRequest struct { 52 *tchttp.BaseRequest 53 54 // 数据库引擎名称:mariadb,cdb,cynosdb,dcdb,redis,mongodb 等。 55 Product *string `json:"Product,omitempty" name:"Product"` 56 57 // 要绑定的安全组ID,类似sg-efil73jd。 58 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 59 60 // 被绑定的实例ID,类似ins-lesecurk,支持指定多个实例。 61 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` 62} 63 64func (r *AssociateSecurityGroupsRequest) ToJsonString() string { 65 b, _ := json.Marshal(r) 66 return string(b) 67} 68 69// It is highly **NOT** recommended to use this function 70// because it has no param check, nor strict type check 71func (r *AssociateSecurityGroupsRequest) FromJsonString(s string) error { 72 f := make(map[string]interface{}) 73 if err := json.Unmarshal([]byte(s), &f); err != nil { 74 return err 75 } 76 delete(f, "Product") 77 delete(f, "SecurityGroupId") 78 delete(f, "InstanceIds") 79 if len(f) > 0 { 80 return errors.New("AssociateSecurityGroupsRequest has unknown keys!") 81 } 82 return json.Unmarshal([]byte(s), &r) 83} 84 85type AssociateSecurityGroupsResponse struct { 86 *tchttp.BaseResponse 87 Response *struct { 88 89 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 90 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 91 } `json:"Response"` 92} 93 94func (r *AssociateSecurityGroupsResponse) ToJsonString() string { 95 b, _ := json.Marshal(r) 96 return string(b) 97} 98 99// It is highly **NOT** recommended to use this function 100// because it has no param check, nor strict type check 101func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error { 102 return json.Unmarshal([]byte(s), &r) 103} 104 105type BigKeyInfo struct { 106 107 // 所属的database 108 DB *int64 `json:"DB,omitempty" name:"DB"` 109 110 // 大Key 111 Key *string `json:"Key,omitempty" name:"Key"` 112 113 // 类型 114 Type *string `json:"Type,omitempty" name:"Type"` 115 116 // 大小 117 Size *int64 `json:"Size,omitempty" name:"Size"` 118 119 // 数据时间戳 120 Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"` 121} 122 123type BigKeyTypeInfo struct { 124 125 // 类型 126 Type *string `json:"Type,omitempty" name:"Type"` 127 128 // 数量 129 Count *int64 `json:"Count,omitempty" name:"Count"` 130 131 // 大小 132 Size *int64 `json:"Size,omitempty" name:"Size"` 133 134 // 时间戳 135 Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"` 136} 137 138type CleanUpInstanceRequest struct { 139 *tchttp.BaseRequest 140 141 // 实例ID 142 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 143} 144 145func (r *CleanUpInstanceRequest) ToJsonString() string { 146 b, _ := json.Marshal(r) 147 return string(b) 148} 149 150// It is highly **NOT** recommended to use this function 151// because it has no param check, nor strict type check 152func (r *CleanUpInstanceRequest) FromJsonString(s string) error { 153 f := make(map[string]interface{}) 154 if err := json.Unmarshal([]byte(s), &f); err != nil { 155 return err 156 } 157 delete(f, "InstanceId") 158 if len(f) > 0 { 159 return errors.New("CleanUpInstanceRequest has unknown keys!") 160 } 161 return json.Unmarshal([]byte(s), &r) 162} 163 164type CleanUpInstanceResponse struct { 165 *tchttp.BaseResponse 166 Response *struct { 167 168 // 任务ID 169 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 170 171 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 172 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 173 } `json:"Response"` 174} 175 176func (r *CleanUpInstanceResponse) ToJsonString() string { 177 b, _ := json.Marshal(r) 178 return string(b) 179} 180 181// It is highly **NOT** recommended to use this function 182// because it has no param check, nor strict type check 183func (r *CleanUpInstanceResponse) FromJsonString(s string) error { 184 return json.Unmarshal([]byte(s), &r) 185} 186 187type ClearInstanceRequest struct { 188 *tchttp.BaseRequest 189 190 // 实例ID 191 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 192 193 // redis的实例密码(免密实例不需要传密码,非免密实例必传) 194 Password *string `json:"Password,omitempty" name:"Password"` 195} 196 197func (r *ClearInstanceRequest) ToJsonString() string { 198 b, _ := json.Marshal(r) 199 return string(b) 200} 201 202// It is highly **NOT** recommended to use this function 203// because it has no param check, nor strict type check 204func (r *ClearInstanceRequest) FromJsonString(s string) error { 205 f := make(map[string]interface{}) 206 if err := json.Unmarshal([]byte(s), &f); err != nil { 207 return err 208 } 209 delete(f, "InstanceId") 210 delete(f, "Password") 211 if len(f) > 0 { 212 return errors.New("ClearInstanceRequest has unknown keys!") 213 } 214 return json.Unmarshal([]byte(s), &r) 215} 216 217type ClearInstanceResponse struct { 218 *tchttp.BaseResponse 219 Response *struct { 220 221 // 任务ID 222 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 223 224 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 225 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 226 } `json:"Response"` 227} 228 229func (r *ClearInstanceResponse) ToJsonString() string { 230 b, _ := json.Marshal(r) 231 return string(b) 232} 233 234// It is highly **NOT** recommended to use this function 235// because it has no param check, nor strict type check 236func (r *ClearInstanceResponse) FromJsonString(s string) error { 237 return json.Unmarshal([]byte(s), &r) 238} 239 240type CommandTake struct { 241 242 // 命令 243 Cmd *string `json:"Cmd,omitempty" name:"Cmd"` 244 245 // 耗时 246 Took *int64 `json:"Took,omitempty" name:"Took"` 247} 248 249type CreateInstanceAccountRequest struct { 250 *tchttp.BaseRequest 251 252 // 实例ID 253 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 254 255 // 子账号名称 256 AccountName *string `json:"AccountName,omitempty" name:"AccountName"` 257 258 // 子账号密码 259 AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"` 260 261 // 路由策略:填写master或者replication,表示主节点或者从节点 262 ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` 263 264 // 读写策略:填写r、rw,表示只读、读写 265 Privilege *string `json:"Privilege,omitempty" name:"Privilege"` 266 267 // 子账号描述信息 268 Remark *string `json:"Remark,omitempty" name:"Remark"` 269} 270 271func (r *CreateInstanceAccountRequest) ToJsonString() string { 272 b, _ := json.Marshal(r) 273 return string(b) 274} 275 276// It is highly **NOT** recommended to use this function 277// because it has no param check, nor strict type check 278func (r *CreateInstanceAccountRequest) FromJsonString(s string) error { 279 f := make(map[string]interface{}) 280 if err := json.Unmarshal([]byte(s), &f); err != nil { 281 return err 282 } 283 delete(f, "InstanceId") 284 delete(f, "AccountName") 285 delete(f, "AccountPassword") 286 delete(f, "ReadonlyPolicy") 287 delete(f, "Privilege") 288 delete(f, "Remark") 289 if len(f) > 0 { 290 return errors.New("CreateInstanceAccountRequest has unknown keys!") 291 } 292 return json.Unmarshal([]byte(s), &r) 293} 294 295type CreateInstanceAccountResponse struct { 296 *tchttp.BaseResponse 297 Response *struct { 298 299 // 任务ID 300 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 301 302 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 303 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 304 } `json:"Response"` 305} 306 307func (r *CreateInstanceAccountResponse) ToJsonString() string { 308 b, _ := json.Marshal(r) 309 return string(b) 310} 311 312// It is highly **NOT** recommended to use this function 313// because it has no param check, nor strict type check 314func (r *CreateInstanceAccountResponse) FromJsonString(s string) error { 315 return json.Unmarshal([]byte(s), &r) 316} 317 318type CreateInstancesRequest struct { 319 *tchttp.BaseRequest 320 321 // 实例所属的可用区ID,可参考[地域和可用区](https://cloud.tencent.com/document/product/239/4106) 。 322 ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` 323 324 // 实例类型:2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构)。 325 TypeId *uint64 `json:"TypeId,omitempty" name:"TypeId"` 326 327 // 内存容量,单位为MB, 数值需为1024的整数倍,具体规格以 [查询产品售卖规格](https://cloud.tencent.com/document/api/239/30600) 返回的规格为准。 328 // TypeId为标准架构时,MemSize是实例总内存容量;TypeId为集群架构时,MemSize是单分片内存容量。 329 MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` 330 331 // 实例数量,单次购买实例数量以 [查询产品售卖规格](https://cloud.tencent.com/document/api/239/30600) 返回的规格为准。 332 GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` 333 334 // 购买时长,在创建包年包月实例的时候需要填写,按量计费实例填1即可,单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。 335 Period *uint64 `json:"Period,omitempty" name:"Period"` 336 337 // 付费方式:0-按量计费,1-包年包月。 338 BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` 339 340 // 实例密码,当输入参数NoAuth为true且使用私有网络VPC时,Password为非必填,否则Password为必填参数。 341 // 当实例类型TypeId为Redis2.8、4.0和5.0时,其密码格式为:8-30个字符,至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种,不能以"/"开头; 342 // 当实例类型TypeId为CKV 3.2时,其密码格式为:8-30个字符,必须包含字母和数字 且 不包含其他字符。 343 Password *string `json:"Password,omitempty" name:"Password"` 344 345 // 私有网络ID,如果不传则默认选择基础网络,请使用私有网络列表查询,如:vpc-sad23jfdfk。 346 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` 347 348 // 基础网络下, subnetId无效; vpc子网下,取值以查询子网列表,如:subnet-fdj24n34j2。 349 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 350 351 // 项目id,取值以用户账户>用户账户相关接口查询>项目列表返回的projectId为准。 352 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 353 354 // 自动续费标识。0 - 默认状态(手动续费);1 - 自动续费;2 - 明确不自动续费。 355 AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` 356 357 // 安全组id数组。 358 SecurityGroupIdList []*string `json:"SecurityGroupIdList,omitempty" name:"SecurityGroupIdList" list` 359 360 // 用户自定义的端口 不填则默认为6379,范围[1024,65535]。 361 VPort *uint64 `json:"VPort,omitempty" name:"VPort"` 362 363 // 实例分片数量,购买标准版实例不需要填写,集群版分片数量范围[3,5,8,12,16,24,32,64,96,128]。 364 RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` 365 366 // 实例副本数量,Redis 2.8标准版、CKV标准版只支持1副本,4.0、5.0标准版和集群版支持1-5个副本。 367 RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` 368 369 // 是否支持副本只读,Redis 2.8标准版、CKV标准版不支持副本只读,开启副本只读,实例将自动读写分离,写请求路由到主节点,读请求路由到副本节点,如需开启副本只读建议副本数>=2。 370 ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"` 371 372 // 实例名称,长度小于60的中文/英文/数字/"-"/"_"。 373 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 374 375 // 是否支持免密,true-免密实例,false-非免密实例,默认为非免密实例,仅VPC网络的实例支持免密码访问。 376 NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` 377 378 // 实例的节点信息,目前支持传入节点的类型(主节点或者副本节点),节点的可用区。单可用区部署不需要传递此参数。 379 NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet" list` 380 381 // 购买实例绑定标签 382 ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags" list` 383} 384 385func (r *CreateInstancesRequest) ToJsonString() string { 386 b, _ := json.Marshal(r) 387 return string(b) 388} 389 390// It is highly **NOT** recommended to use this function 391// because it has no param check, nor strict type check 392func (r *CreateInstancesRequest) FromJsonString(s string) error { 393 f := make(map[string]interface{}) 394 if err := json.Unmarshal([]byte(s), &f); err != nil { 395 return err 396 } 397 delete(f, "ZoneId") 398 delete(f, "TypeId") 399 delete(f, "MemSize") 400 delete(f, "GoodsNum") 401 delete(f, "Period") 402 delete(f, "BillingMode") 403 delete(f, "Password") 404 delete(f, "VpcId") 405 delete(f, "SubnetId") 406 delete(f, "ProjectId") 407 delete(f, "AutoRenew") 408 delete(f, "SecurityGroupIdList") 409 delete(f, "VPort") 410 delete(f, "RedisShardNum") 411 delete(f, "RedisReplicasNum") 412 delete(f, "ReplicasReadonly") 413 delete(f, "InstanceName") 414 delete(f, "NoAuth") 415 delete(f, "NodeSet") 416 delete(f, "ResourceTags") 417 if len(f) > 0 { 418 return errors.New("CreateInstancesRequest has unknown keys!") 419 } 420 return json.Unmarshal([]byte(s), &r) 421} 422 423type CreateInstancesResponse struct { 424 *tchttp.BaseResponse 425 Response *struct { 426 427 // 交易的ID 428 DealId *string `json:"DealId,omitempty" name:"DealId"` 429 430 // 实例ID 431 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` 432 433 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 434 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 435 } `json:"Response"` 436} 437 438func (r *CreateInstancesResponse) ToJsonString() string { 439 b, _ := json.Marshal(r) 440 return string(b) 441} 442 443// It is highly **NOT** recommended to use this function 444// because it has no param check, nor strict type check 445func (r *CreateInstancesResponse) FromJsonString(s string) error { 446 return json.Unmarshal([]byte(s), &r) 447} 448 449type DelayDistribution struct { 450 451 // 分布阶梯,延时和Ladder值的对应关系: 452 // [0ms,1ms]: 1; 453 // [1ms,5ms]: 5; 454 // [5ms,10ms]: 10; 455 // [10ms,50ms]: 50; 456 // [50ms,200ms]: 200; 457 // [200ms,∞]: -1。 458 Ladder *int64 `json:"Ladder,omitempty" name:"Ladder"` 459 460 // 延时处于当前分布阶梯的命令数量,个。 461 Size *int64 `json:"Size,omitempty" name:"Size"` 462 463 // 修改时间。 464 Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"` 465} 466 467type DeleteInstanceAccountRequest struct { 468 *tchttp.BaseRequest 469 470 // 实例ID 471 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 472 473 // 子账号名称 474 AccountName *string `json:"AccountName,omitempty" name:"AccountName"` 475} 476 477func (r *DeleteInstanceAccountRequest) ToJsonString() string { 478 b, _ := json.Marshal(r) 479 return string(b) 480} 481 482// It is highly **NOT** recommended to use this function 483// because it has no param check, nor strict type check 484func (r *DeleteInstanceAccountRequest) FromJsonString(s string) error { 485 f := make(map[string]interface{}) 486 if err := json.Unmarshal([]byte(s), &f); err != nil { 487 return err 488 } 489 delete(f, "InstanceId") 490 delete(f, "AccountName") 491 if len(f) > 0 { 492 return errors.New("DeleteInstanceAccountRequest has unknown keys!") 493 } 494 return json.Unmarshal([]byte(s), &r) 495} 496 497type DeleteInstanceAccountResponse struct { 498 *tchttp.BaseResponse 499 Response *struct { 500 501 // 任务ID 502 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 503 504 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 505 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 506 } `json:"Response"` 507} 508 509func (r *DeleteInstanceAccountResponse) ToJsonString() string { 510 b, _ := json.Marshal(r) 511 return string(b) 512} 513 514// It is highly **NOT** recommended to use this function 515// because it has no param check, nor strict type check 516func (r *DeleteInstanceAccountResponse) FromJsonString(s string) error { 517 return json.Unmarshal([]byte(s), &r) 518} 519 520type DescribeAutoBackupConfigRequest struct { 521 *tchttp.BaseRequest 522 523 // 实例ID 524 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 525} 526 527func (r *DescribeAutoBackupConfigRequest) ToJsonString() string { 528 b, _ := json.Marshal(r) 529 return string(b) 530} 531 532// It is highly **NOT** recommended to use this function 533// because it has no param check, nor strict type check 534func (r *DescribeAutoBackupConfigRequest) FromJsonString(s string) error { 535 f := make(map[string]interface{}) 536 if err := json.Unmarshal([]byte(s), &f); err != nil { 537 return err 538 } 539 delete(f, "InstanceId") 540 if len(f) > 0 { 541 return errors.New("DescribeAutoBackupConfigRequest has unknown keys!") 542 } 543 return json.Unmarshal([]byte(s), &r) 544} 545 546type DescribeAutoBackupConfigResponse struct { 547 *tchttp.BaseResponse 548 Response *struct { 549 550 // 备份类型。自动备份类型: 1 “定时回档” 551 AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"` 552 553 // Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday。 554 WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays" list` 555 556 // 时间段。 557 TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"` 558 559 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 560 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 561 } `json:"Response"` 562} 563 564func (r *DescribeAutoBackupConfigResponse) ToJsonString() string { 565 b, _ := json.Marshal(r) 566 return string(b) 567} 568 569// It is highly **NOT** recommended to use this function 570// because it has no param check, nor strict type check 571func (r *DescribeAutoBackupConfigResponse) FromJsonString(s string) error { 572 return json.Unmarshal([]byte(s), &r) 573} 574 575type DescribeBackupUrlRequest struct { 576 *tchttp.BaseRequest 577 578 // 实例ID 579 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 580 581 // 备份ID,通过DescribeInstanceBackups接口可查 582 BackupId *string `json:"BackupId,omitempty" name:"BackupId"` 583} 584 585func (r *DescribeBackupUrlRequest) ToJsonString() string { 586 b, _ := json.Marshal(r) 587 return string(b) 588} 589 590// It is highly **NOT** recommended to use this function 591// because it has no param check, nor strict type check 592func (r *DescribeBackupUrlRequest) FromJsonString(s string) error { 593 f := make(map[string]interface{}) 594 if err := json.Unmarshal([]byte(s), &f); err != nil { 595 return err 596 } 597 delete(f, "InstanceId") 598 delete(f, "BackupId") 599 if len(f) > 0 { 600 return errors.New("DescribeBackupUrlRequest has unknown keys!") 601 } 602 return json.Unmarshal([]byte(s), &r) 603} 604 605type DescribeBackupUrlResponse struct { 606 *tchttp.BaseResponse 607 Response *struct { 608 609 // 外网下载地址(6小时) 610 DownloadUrl []*string `json:"DownloadUrl,omitempty" name:"DownloadUrl" list` 611 612 // 内网下载地址(6小时) 613 InnerDownloadUrl []*string `json:"InnerDownloadUrl,omitempty" name:"InnerDownloadUrl" list` 614 615 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 616 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 617 } `json:"Response"` 618} 619 620func (r *DescribeBackupUrlResponse) ToJsonString() string { 621 b, _ := json.Marshal(r) 622 return string(b) 623} 624 625// It is highly **NOT** recommended to use this function 626// because it has no param check, nor strict type check 627func (r *DescribeBackupUrlResponse) FromJsonString(s string) error { 628 return json.Unmarshal([]byte(s), &r) 629} 630 631type DescribeCommonDBInstancesRequest struct { 632 *tchttp.BaseRequest 633 634 // 实例Vip信息列表 635 VpcIds []*int64 `json:"VpcIds,omitempty" name:"VpcIds" list` 636 637 // 子网id信息列表 638 SubnetIds []*int64 `json:"SubnetIds,omitempty" name:"SubnetIds" list` 639 640 // 计费类型过滤列表;0表示包年包月,1表示按量计费 641 PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` 642 643 // 实例id过滤信息列表 644 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` 645 646 // 实例名称过滤信息列表 647 InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames" list` 648 649 // 实例状态信息过滤列表 650 Status []*string `json:"Status,omitempty" name:"Status" list` 651 652 // 排序字段 653 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 654 655 // 排序方式 656 OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` 657 658 // 实例vip信息列表 659 Vips []*string `json:"Vips,omitempty" name:"Vips" list` 660 661 // vpc网络统一Id列表 662 UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds" list` 663 664 // 子网统一id列表 665 UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds" list` 666 667 // 数量限制,默认推荐100 668 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 669 670 // 偏移量,默认0 671 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 672} 673 674func (r *DescribeCommonDBInstancesRequest) ToJsonString() string { 675 b, _ := json.Marshal(r) 676 return string(b) 677} 678 679// It is highly **NOT** recommended to use this function 680// because it has no param check, nor strict type check 681func (r *DescribeCommonDBInstancesRequest) FromJsonString(s string) error { 682 f := make(map[string]interface{}) 683 if err := json.Unmarshal([]byte(s), &f); err != nil { 684 return err 685 } 686 delete(f, "VpcIds") 687 delete(f, "SubnetIds") 688 delete(f, "PayMode") 689 delete(f, "InstanceIds") 690 delete(f, "InstanceNames") 691 delete(f, "Status") 692 delete(f, "OrderBy") 693 delete(f, "OrderByType") 694 delete(f, "Vips") 695 delete(f, "UniqVpcIds") 696 delete(f, "UniqSubnetIds") 697 delete(f, "Limit") 698 delete(f, "Offset") 699 if len(f) > 0 { 700 return errors.New("DescribeCommonDBInstancesRequest has unknown keys!") 701 } 702 return json.Unmarshal([]byte(s), &r) 703} 704 705type DescribeCommonDBInstancesResponse struct { 706 *tchttp.BaseResponse 707 Response *struct { 708 709 // 实例数 710 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 711 712 // 实例信息 713 InstanceDetails []*RedisCommonInstanceList `json:"InstanceDetails,omitempty" name:"InstanceDetails" list` 714 715 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 716 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 717 } `json:"Response"` 718} 719 720func (r *DescribeCommonDBInstancesResponse) ToJsonString() string { 721 b, _ := json.Marshal(r) 722 return string(b) 723} 724 725// It is highly **NOT** recommended to use this function 726// because it has no param check, nor strict type check 727func (r *DescribeCommonDBInstancesResponse) FromJsonString(s string) error { 728 return json.Unmarshal([]byte(s), &r) 729} 730 731type DescribeDBSecurityGroupsRequest struct { 732 *tchttp.BaseRequest 733 734 // 数据库引擎名称,本接口取值:redis。 735 Product *string `json:"Product,omitempty" name:"Product"` 736 737 // 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。 738 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 739} 740 741func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string { 742 b, _ := json.Marshal(r) 743 return string(b) 744} 745 746// It is highly **NOT** recommended to use this function 747// because it has no param check, nor strict type check 748func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error { 749 f := make(map[string]interface{}) 750 if err := json.Unmarshal([]byte(s), &f); err != nil { 751 return err 752 } 753 delete(f, "Product") 754 delete(f, "InstanceId") 755 if len(f) > 0 { 756 return errors.New("DescribeDBSecurityGroupsRequest has unknown keys!") 757 } 758 return json.Unmarshal([]byte(s), &r) 759} 760 761type DescribeDBSecurityGroupsResponse struct { 762 *tchttp.BaseResponse 763 Response *struct { 764 765 // 安全组规则 766 Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups" list` 767 768 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 769 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 770 } `json:"Response"` 771} 772 773func (r *DescribeDBSecurityGroupsResponse) ToJsonString() string { 774 b, _ := json.Marshal(r) 775 return string(b) 776} 777 778// It is highly **NOT** recommended to use this function 779// because it has no param check, nor strict type check 780func (r *DescribeDBSecurityGroupsResponse) FromJsonString(s string) error { 781 return json.Unmarshal([]byte(s), &r) 782} 783 784type DescribeInstanceAccountRequest struct { 785 *tchttp.BaseRequest 786 787 // 实例ID 788 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 789 790 // 分页大小 791 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 792 793 // 分页偏移量 794 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 795} 796 797func (r *DescribeInstanceAccountRequest) ToJsonString() string { 798 b, _ := json.Marshal(r) 799 return string(b) 800} 801 802// It is highly **NOT** recommended to use this function 803// because it has no param check, nor strict type check 804func (r *DescribeInstanceAccountRequest) FromJsonString(s string) error { 805 f := make(map[string]interface{}) 806 if err := json.Unmarshal([]byte(s), &f); err != nil { 807 return err 808 } 809 delete(f, "InstanceId") 810 delete(f, "Limit") 811 delete(f, "Offset") 812 if len(f) > 0 { 813 return errors.New("DescribeInstanceAccountRequest has unknown keys!") 814 } 815 return json.Unmarshal([]byte(s), &r) 816} 817 818type DescribeInstanceAccountResponse struct { 819 *tchttp.BaseResponse 820 Response *struct { 821 822 // 账号详细信息 823 // 注意:此字段可能返回 null,表示取不到有效值。 824 Accounts []*Account `json:"Accounts,omitempty" name:"Accounts" list` 825 826 // 账号个数 827 // 注意:此字段可能返回 null,表示取不到有效值。 828 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 829 830 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 831 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 832 } `json:"Response"` 833} 834 835func (r *DescribeInstanceAccountResponse) ToJsonString() string { 836 b, _ := json.Marshal(r) 837 return string(b) 838} 839 840// It is highly **NOT** recommended to use this function 841// because it has no param check, nor strict type check 842func (r *DescribeInstanceAccountResponse) FromJsonString(s string) error { 843 return json.Unmarshal([]byte(s), &r) 844} 845 846type DescribeInstanceBackupsRequest struct { 847 *tchttp.BaseRequest 848 849 // 待操作的实例ID,可通过 DescribeInstance 接口返回值中的 InstanceId 获取。 850 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 851 852 // 实例列表大小,默认大小20 853 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 854 855 // 偏移量,取Limit整数倍 856 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 857 858 // 开始时间,格式如:2017-02-08 16:46:34。查询实例在 [beginTime, endTime] 时间段内开始备份的备份列表。 859 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` 860 861 // 结束时间,格式如:2017-02-08 19:09:26。查询实例在 [beginTime, endTime] 时间段内开始备份的备份列表。 862 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 863 864 // 1:备份在流程中,2:备份正常,3:备份转RDB文件处理中,4:已完成RDB转换,-1:备份已过期,-2:备份已删除。 865 Status []*int64 `json:"Status,omitempty" name:"Status" list` 866} 867 868func (r *DescribeInstanceBackupsRequest) ToJsonString() string { 869 b, _ := json.Marshal(r) 870 return string(b) 871} 872 873// It is highly **NOT** recommended to use this function 874// because it has no param check, nor strict type check 875func (r *DescribeInstanceBackupsRequest) FromJsonString(s string) error { 876 f := make(map[string]interface{}) 877 if err := json.Unmarshal([]byte(s), &f); err != nil { 878 return err 879 } 880 delete(f, "InstanceId") 881 delete(f, "Limit") 882 delete(f, "Offset") 883 delete(f, "BeginTime") 884 delete(f, "EndTime") 885 delete(f, "Status") 886 if len(f) > 0 { 887 return errors.New("DescribeInstanceBackupsRequest has unknown keys!") 888 } 889 return json.Unmarshal([]byte(s), &r) 890} 891 892type DescribeInstanceBackupsResponse struct { 893 *tchttp.BaseResponse 894 Response *struct { 895 896 // 备份总数 897 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 898 899 // 实例的备份数组 900 BackupSet []*RedisBackupSet `json:"BackupSet,omitempty" name:"BackupSet" list` 901 902 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 903 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 904 } `json:"Response"` 905} 906 907func (r *DescribeInstanceBackupsResponse) ToJsonString() string { 908 b, _ := json.Marshal(r) 909 return string(b) 910} 911 912// It is highly **NOT** recommended to use this function 913// because it has no param check, nor strict type check 914func (r *DescribeInstanceBackupsResponse) FromJsonString(s string) error { 915 return json.Unmarshal([]byte(s), &r) 916} 917 918type DescribeInstanceDTSInfoRequest struct { 919 *tchttp.BaseRequest 920 921 // 实例ID 922 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 923} 924 925func (r *DescribeInstanceDTSInfoRequest) ToJsonString() string { 926 b, _ := json.Marshal(r) 927 return string(b) 928} 929 930// It is highly **NOT** recommended to use this function 931// because it has no param check, nor strict type check 932func (r *DescribeInstanceDTSInfoRequest) FromJsonString(s string) error { 933 f := make(map[string]interface{}) 934 if err := json.Unmarshal([]byte(s), &f); err != nil { 935 return err 936 } 937 delete(f, "InstanceId") 938 if len(f) > 0 { 939 return errors.New("DescribeInstanceDTSInfoRequest has unknown keys!") 940 } 941 return json.Unmarshal([]byte(s), &r) 942} 943 944type DescribeInstanceDTSInfoResponse struct { 945 *tchttp.BaseResponse 946 Response *struct { 947 948 // DTS任务ID 949 // 注意:此字段可能返回 null,表示取不到有效值。 950 JobId *string `json:"JobId,omitempty" name:"JobId"` 951 952 // DTS任务名称 953 // 注意:此字段可能返回 null,表示取不到有效值。 954 JobName *string `json:"JobName,omitempty" name:"JobName"` 955 956 // 任务状态,取值为:1-创建中(Creating),3-校验中(Checking)4-校验通过(CheckPass),5-校验不通过(CheckNotPass),7-任务运行(Running),8-准备完成(ReadyComplete),9-任务成功(Success),10-任务失败(Failed),11-撤销中(Stopping),12-完成中(Completing) 957 // 注意:此字段可能返回 null,表示取不到有效值。 958 Status *int64 `json:"Status,omitempty" name:"Status"` 959 960 // 状态描述 961 // 注意:此字段可能返回 null,表示取不到有效值。 962 StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` 963 964 // 同步时延,单位:字节 965 // 注意:此字段可能返回 null,表示取不到有效值。 966 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 967 968 // 断开时间 969 // 注意:此字段可能返回 null,表示取不到有效值。 970 CutDownTime *string `json:"CutDownTime,omitempty" name:"CutDownTime"` 971 972 // 源实例信息 973 // 注意:此字段可能返回 null,表示取不到有效值。 974 SrcInfo *DescribeInstanceDTSInstanceInfo `json:"SrcInfo,omitempty" name:"SrcInfo"` 975 976 // 目标实例信息 977 // 注意:此字段可能返回 null,表示取不到有效值。 978 DstInfo *DescribeInstanceDTSInstanceInfo `json:"DstInfo,omitempty" name:"DstInfo"` 979 980 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 981 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 982 } `json:"Response"` 983} 984 985func (r *DescribeInstanceDTSInfoResponse) ToJsonString() string { 986 b, _ := json.Marshal(r) 987 return string(b) 988} 989 990// It is highly **NOT** recommended to use this function 991// because it has no param check, nor strict type check 992func (r *DescribeInstanceDTSInfoResponse) FromJsonString(s string) error { 993 return json.Unmarshal([]byte(s), &r) 994} 995 996type DescribeInstanceDTSInstanceInfo struct { 997 998 // 地域ID 999 // 注意:此字段可能返回 null,表示取不到有效值。 1000 RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` 1001 1002 // 实例ID 1003 // 注意:此字段可能返回 null,表示取不到有效值。 1004 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1005 1006 // 仓库ID 1007 // 注意:此字段可能返回 null,表示取不到有效值。 1008 SetId *int64 `json:"SetId,omitempty" name:"SetId"` 1009 1010 // 可用区ID 1011 // 注意:此字段可能返回 null,表示取不到有效值。 1012 ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` 1013 1014 // 实例类型 1015 // 注意:此字段可能返回 null,表示取不到有效值。 1016 Type *int64 `json:"Type,omitempty" name:"Type"` 1017 1018 // 实例名称 1019 // 注意:此字段可能返回 null,表示取不到有效值。 1020 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 1021 1022 // 实例访问地址 1023 // 注意:此字段可能返回 null,表示取不到有效值。 1024 Vip *string `json:"Vip,omitempty" name:"Vip"` 1025 1026 // 状态 1027 // 注意:此字段可能返回 null,表示取不到有效值。 1028 Status *int64 `json:"Status,omitempty" name:"Status"` 1029} 1030 1031type DescribeInstanceDealDetailRequest struct { 1032 *tchttp.BaseRequest 1033 1034 // 订单交易ID数组,即 [CreateInstances](https://cloud.tencent.com/document/api/239/20026) 的输出参数DealId。 1035 DealIds []*string `json:"DealIds,omitempty" name:"DealIds" list` 1036} 1037 1038func (r *DescribeInstanceDealDetailRequest) ToJsonString() string { 1039 b, _ := json.Marshal(r) 1040 return string(b) 1041} 1042 1043// It is highly **NOT** recommended to use this function 1044// because it has no param check, nor strict type check 1045func (r *DescribeInstanceDealDetailRequest) FromJsonString(s string) error { 1046 f := make(map[string]interface{}) 1047 if err := json.Unmarshal([]byte(s), &f); err != nil { 1048 return err 1049 } 1050 delete(f, "DealIds") 1051 if len(f) > 0 { 1052 return errors.New("DescribeInstanceDealDetailRequest has unknown keys!") 1053 } 1054 return json.Unmarshal([]byte(s), &r) 1055} 1056 1057type DescribeInstanceDealDetailResponse struct { 1058 *tchttp.BaseResponse 1059 Response *struct { 1060 1061 // 订单详细信息 1062 DealDetails []*TradeDealDetail `json:"DealDetails,omitempty" name:"DealDetails" list` 1063 1064 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1065 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1066 } `json:"Response"` 1067} 1068 1069func (r *DescribeInstanceDealDetailResponse) ToJsonString() string { 1070 b, _ := json.Marshal(r) 1071 return string(b) 1072} 1073 1074// It is highly **NOT** recommended to use this function 1075// because it has no param check, nor strict type check 1076func (r *DescribeInstanceDealDetailResponse) FromJsonString(s string) error { 1077 return json.Unmarshal([]byte(s), &r) 1078} 1079 1080type DescribeInstanceMonitorBigKeyRequest struct { 1081 *tchttp.BaseRequest 1082 1083 // 实例Id 1084 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1085 1086 // 请求类型:1——string类型,2——所有类型 1087 ReqType *int64 `json:"ReqType,omitempty" name:"ReqType"` 1088 1089 // 时间;例如:"20190219" 1090 Date *string `json:"Date,omitempty" name:"Date"` 1091} 1092 1093func (r *DescribeInstanceMonitorBigKeyRequest) ToJsonString() string { 1094 b, _ := json.Marshal(r) 1095 return string(b) 1096} 1097 1098// It is highly **NOT** recommended to use this function 1099// because it has no param check, nor strict type check 1100func (r *DescribeInstanceMonitorBigKeyRequest) FromJsonString(s string) error { 1101 f := make(map[string]interface{}) 1102 if err := json.Unmarshal([]byte(s), &f); err != nil { 1103 return err 1104 } 1105 delete(f, "InstanceId") 1106 delete(f, "ReqType") 1107 delete(f, "Date") 1108 if len(f) > 0 { 1109 return errors.New("DescribeInstanceMonitorBigKeyRequest has unknown keys!") 1110 } 1111 return json.Unmarshal([]byte(s), &r) 1112} 1113 1114type DescribeInstanceMonitorBigKeyResponse struct { 1115 *tchttp.BaseResponse 1116 Response *struct { 1117 1118 // 大Key详细信息 1119 Data []*BigKeyInfo `json:"Data,omitempty" name:"Data" list` 1120 1121 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1122 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1123 } `json:"Response"` 1124} 1125 1126func (r *DescribeInstanceMonitorBigKeyResponse) ToJsonString() string { 1127 b, _ := json.Marshal(r) 1128 return string(b) 1129} 1130 1131// It is highly **NOT** recommended to use this function 1132// because it has no param check, nor strict type check 1133func (r *DescribeInstanceMonitorBigKeyResponse) FromJsonString(s string) error { 1134 return json.Unmarshal([]byte(s), &r) 1135} 1136 1137type DescribeInstanceMonitorBigKeySizeDistRequest struct { 1138 *tchttp.BaseRequest 1139 1140 // 实例Id 1141 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1142 1143 // 时间;例如:"20190219" 1144 Date *string `json:"Date,omitempty" name:"Date"` 1145} 1146 1147func (r *DescribeInstanceMonitorBigKeySizeDistRequest) ToJsonString() string { 1148 b, _ := json.Marshal(r) 1149 return string(b) 1150} 1151 1152// It is highly **NOT** recommended to use this function 1153// because it has no param check, nor strict type check 1154func (r *DescribeInstanceMonitorBigKeySizeDistRequest) FromJsonString(s string) error { 1155 f := make(map[string]interface{}) 1156 if err := json.Unmarshal([]byte(s), &f); err != nil { 1157 return err 1158 } 1159 delete(f, "InstanceId") 1160 delete(f, "Date") 1161 if len(f) > 0 { 1162 return errors.New("DescribeInstanceMonitorBigKeySizeDistRequest has unknown keys!") 1163 } 1164 return json.Unmarshal([]byte(s), &r) 1165} 1166 1167type DescribeInstanceMonitorBigKeySizeDistResponse struct { 1168 *tchttp.BaseResponse 1169 Response *struct { 1170 1171 // 大Key大小分布详情 1172 Data []*DelayDistribution `json:"Data,omitempty" name:"Data" list` 1173 1174 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1175 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1176 } `json:"Response"` 1177} 1178 1179func (r *DescribeInstanceMonitorBigKeySizeDistResponse) ToJsonString() string { 1180 b, _ := json.Marshal(r) 1181 return string(b) 1182} 1183 1184// It is highly **NOT** recommended to use this function 1185// because it has no param check, nor strict type check 1186func (r *DescribeInstanceMonitorBigKeySizeDistResponse) FromJsonString(s string) error { 1187 return json.Unmarshal([]byte(s), &r) 1188} 1189 1190type DescribeInstanceMonitorBigKeyTypeDistRequest struct { 1191 *tchttp.BaseRequest 1192 1193 // 实例Id 1194 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1195 1196 // 时间;例如:"20190219" 1197 Date *string `json:"Date,omitempty" name:"Date"` 1198} 1199 1200func (r *DescribeInstanceMonitorBigKeyTypeDistRequest) ToJsonString() string { 1201 b, _ := json.Marshal(r) 1202 return string(b) 1203} 1204 1205// It is highly **NOT** recommended to use this function 1206// because it has no param check, nor strict type check 1207func (r *DescribeInstanceMonitorBigKeyTypeDistRequest) FromJsonString(s string) error { 1208 f := make(map[string]interface{}) 1209 if err := json.Unmarshal([]byte(s), &f); err != nil { 1210 return err 1211 } 1212 delete(f, "InstanceId") 1213 delete(f, "Date") 1214 if len(f) > 0 { 1215 return errors.New("DescribeInstanceMonitorBigKeyTypeDistRequest has unknown keys!") 1216 } 1217 return json.Unmarshal([]byte(s), &r) 1218} 1219 1220type DescribeInstanceMonitorBigKeyTypeDistResponse struct { 1221 *tchttp.BaseResponse 1222 Response *struct { 1223 1224 // 大Key类型分布详细信息 1225 Data []*BigKeyTypeInfo `json:"Data,omitempty" name:"Data" list` 1226 1227 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1228 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1229 } `json:"Response"` 1230} 1231 1232func (r *DescribeInstanceMonitorBigKeyTypeDistResponse) ToJsonString() string { 1233 b, _ := json.Marshal(r) 1234 return string(b) 1235} 1236 1237// It is highly **NOT** recommended to use this function 1238// because it has no param check, nor strict type check 1239func (r *DescribeInstanceMonitorBigKeyTypeDistResponse) FromJsonString(s string) error { 1240 return json.Unmarshal([]byte(s), &r) 1241} 1242 1243type DescribeInstanceMonitorHotKeyRequest struct { 1244 *tchttp.BaseRequest 1245 1246 // 实例Id 1247 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1248 1249 // 时间范围:1——实时,2——近30分钟,3——近6小时,4——近24小时 1250 SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` 1251} 1252 1253func (r *DescribeInstanceMonitorHotKeyRequest) ToJsonString() string { 1254 b, _ := json.Marshal(r) 1255 return string(b) 1256} 1257 1258// It is highly **NOT** recommended to use this function 1259// because it has no param check, nor strict type check 1260func (r *DescribeInstanceMonitorHotKeyRequest) FromJsonString(s string) error { 1261 f := make(map[string]interface{}) 1262 if err := json.Unmarshal([]byte(s), &f); err != nil { 1263 return err 1264 } 1265 delete(f, "InstanceId") 1266 delete(f, "SpanType") 1267 if len(f) > 0 { 1268 return errors.New("DescribeInstanceMonitorHotKeyRequest has unknown keys!") 1269 } 1270 return json.Unmarshal([]byte(s), &r) 1271} 1272 1273type DescribeInstanceMonitorHotKeyResponse struct { 1274 *tchttp.BaseResponse 1275 Response *struct { 1276 1277 // 热Key详细信息 1278 Data []*HotKeyInfo `json:"Data,omitempty" name:"Data" list` 1279 1280 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1281 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1282 } `json:"Response"` 1283} 1284 1285func (r *DescribeInstanceMonitorHotKeyResponse) ToJsonString() string { 1286 b, _ := json.Marshal(r) 1287 return string(b) 1288} 1289 1290// It is highly **NOT** recommended to use this function 1291// because it has no param check, nor strict type check 1292func (r *DescribeInstanceMonitorHotKeyResponse) FromJsonString(s string) error { 1293 return json.Unmarshal([]byte(s), &r) 1294} 1295 1296type DescribeInstanceMonitorSIPRequest struct { 1297 *tchttp.BaseRequest 1298 1299 // 实例Id 1300 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1301} 1302 1303func (r *DescribeInstanceMonitorSIPRequest) ToJsonString() string { 1304 b, _ := json.Marshal(r) 1305 return string(b) 1306} 1307 1308// It is highly **NOT** recommended to use this function 1309// because it has no param check, nor strict type check 1310func (r *DescribeInstanceMonitorSIPRequest) FromJsonString(s string) error { 1311 f := make(map[string]interface{}) 1312 if err := json.Unmarshal([]byte(s), &f); err != nil { 1313 return err 1314 } 1315 delete(f, "InstanceId") 1316 if len(f) > 0 { 1317 return errors.New("DescribeInstanceMonitorSIPRequest has unknown keys!") 1318 } 1319 return json.Unmarshal([]byte(s), &r) 1320} 1321 1322type DescribeInstanceMonitorSIPResponse struct { 1323 *tchttp.BaseResponse 1324 Response *struct { 1325 1326 // 访问来源信息 1327 Data []*SourceInfo `json:"Data,omitempty" name:"Data" list` 1328 1329 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1330 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1331 } `json:"Response"` 1332} 1333 1334func (r *DescribeInstanceMonitorSIPResponse) ToJsonString() string { 1335 b, _ := json.Marshal(r) 1336 return string(b) 1337} 1338 1339// It is highly **NOT** recommended to use this function 1340// because it has no param check, nor strict type check 1341func (r *DescribeInstanceMonitorSIPResponse) FromJsonString(s string) error { 1342 return json.Unmarshal([]byte(s), &r) 1343} 1344 1345type DescribeInstanceMonitorTookDistRequest struct { 1346 *tchttp.BaseRequest 1347 1348 // 实例Id 1349 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1350 1351 // 时间;例如:"20190219" 1352 Date *string `json:"Date,omitempty" name:"Date"` 1353 1354 // 时间范围:1——实时,2——近30分钟,3——近6小时,4——近24小时 1355 SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` 1356} 1357 1358func (r *DescribeInstanceMonitorTookDistRequest) ToJsonString() string { 1359 b, _ := json.Marshal(r) 1360 return string(b) 1361} 1362 1363// It is highly **NOT** recommended to use this function 1364// because it has no param check, nor strict type check 1365func (r *DescribeInstanceMonitorTookDistRequest) FromJsonString(s string) error { 1366 f := make(map[string]interface{}) 1367 if err := json.Unmarshal([]byte(s), &f); err != nil { 1368 return err 1369 } 1370 delete(f, "InstanceId") 1371 delete(f, "Date") 1372 delete(f, "SpanType") 1373 if len(f) > 0 { 1374 return errors.New("DescribeInstanceMonitorTookDistRequest has unknown keys!") 1375 } 1376 return json.Unmarshal([]byte(s), &r) 1377} 1378 1379type DescribeInstanceMonitorTookDistResponse struct { 1380 *tchttp.BaseResponse 1381 Response *struct { 1382 1383 // 时延分布信息 1384 Data []*DelayDistribution `json:"Data,omitempty" name:"Data" list` 1385 1386 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1387 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1388 } `json:"Response"` 1389} 1390 1391func (r *DescribeInstanceMonitorTookDistResponse) ToJsonString() string { 1392 b, _ := json.Marshal(r) 1393 return string(b) 1394} 1395 1396// It is highly **NOT** recommended to use this function 1397// because it has no param check, nor strict type check 1398func (r *DescribeInstanceMonitorTookDistResponse) FromJsonString(s string) error { 1399 return json.Unmarshal([]byte(s), &r) 1400} 1401 1402type DescribeInstanceMonitorTopNCmdRequest struct { 1403 *tchttp.BaseRequest 1404 1405 // 实例Id 1406 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1407 1408 // 时间范围:1——实时,2——近30分钟,3——近6小时,4——近24小时 1409 SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` 1410} 1411 1412func (r *DescribeInstanceMonitorTopNCmdRequest) ToJsonString() string { 1413 b, _ := json.Marshal(r) 1414 return string(b) 1415} 1416 1417// It is highly **NOT** recommended to use this function 1418// because it has no param check, nor strict type check 1419func (r *DescribeInstanceMonitorTopNCmdRequest) FromJsonString(s string) error { 1420 f := make(map[string]interface{}) 1421 if err := json.Unmarshal([]byte(s), &f); err != nil { 1422 return err 1423 } 1424 delete(f, "InstanceId") 1425 delete(f, "SpanType") 1426 if len(f) > 0 { 1427 return errors.New("DescribeInstanceMonitorTopNCmdRequest has unknown keys!") 1428 } 1429 return json.Unmarshal([]byte(s), &r) 1430} 1431 1432type DescribeInstanceMonitorTopNCmdResponse struct { 1433 *tchttp.BaseResponse 1434 Response *struct { 1435 1436 // 访问命令信息 1437 Data []*SourceCommand `json:"Data,omitempty" name:"Data" list` 1438 1439 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1440 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1441 } `json:"Response"` 1442} 1443 1444func (r *DescribeInstanceMonitorTopNCmdResponse) ToJsonString() string { 1445 b, _ := json.Marshal(r) 1446 return string(b) 1447} 1448 1449// It is highly **NOT** recommended to use this function 1450// because it has no param check, nor strict type check 1451func (r *DescribeInstanceMonitorTopNCmdResponse) FromJsonString(s string) error { 1452 return json.Unmarshal([]byte(s), &r) 1453} 1454 1455type DescribeInstanceMonitorTopNCmdTookRequest struct { 1456 *tchttp.BaseRequest 1457 1458 // 实例Id 1459 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1460 1461 // 时间范围:1——实时,2——近30分钟,3——近6小时,4——近24小时 1462 SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` 1463} 1464 1465func (r *DescribeInstanceMonitorTopNCmdTookRequest) ToJsonString() string { 1466 b, _ := json.Marshal(r) 1467 return string(b) 1468} 1469 1470// It is highly **NOT** recommended to use this function 1471// because it has no param check, nor strict type check 1472func (r *DescribeInstanceMonitorTopNCmdTookRequest) FromJsonString(s string) error { 1473 f := make(map[string]interface{}) 1474 if err := json.Unmarshal([]byte(s), &f); err != nil { 1475 return err 1476 } 1477 delete(f, "InstanceId") 1478 delete(f, "SpanType") 1479 if len(f) > 0 { 1480 return errors.New("DescribeInstanceMonitorTopNCmdTookRequest has unknown keys!") 1481 } 1482 return json.Unmarshal([]byte(s), &r) 1483} 1484 1485type DescribeInstanceMonitorTopNCmdTookResponse struct { 1486 *tchttp.BaseResponse 1487 Response *struct { 1488 1489 // 耗时详细信息 1490 Data []*CommandTake `json:"Data,omitempty" name:"Data" list` 1491 1492 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1493 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1494 } `json:"Response"` 1495} 1496 1497func (r *DescribeInstanceMonitorTopNCmdTookResponse) ToJsonString() string { 1498 b, _ := json.Marshal(r) 1499 return string(b) 1500} 1501 1502// It is highly **NOT** recommended to use this function 1503// because it has no param check, nor strict type check 1504func (r *DescribeInstanceMonitorTopNCmdTookResponse) FromJsonString(s string) error { 1505 return json.Unmarshal([]byte(s), &r) 1506} 1507 1508type DescribeInstanceNodeInfoRequest struct { 1509 *tchttp.BaseRequest 1510 1511 // 实例ID 1512 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1513 1514 // 列表大小 1515 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1516 1517 // 偏移量 1518 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1519} 1520 1521func (r *DescribeInstanceNodeInfoRequest) ToJsonString() string { 1522 b, _ := json.Marshal(r) 1523 return string(b) 1524} 1525 1526// It is highly **NOT** recommended to use this function 1527// because it has no param check, nor strict type check 1528func (r *DescribeInstanceNodeInfoRequest) FromJsonString(s string) error { 1529 f := make(map[string]interface{}) 1530 if err := json.Unmarshal([]byte(s), &f); err != nil { 1531 return err 1532 } 1533 delete(f, "InstanceId") 1534 delete(f, "Limit") 1535 delete(f, "Offset") 1536 if len(f) > 0 { 1537 return errors.New("DescribeInstanceNodeInfoRequest has unknown keys!") 1538 } 1539 return json.Unmarshal([]byte(s), &r) 1540} 1541 1542type DescribeInstanceNodeInfoResponse struct { 1543 *tchttp.BaseResponse 1544 Response *struct { 1545 1546 // proxy节点数量 1547 ProxyCount *int64 `json:"ProxyCount,omitempty" name:"ProxyCount"` 1548 1549 // proxy节点信息 1550 // 注意:此字段可能返回 null,表示取不到有效值。 1551 Proxy []*ProxyNodes `json:"Proxy,omitempty" name:"Proxy" list` 1552 1553 // redis节点数量 1554 RedisCount *int64 `json:"RedisCount,omitempty" name:"RedisCount"` 1555 1556 // redis节点信息 1557 // 注意:此字段可能返回 null,表示取不到有效值。 1558 Redis []*RedisNodes `json:"Redis,omitempty" name:"Redis" list` 1559 1560 // tendis节点数量 1561 TendisCount *int64 `json:"TendisCount,omitempty" name:"TendisCount"` 1562 1563 // tendis节点信息 1564 // 注意:此字段可能返回 null,表示取不到有效值。 1565 Tendis []*TendisNodes `json:"Tendis,omitempty" name:"Tendis" list` 1566 1567 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1568 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1569 } `json:"Response"` 1570} 1571 1572func (r *DescribeInstanceNodeInfoResponse) ToJsonString() string { 1573 b, _ := json.Marshal(r) 1574 return string(b) 1575} 1576 1577// It is highly **NOT** recommended to use this function 1578// because it has no param check, nor strict type check 1579func (r *DescribeInstanceNodeInfoResponse) FromJsonString(s string) error { 1580 return json.Unmarshal([]byte(s), &r) 1581} 1582 1583type DescribeInstanceParamRecordsRequest struct { 1584 *tchttp.BaseRequest 1585 1586 // 实例Id 1587 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1588 1589 // 分页大小 1590 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1591 1592 // 偏移量,取Limit整数倍 1593 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1594} 1595 1596func (r *DescribeInstanceParamRecordsRequest) ToJsonString() string { 1597 b, _ := json.Marshal(r) 1598 return string(b) 1599} 1600 1601// It is highly **NOT** recommended to use this function 1602// because it has no param check, nor strict type check 1603func (r *DescribeInstanceParamRecordsRequest) FromJsonString(s string) error { 1604 f := make(map[string]interface{}) 1605 if err := json.Unmarshal([]byte(s), &f); err != nil { 1606 return err 1607 } 1608 delete(f, "InstanceId") 1609 delete(f, "Limit") 1610 delete(f, "Offset") 1611 if len(f) > 0 { 1612 return errors.New("DescribeInstanceParamRecordsRequest has unknown keys!") 1613 } 1614 return json.Unmarshal([]byte(s), &r) 1615} 1616 1617type DescribeInstanceParamRecordsResponse struct { 1618 *tchttp.BaseResponse 1619 Response *struct { 1620 1621 // 总的修改历史记录数。 1622 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1623 1624 // 修改历史记录信息。 1625 InstanceParamHistory []*InstanceParamHistory `json:"InstanceParamHistory,omitempty" name:"InstanceParamHistory" list` 1626 1627 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1628 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1629 } `json:"Response"` 1630} 1631 1632func (r *DescribeInstanceParamRecordsResponse) ToJsonString() string { 1633 b, _ := json.Marshal(r) 1634 return string(b) 1635} 1636 1637// It is highly **NOT** recommended to use this function 1638// because it has no param check, nor strict type check 1639func (r *DescribeInstanceParamRecordsResponse) FromJsonString(s string) error { 1640 return json.Unmarshal([]byte(s), &r) 1641} 1642 1643type DescribeInstanceParamsRequest struct { 1644 *tchttp.BaseRequest 1645 1646 // 实例Id 1647 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1648} 1649 1650func (r *DescribeInstanceParamsRequest) ToJsonString() string { 1651 b, _ := json.Marshal(r) 1652 return string(b) 1653} 1654 1655// It is highly **NOT** recommended to use this function 1656// because it has no param check, nor strict type check 1657func (r *DescribeInstanceParamsRequest) FromJsonString(s string) error { 1658 f := make(map[string]interface{}) 1659 if err := json.Unmarshal([]byte(s), &f); err != nil { 1660 return err 1661 } 1662 delete(f, "InstanceId") 1663 if len(f) > 0 { 1664 return errors.New("DescribeInstanceParamsRequest has unknown keys!") 1665 } 1666 return json.Unmarshal([]byte(s), &r) 1667} 1668 1669type DescribeInstanceParamsResponse struct { 1670 *tchttp.BaseResponse 1671 Response *struct { 1672 1673 // 实例参数个数 1674 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1675 1676 // 实例枚举类型参数 1677 InstanceEnumParam []*InstanceEnumParam `json:"InstanceEnumParam,omitempty" name:"InstanceEnumParam" list` 1678 1679 // 实例整型参数 1680 InstanceIntegerParam []*InstanceIntegerParam `json:"InstanceIntegerParam,omitempty" name:"InstanceIntegerParam" list` 1681 1682 // 实例字符型参数 1683 InstanceTextParam []*InstanceTextParam `json:"InstanceTextParam,omitempty" name:"InstanceTextParam" list` 1684 1685 // 实例多选项型参数 1686 InstanceMultiParam []*InstanceMultiParam `json:"InstanceMultiParam,omitempty" name:"InstanceMultiParam" list` 1687 1688 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1689 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1690 } `json:"Response"` 1691} 1692 1693func (r *DescribeInstanceParamsResponse) ToJsonString() string { 1694 b, _ := json.Marshal(r) 1695 return string(b) 1696} 1697 1698// It is highly **NOT** recommended to use this function 1699// because it has no param check, nor strict type check 1700func (r *DescribeInstanceParamsResponse) FromJsonString(s string) error { 1701 return json.Unmarshal([]byte(s), &r) 1702} 1703 1704type DescribeInstanceSecurityGroupRequest struct { 1705 *tchttp.BaseRequest 1706 1707 // 实例列表 1708 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` 1709} 1710 1711func (r *DescribeInstanceSecurityGroupRequest) ToJsonString() string { 1712 b, _ := json.Marshal(r) 1713 return string(b) 1714} 1715 1716// It is highly **NOT** recommended to use this function 1717// because it has no param check, nor strict type check 1718func (r *DescribeInstanceSecurityGroupRequest) FromJsonString(s string) error { 1719 f := make(map[string]interface{}) 1720 if err := json.Unmarshal([]byte(s), &f); err != nil { 1721 return err 1722 } 1723 delete(f, "InstanceIds") 1724 if len(f) > 0 { 1725 return errors.New("DescribeInstanceSecurityGroupRequest has unknown keys!") 1726 } 1727 return json.Unmarshal([]byte(s), &r) 1728} 1729 1730type DescribeInstanceSecurityGroupResponse struct { 1731 *tchttp.BaseResponse 1732 Response *struct { 1733 1734 // 实例安全组信息 1735 InstanceSecurityGroupsDetail []*InstanceSecurityGroupDetail `json:"InstanceSecurityGroupsDetail,omitempty" name:"InstanceSecurityGroupsDetail" list` 1736 1737 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1738 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1739 } `json:"Response"` 1740} 1741 1742func (r *DescribeInstanceSecurityGroupResponse) ToJsonString() string { 1743 b, _ := json.Marshal(r) 1744 return string(b) 1745} 1746 1747// It is highly **NOT** recommended to use this function 1748// because it has no param check, nor strict type check 1749func (r *DescribeInstanceSecurityGroupResponse) FromJsonString(s string) error { 1750 return json.Unmarshal([]byte(s), &r) 1751} 1752 1753type DescribeInstanceShardsRequest struct { 1754 *tchttp.BaseRequest 1755 1756 // 实例id 1757 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1758 1759 // 是否过滤掉从节信息 1760 FilterSlave *bool `json:"FilterSlave,omitempty" name:"FilterSlave"` 1761} 1762 1763func (r *DescribeInstanceShardsRequest) ToJsonString() string { 1764 b, _ := json.Marshal(r) 1765 return string(b) 1766} 1767 1768// It is highly **NOT** recommended to use this function 1769// because it has no param check, nor strict type check 1770func (r *DescribeInstanceShardsRequest) FromJsonString(s string) error { 1771 f := make(map[string]interface{}) 1772 if err := json.Unmarshal([]byte(s), &f); err != nil { 1773 return err 1774 } 1775 delete(f, "InstanceId") 1776 delete(f, "FilterSlave") 1777 if len(f) > 0 { 1778 return errors.New("DescribeInstanceShardsRequest has unknown keys!") 1779 } 1780 return json.Unmarshal([]byte(s), &r) 1781} 1782 1783type DescribeInstanceShardsResponse struct { 1784 *tchttp.BaseResponse 1785 Response *struct { 1786 1787 // 实例分片列表信息 1788 InstanceShards []*InstanceClusterShard `json:"InstanceShards,omitempty" name:"InstanceShards" list` 1789 1790 // 实例分片节点总数 1791 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1792 1793 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1794 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1795 } `json:"Response"` 1796} 1797 1798func (r *DescribeInstanceShardsResponse) ToJsonString() string { 1799 b, _ := json.Marshal(r) 1800 return string(b) 1801} 1802 1803// It is highly **NOT** recommended to use this function 1804// because it has no param check, nor strict type check 1805func (r *DescribeInstanceShardsResponse) FromJsonString(s string) error { 1806 return json.Unmarshal([]byte(s), &r) 1807} 1808 1809type DescribeInstanceZoneInfoRequest struct { 1810 *tchttp.BaseRequest 1811 1812 // 实例Id,如:crs-6ubhgouj 1813 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1814} 1815 1816func (r *DescribeInstanceZoneInfoRequest) ToJsonString() string { 1817 b, _ := json.Marshal(r) 1818 return string(b) 1819} 1820 1821// It is highly **NOT** recommended to use this function 1822// because it has no param check, nor strict type check 1823func (r *DescribeInstanceZoneInfoRequest) FromJsonString(s string) error { 1824 f := make(map[string]interface{}) 1825 if err := json.Unmarshal([]byte(s), &f); err != nil { 1826 return err 1827 } 1828 delete(f, "InstanceId") 1829 if len(f) > 0 { 1830 return errors.New("DescribeInstanceZoneInfoRequest has unknown keys!") 1831 } 1832 return json.Unmarshal([]byte(s), &r) 1833} 1834 1835type DescribeInstanceZoneInfoResponse struct { 1836 *tchttp.BaseResponse 1837 Response *struct { 1838 1839 // 实例节点组的个数 1840 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1841 1842 // 实例节点组列表 1843 ReplicaGroups []*ReplicaGroup `json:"ReplicaGroups,omitempty" name:"ReplicaGroups" list` 1844 1845 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1846 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1847 } `json:"Response"` 1848} 1849 1850func (r *DescribeInstanceZoneInfoResponse) ToJsonString() string { 1851 b, _ := json.Marshal(r) 1852 return string(b) 1853} 1854 1855// It is highly **NOT** recommended to use this function 1856// because it has no param check, nor strict type check 1857func (r *DescribeInstanceZoneInfoResponse) FromJsonString(s string) error { 1858 return json.Unmarshal([]byte(s), &r) 1859} 1860 1861type DescribeInstancesRequest struct { 1862 *tchttp.BaseRequest 1863 1864 // 实例列表的大小,参数默认值20 1865 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1866 1867 // 偏移量,取Limit整数倍 1868 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1869 1870 // 实例Id,如:crs-6ubhgouj 1871 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1872 1873 // 枚举范围: projectId,createtime,instancename,type,curDeadline 1874 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 1875 1876 // 1倒序,0顺序,默认倒序 1877 OrderType *int64 `json:"OrderType,omitempty" name:"OrderType"` 1878 1879 // 私有网络ID数组,数组下标从0开始,如果不传则默认选择基础网络,如:47525 1880 VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds" list` 1881 1882 // 子网ID数组,数组下标从0开始,如:56854 1883 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` 1884 1885 // 项目ID 组成的数组,数组下标从0开始 1886 ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds" list` 1887 1888 // 查找实例的ID。 1889 SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` 1890 1891 // 实例名称 1892 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 1893 1894 // 私有网络ID数组,数组下标从0开始,如果不传则默认选择基础网络,如:vpc-sad23jfdfk 1895 UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds" list` 1896 1897 // 子网ID数组,数组下标从0开始,如:subnet-fdj24n34j2 1898 UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds" list` 1899 1900 // 地域ID,已经弃用,可通过公共参数Region查询对应地域 1901 RegionIds []*int64 `json:"RegionIds,omitempty" name:"RegionIds" list` 1902 1903 // 实例状态:0-待初始化,1-流程中,2-运行中,-2-已隔离,-3-待删除 1904 Status []*int64 `json:"Status,omitempty" name:"Status" list` 1905 1906 // 类型版本:1-单机版,2-主从版,3-集群版 1907 TypeVersion *int64 `json:"TypeVersion,omitempty" name:"TypeVersion"` 1908 1909 // 引擎信息:Redis-2.8,Redis-4.0,CKV 1910 EngineName *string `json:"EngineName,omitempty" name:"EngineName"` 1911 1912 // 续费模式:0 - 默认状态(手动续费);1 - 自动续费;2 - 明确不自动续费 1913 AutoRenew []*int64 `json:"AutoRenew,omitempty" name:"AutoRenew" list` 1914 1915 // 计费模式:postpaid-按量计费;prepaid-包年包月 1916 BillingMode *string `json:"BillingMode,omitempty" name:"BillingMode"` 1917 1918 // 实例类型:1-Redis老集群版;2-Redis 2.8主从版;3-CKV主从版;4-CKV集群版;5-Redis 2.8单机版;6-Redis 4.0主从版;7-Redis 4.0集群版;8 – Redis5.0主从版,9 – Redis5.0集群版, 1919 Type *int64 `json:"Type,omitempty" name:"Type"` 1920 1921 // 搜索关键词:支持实例Id、实例名称、完整IP 1922 SearchKeys []*string `json:"SearchKeys,omitempty" name:"SearchKeys" list` 1923 1924 // 内部参数,用户可忽略 1925 TypeList []*int64 `json:"TypeList,omitempty" name:"TypeList" list` 1926 1927 // 内部参数,用户可忽略 1928 MonitorVersion *string `json:"MonitorVersion,omitempty" name:"MonitorVersion"` 1929} 1930 1931func (r *DescribeInstancesRequest) ToJsonString() string { 1932 b, _ := json.Marshal(r) 1933 return string(b) 1934} 1935 1936// It is highly **NOT** recommended to use this function 1937// because it has no param check, nor strict type check 1938func (r *DescribeInstancesRequest) FromJsonString(s string) error { 1939 f := make(map[string]interface{}) 1940 if err := json.Unmarshal([]byte(s), &f); err != nil { 1941 return err 1942 } 1943 delete(f, "Limit") 1944 delete(f, "Offset") 1945 delete(f, "InstanceId") 1946 delete(f, "OrderBy") 1947 delete(f, "OrderType") 1948 delete(f, "VpcIds") 1949 delete(f, "SubnetIds") 1950 delete(f, "ProjectIds") 1951 delete(f, "SearchKey") 1952 delete(f, "InstanceName") 1953 delete(f, "UniqVpcIds") 1954 delete(f, "UniqSubnetIds") 1955 delete(f, "RegionIds") 1956 delete(f, "Status") 1957 delete(f, "TypeVersion") 1958 delete(f, "EngineName") 1959 delete(f, "AutoRenew") 1960 delete(f, "BillingMode") 1961 delete(f, "Type") 1962 delete(f, "SearchKeys") 1963 delete(f, "TypeList") 1964 delete(f, "MonitorVersion") 1965 if len(f) > 0 { 1966 return errors.New("DescribeInstancesRequest has unknown keys!") 1967 } 1968 return json.Unmarshal([]byte(s), &r) 1969} 1970 1971type DescribeInstancesResponse struct { 1972 *tchttp.BaseResponse 1973 Response *struct { 1974 1975 // 实例数 1976 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1977 1978 // 实例详细信息列表 1979 InstanceSet []*InstanceSet `json:"InstanceSet,omitempty" name:"InstanceSet" list` 1980 1981 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1982 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1983 } `json:"Response"` 1984} 1985 1986func (r *DescribeInstancesResponse) ToJsonString() string { 1987 b, _ := json.Marshal(r) 1988 return string(b) 1989} 1990 1991// It is highly **NOT** recommended to use this function 1992// because it has no param check, nor strict type check 1993func (r *DescribeInstancesResponse) FromJsonString(s string) error { 1994 return json.Unmarshal([]byte(s), &r) 1995} 1996 1997type DescribeMaintenanceWindowRequest struct { 1998 *tchttp.BaseRequest 1999 2000 // 实例ID 2001 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2002} 2003 2004func (r *DescribeMaintenanceWindowRequest) ToJsonString() string { 2005 b, _ := json.Marshal(r) 2006 return string(b) 2007} 2008 2009// It is highly **NOT** recommended to use this function 2010// because it has no param check, nor strict type check 2011func (r *DescribeMaintenanceWindowRequest) FromJsonString(s string) error { 2012 f := make(map[string]interface{}) 2013 if err := json.Unmarshal([]byte(s), &f); err != nil { 2014 return err 2015 } 2016 delete(f, "InstanceId") 2017 if len(f) > 0 { 2018 return errors.New("DescribeMaintenanceWindowRequest has unknown keys!") 2019 } 2020 return json.Unmarshal([]byte(s), &r) 2021} 2022 2023type DescribeMaintenanceWindowResponse struct { 2024 *tchttp.BaseResponse 2025 Response *struct { 2026 2027 // 维护时间窗起始时间,如:17:00 2028 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 2029 2030 // 维护时间窗结束时间,如:19:00 2031 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 2032 2033 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2034 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2035 } `json:"Response"` 2036} 2037 2038func (r *DescribeMaintenanceWindowResponse) ToJsonString() string { 2039 b, _ := json.Marshal(r) 2040 return string(b) 2041} 2042 2043// It is highly **NOT** recommended to use this function 2044// because it has no param check, nor strict type check 2045func (r *DescribeMaintenanceWindowResponse) FromJsonString(s string) error { 2046 return json.Unmarshal([]byte(s), &r) 2047} 2048 2049type DescribeProductInfoRequest struct { 2050 *tchttp.BaseRequest 2051} 2052 2053func (r *DescribeProductInfoRequest) ToJsonString() string { 2054 b, _ := json.Marshal(r) 2055 return string(b) 2056} 2057 2058// It is highly **NOT** recommended to use this function 2059// because it has no param check, nor strict type check 2060func (r *DescribeProductInfoRequest) FromJsonString(s string) error { 2061 f := make(map[string]interface{}) 2062 if err := json.Unmarshal([]byte(s), &f); err != nil { 2063 return err 2064 } 2065 if len(f) > 0 { 2066 return errors.New("DescribeProductInfoRequest has unknown keys!") 2067 } 2068 return json.Unmarshal([]byte(s), &r) 2069} 2070 2071type DescribeProductInfoResponse struct { 2072 *tchttp.BaseResponse 2073 Response *struct { 2074 2075 // 地域售卖信息 2076 RegionSet []*RegionConf `json:"RegionSet,omitempty" name:"RegionSet" list` 2077 2078 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2079 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2080 } `json:"Response"` 2081} 2082 2083func (r *DescribeProductInfoResponse) ToJsonString() string { 2084 b, _ := json.Marshal(r) 2085 return string(b) 2086} 2087 2088// It is highly **NOT** recommended to use this function 2089// because it has no param check, nor strict type check 2090func (r *DescribeProductInfoResponse) FromJsonString(s string) error { 2091 return json.Unmarshal([]byte(s), &r) 2092} 2093 2094type DescribeProjectSecurityGroupRequest struct { 2095 *tchttp.BaseRequest 2096 2097 // 0:默认项目;-1 所有项目; >0: 特定项目 2098 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 2099 2100 // 安全组Id 2101 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 2102} 2103 2104func (r *DescribeProjectSecurityGroupRequest) ToJsonString() string { 2105 b, _ := json.Marshal(r) 2106 return string(b) 2107} 2108 2109// It is highly **NOT** recommended to use this function 2110// because it has no param check, nor strict type check 2111func (r *DescribeProjectSecurityGroupRequest) FromJsonString(s string) error { 2112 f := make(map[string]interface{}) 2113 if err := json.Unmarshal([]byte(s), &f); err != nil { 2114 return err 2115 } 2116 delete(f, "ProjectId") 2117 delete(f, "SecurityGroupId") 2118 if len(f) > 0 { 2119 return errors.New("DescribeProjectSecurityGroupRequest has unknown keys!") 2120 } 2121 return json.Unmarshal([]byte(s), &r) 2122} 2123 2124type DescribeProjectSecurityGroupResponse struct { 2125 *tchttp.BaseResponse 2126 Response *struct { 2127 2128 // 项目安全组 2129 SecurityGroupDetails []*SecurityGroupDetail `json:"SecurityGroupDetails,omitempty" name:"SecurityGroupDetails" list` 2130 2131 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2132 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2133 } `json:"Response"` 2134} 2135 2136func (r *DescribeProjectSecurityGroupResponse) ToJsonString() string { 2137 b, _ := json.Marshal(r) 2138 return string(b) 2139} 2140 2141// It is highly **NOT** recommended to use this function 2142// because it has no param check, nor strict type check 2143func (r *DescribeProjectSecurityGroupResponse) FromJsonString(s string) error { 2144 return json.Unmarshal([]byte(s), &r) 2145} 2146 2147type DescribeProjectSecurityGroupsRequest struct { 2148 *tchttp.BaseRequest 2149 2150 // 数据库引擎名称:mariadb,cdb,cynosdb,dcdb,redis,mongodb 2151 Product *string `json:"Product,omitempty" name:"Product"` 2152 2153 // 项目Id。 2154 ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` 2155 2156 // 偏移量。 2157 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 2158 2159 // 拉取数量限制。 2160 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 2161 2162 // 搜索条件,支持安全组id或者安全组名称。 2163 SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` 2164} 2165 2166func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string { 2167 b, _ := json.Marshal(r) 2168 return string(b) 2169} 2170 2171// It is highly **NOT** recommended to use this function 2172// because it has no param check, nor strict type check 2173func (r *DescribeProjectSecurityGroupsRequest) FromJsonString(s string) error { 2174 f := make(map[string]interface{}) 2175 if err := json.Unmarshal([]byte(s), &f); err != nil { 2176 return err 2177 } 2178 delete(f, "Product") 2179 delete(f, "ProjectId") 2180 delete(f, "Offset") 2181 delete(f, "Limit") 2182 delete(f, "SearchKey") 2183 if len(f) > 0 { 2184 return errors.New("DescribeProjectSecurityGroupsRequest has unknown keys!") 2185 } 2186 return json.Unmarshal([]byte(s), &r) 2187} 2188 2189type DescribeProjectSecurityGroupsResponse struct { 2190 *tchttp.BaseResponse 2191 Response *struct { 2192 2193 // 安全组规则。 2194 Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups" list` 2195 2196 // 符合条件的安全组总数量。 2197 Total *uint64 `json:"Total,omitempty" name:"Total"` 2198 2199 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2200 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2201 } `json:"Response"` 2202} 2203 2204func (r *DescribeProjectSecurityGroupsResponse) ToJsonString() string { 2205 b, _ := json.Marshal(r) 2206 return string(b) 2207} 2208 2209// It is highly **NOT** recommended to use this function 2210// because it has no param check, nor strict type check 2211func (r *DescribeProjectSecurityGroupsResponse) FromJsonString(s string) error { 2212 return json.Unmarshal([]byte(s), &r) 2213} 2214 2215type DescribeProxySlowLogRequest struct { 2216 *tchttp.BaseRequest 2217 2218 // 实例Id 2219 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2220 2221 // 开始时间 2222 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` 2223 2224 // 结束时间 2225 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 2226 2227 // 慢查询阈值(单位:毫秒) 2228 MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` 2229 2230 // 页面大小 2231 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2232 2233 // 偏移量,取Limit整数倍 2234 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2235} 2236 2237func (r *DescribeProxySlowLogRequest) ToJsonString() string { 2238 b, _ := json.Marshal(r) 2239 return string(b) 2240} 2241 2242// It is highly **NOT** recommended to use this function 2243// because it has no param check, nor strict type check 2244func (r *DescribeProxySlowLogRequest) FromJsonString(s string) error { 2245 f := make(map[string]interface{}) 2246 if err := json.Unmarshal([]byte(s), &f); err != nil { 2247 return err 2248 } 2249 delete(f, "InstanceId") 2250 delete(f, "BeginTime") 2251 delete(f, "EndTime") 2252 delete(f, "MinQueryTime") 2253 delete(f, "Limit") 2254 delete(f, "Offset") 2255 if len(f) > 0 { 2256 return errors.New("DescribeProxySlowLogRequest has unknown keys!") 2257 } 2258 return json.Unmarshal([]byte(s), &r) 2259} 2260 2261type DescribeProxySlowLogResponse struct { 2262 *tchttp.BaseResponse 2263 Response *struct { 2264 2265 // 慢查询总数 2266 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2267 2268 // 慢查询详情 2269 InstanceProxySlowLogDetail []*InstanceProxySlowlogDetail `json:"InstanceProxySlowLogDetail,omitempty" name:"InstanceProxySlowLogDetail" list` 2270 2271 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2272 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2273 } `json:"Response"` 2274} 2275 2276func (r *DescribeProxySlowLogResponse) ToJsonString() string { 2277 b, _ := json.Marshal(r) 2278 return string(b) 2279} 2280 2281// It is highly **NOT** recommended to use this function 2282// because it has no param check, nor strict type check 2283func (r *DescribeProxySlowLogResponse) FromJsonString(s string) error { 2284 return json.Unmarshal([]byte(s), &r) 2285} 2286 2287type DescribeSlowLogRequest struct { 2288 *tchttp.BaseRequest 2289 2290 // 实例Id 2291 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2292 2293 // 开始时间 2294 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` 2295 2296 // 结束时间 2297 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 2298 2299 // 慢查询阈值(单位:微秒) 2300 MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` 2301 2302 // 页面大小 2303 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2304 2305 // 偏移量,取Limit整数倍 2306 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2307} 2308 2309func (r *DescribeSlowLogRequest) ToJsonString() string { 2310 b, _ := json.Marshal(r) 2311 return string(b) 2312} 2313 2314// It is highly **NOT** recommended to use this function 2315// because it has no param check, nor strict type check 2316func (r *DescribeSlowLogRequest) FromJsonString(s string) error { 2317 f := make(map[string]interface{}) 2318 if err := json.Unmarshal([]byte(s), &f); err != nil { 2319 return err 2320 } 2321 delete(f, "InstanceId") 2322 delete(f, "BeginTime") 2323 delete(f, "EndTime") 2324 delete(f, "MinQueryTime") 2325 delete(f, "Limit") 2326 delete(f, "Offset") 2327 if len(f) > 0 { 2328 return errors.New("DescribeSlowLogRequest has unknown keys!") 2329 } 2330 return json.Unmarshal([]byte(s), &r) 2331} 2332 2333type DescribeSlowLogResponse struct { 2334 *tchttp.BaseResponse 2335 Response *struct { 2336 2337 // 慢查询总数 2338 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2339 2340 // 慢查询详情 2341 InstanceSlowlogDetail []*InstanceSlowlogDetail `json:"InstanceSlowlogDetail,omitempty" name:"InstanceSlowlogDetail" list` 2342 2343 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2344 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2345 } `json:"Response"` 2346} 2347 2348func (r *DescribeSlowLogResponse) ToJsonString() string { 2349 b, _ := json.Marshal(r) 2350 return string(b) 2351} 2352 2353// It is highly **NOT** recommended to use this function 2354// because it has no param check, nor strict type check 2355func (r *DescribeSlowLogResponse) FromJsonString(s string) error { 2356 return json.Unmarshal([]byte(s), &r) 2357} 2358 2359type DescribeTaskInfoRequest struct { 2360 *tchttp.BaseRequest 2361 2362 // 任务ID 2363 TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` 2364} 2365 2366func (r *DescribeTaskInfoRequest) ToJsonString() string { 2367 b, _ := json.Marshal(r) 2368 return string(b) 2369} 2370 2371// It is highly **NOT** recommended to use this function 2372// because it has no param check, nor strict type check 2373func (r *DescribeTaskInfoRequest) FromJsonString(s string) error { 2374 f := make(map[string]interface{}) 2375 if err := json.Unmarshal([]byte(s), &f); err != nil { 2376 return err 2377 } 2378 delete(f, "TaskId") 2379 if len(f) > 0 { 2380 return errors.New("DescribeTaskInfoRequest has unknown keys!") 2381 } 2382 return json.Unmarshal([]byte(s), &r) 2383} 2384 2385type DescribeTaskInfoResponse struct { 2386 *tchttp.BaseResponse 2387 Response *struct { 2388 2389 // 任务状态preparing:待执行,running:执行中,succeed:成功,failed:失败,error 执行出错 2390 Status *string `json:"Status,omitempty" name:"Status"` 2391 2392 // 任务开始时间 2393 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 2394 2395 // 任务类型 2396 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` 2397 2398 // 实例的ID 2399 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2400 2401 // 任务信息,错误时显示错误信息。执行中与成功则为空 2402 TaskMessage *string `json:"TaskMessage,omitempty" name:"TaskMessage"` 2403 2404 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2405 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2406 } `json:"Response"` 2407} 2408 2409func (r *DescribeTaskInfoResponse) ToJsonString() string { 2410 b, _ := json.Marshal(r) 2411 return string(b) 2412} 2413 2414// It is highly **NOT** recommended to use this function 2415// because it has no param check, nor strict type check 2416func (r *DescribeTaskInfoResponse) FromJsonString(s string) error { 2417 return json.Unmarshal([]byte(s), &r) 2418} 2419 2420type DescribeTaskListRequest struct { 2421 *tchttp.BaseRequest 2422 2423 // 实例Id 2424 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2425 2426 // 实例名称 2427 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 2428 2429 // 分页大小 2430 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2431 2432 // 偏移量,取Limit整数倍(自动向下取整) 2433 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2434 2435 // 项目Id 2436 ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds" list` 2437 2438 // 任务类型 2439 TaskTypes []*string `json:"TaskTypes,omitempty" name:"TaskTypes" list` 2440 2441 // 起始时间 2442 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` 2443 2444 // 终止时间 2445 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 2446 2447 // 任务状态 2448 TaskStatus []*int64 `json:"TaskStatus,omitempty" name:"TaskStatus" list` 2449} 2450 2451func (r *DescribeTaskListRequest) ToJsonString() string { 2452 b, _ := json.Marshal(r) 2453 return string(b) 2454} 2455 2456// It is highly **NOT** recommended to use this function 2457// because it has no param check, nor strict type check 2458func (r *DescribeTaskListRequest) FromJsonString(s string) error { 2459 f := make(map[string]interface{}) 2460 if err := json.Unmarshal([]byte(s), &f); err != nil { 2461 return err 2462 } 2463 delete(f, "InstanceId") 2464 delete(f, "InstanceName") 2465 delete(f, "Limit") 2466 delete(f, "Offset") 2467 delete(f, "ProjectIds") 2468 delete(f, "TaskTypes") 2469 delete(f, "BeginTime") 2470 delete(f, "EndTime") 2471 delete(f, "TaskStatus") 2472 if len(f) > 0 { 2473 return errors.New("DescribeTaskListRequest has unknown keys!") 2474 } 2475 return json.Unmarshal([]byte(s), &r) 2476} 2477 2478type DescribeTaskListResponse struct { 2479 *tchttp.BaseResponse 2480 Response *struct { 2481 2482 // 任务总数 2483 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2484 2485 // 任务详细信息 2486 Tasks []*TaskInfoDetail `json:"Tasks,omitempty" name:"Tasks" list` 2487 2488 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2489 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2490 } `json:"Response"` 2491} 2492 2493func (r *DescribeTaskListResponse) ToJsonString() string { 2494 b, _ := json.Marshal(r) 2495 return string(b) 2496} 2497 2498// It is highly **NOT** recommended to use this function 2499// because it has no param check, nor strict type check 2500func (r *DescribeTaskListResponse) FromJsonString(s string) error { 2501 return json.Unmarshal([]byte(s), &r) 2502} 2503 2504type DescribeTendisSlowLogRequest struct { 2505 *tchttp.BaseRequest 2506 2507 // 实例Id:crs-ngvou0i1 2508 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2509 2510 // 开始时间:2019-09-08 12:12:41 2511 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` 2512 2513 // 结束时间:2019-09-09 12:12:41 2514 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 2515 2516 // 慢查询阈值(毫秒) 2517 MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` 2518 2519 // 页面大小:20 2520 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2521 2522 // 偏移量,取Limit整数倍 2523 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2524} 2525 2526func (r *DescribeTendisSlowLogRequest) ToJsonString() string { 2527 b, _ := json.Marshal(r) 2528 return string(b) 2529} 2530 2531// It is highly **NOT** recommended to use this function 2532// because it has no param check, nor strict type check 2533func (r *DescribeTendisSlowLogRequest) FromJsonString(s string) error { 2534 f := make(map[string]interface{}) 2535 if err := json.Unmarshal([]byte(s), &f); err != nil { 2536 return err 2537 } 2538 delete(f, "InstanceId") 2539 delete(f, "BeginTime") 2540 delete(f, "EndTime") 2541 delete(f, "MinQueryTime") 2542 delete(f, "Limit") 2543 delete(f, "Offset") 2544 if len(f) > 0 { 2545 return errors.New("DescribeTendisSlowLogRequest has unknown keys!") 2546 } 2547 return json.Unmarshal([]byte(s), &r) 2548} 2549 2550type DescribeTendisSlowLogResponse struct { 2551 *tchttp.BaseResponse 2552 Response *struct { 2553 2554 // 慢查询总数 2555 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2556 2557 // 慢查询详情 2558 TendisSlowLogDetail []*TendisSlowLogDetail `json:"TendisSlowLogDetail,omitempty" name:"TendisSlowLogDetail" list` 2559 2560 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2561 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2562 } `json:"Response"` 2563} 2564 2565func (r *DescribeTendisSlowLogResponse) ToJsonString() string { 2566 b, _ := json.Marshal(r) 2567 return string(b) 2568} 2569 2570// It is highly **NOT** recommended to use this function 2571// because it has no param check, nor strict type check 2572func (r *DescribeTendisSlowLogResponse) FromJsonString(s string) error { 2573 return json.Unmarshal([]byte(s), &r) 2574} 2575 2576type DestroyPostpaidInstanceRequest struct { 2577 *tchttp.BaseRequest 2578 2579 // 实例ID 2580 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2581} 2582 2583func (r *DestroyPostpaidInstanceRequest) ToJsonString() string { 2584 b, _ := json.Marshal(r) 2585 return string(b) 2586} 2587 2588// It is highly **NOT** recommended to use this function 2589// because it has no param check, nor strict type check 2590func (r *DestroyPostpaidInstanceRequest) FromJsonString(s string) error { 2591 f := make(map[string]interface{}) 2592 if err := json.Unmarshal([]byte(s), &f); err != nil { 2593 return err 2594 } 2595 delete(f, "InstanceId") 2596 if len(f) > 0 { 2597 return errors.New("DestroyPostpaidInstanceRequest has unknown keys!") 2598 } 2599 return json.Unmarshal([]byte(s), &r) 2600} 2601 2602type DestroyPostpaidInstanceResponse struct { 2603 *tchttp.BaseResponse 2604 Response *struct { 2605 2606 // 任务Id 2607 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 2608 2609 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2610 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2611 } `json:"Response"` 2612} 2613 2614func (r *DestroyPostpaidInstanceResponse) ToJsonString() string { 2615 b, _ := json.Marshal(r) 2616 return string(b) 2617} 2618 2619// It is highly **NOT** recommended to use this function 2620// because it has no param check, nor strict type check 2621func (r *DestroyPostpaidInstanceResponse) FromJsonString(s string) error { 2622 return json.Unmarshal([]byte(s), &r) 2623} 2624 2625type DestroyPrepaidInstanceRequest struct { 2626 *tchttp.BaseRequest 2627 2628 // 实例ID 2629 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2630} 2631 2632func (r *DestroyPrepaidInstanceRequest) ToJsonString() string { 2633 b, _ := json.Marshal(r) 2634 return string(b) 2635} 2636 2637// It is highly **NOT** recommended to use this function 2638// because it has no param check, nor strict type check 2639func (r *DestroyPrepaidInstanceRequest) FromJsonString(s string) error { 2640 f := make(map[string]interface{}) 2641 if err := json.Unmarshal([]byte(s), &f); err != nil { 2642 return err 2643 } 2644 delete(f, "InstanceId") 2645 if len(f) > 0 { 2646 return errors.New("DestroyPrepaidInstanceRequest has unknown keys!") 2647 } 2648 return json.Unmarshal([]byte(s), &r) 2649} 2650 2651type DestroyPrepaidInstanceResponse struct { 2652 *tchttp.BaseResponse 2653 Response *struct { 2654 2655 // 订单Id 2656 DealId *string `json:"DealId,omitempty" name:"DealId"` 2657 2658 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2659 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2660 } `json:"Response"` 2661} 2662 2663func (r *DestroyPrepaidInstanceResponse) ToJsonString() string { 2664 b, _ := json.Marshal(r) 2665 return string(b) 2666} 2667 2668// It is highly **NOT** recommended to use this function 2669// because it has no param check, nor strict type check 2670func (r *DestroyPrepaidInstanceResponse) FromJsonString(s string) error { 2671 return json.Unmarshal([]byte(s), &r) 2672} 2673 2674type DisableReplicaReadonlyRequest struct { 2675 *tchttp.BaseRequest 2676 2677 // 实例序号ID 2678 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2679} 2680 2681func (r *DisableReplicaReadonlyRequest) ToJsonString() string { 2682 b, _ := json.Marshal(r) 2683 return string(b) 2684} 2685 2686// It is highly **NOT** recommended to use this function 2687// because it has no param check, nor strict type check 2688func (r *DisableReplicaReadonlyRequest) FromJsonString(s string) error { 2689 f := make(map[string]interface{}) 2690 if err := json.Unmarshal([]byte(s), &f); err != nil { 2691 return err 2692 } 2693 delete(f, "InstanceId") 2694 if len(f) > 0 { 2695 return errors.New("DisableReplicaReadonlyRequest has unknown keys!") 2696 } 2697 return json.Unmarshal([]byte(s), &r) 2698} 2699 2700type DisableReplicaReadonlyResponse struct { 2701 *tchttp.BaseResponse 2702 Response *struct { 2703 2704 // 失败:ERROR,成功:OK 2705 Status *string `json:"Status,omitempty" name:"Status"` 2706 2707 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2708 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2709 } `json:"Response"` 2710} 2711 2712func (r *DisableReplicaReadonlyResponse) ToJsonString() string { 2713 b, _ := json.Marshal(r) 2714 return string(b) 2715} 2716 2717// It is highly **NOT** recommended to use this function 2718// because it has no param check, nor strict type check 2719func (r *DisableReplicaReadonlyResponse) FromJsonString(s string) error { 2720 return json.Unmarshal([]byte(s), &r) 2721} 2722 2723type DisassociateSecurityGroupsRequest struct { 2724 *tchttp.BaseRequest 2725 2726 // 数据库引擎名称:mariadb,cdb,cynosdb,dcdb,redis,mongodb 等。 2727 Product *string `json:"Product,omitempty" name:"Product"` 2728 2729 // 安全组Id。 2730 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 2731 2732 // 实例ID列表,一个或者多个实例Id组成的数组。 2733 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` 2734} 2735 2736func (r *DisassociateSecurityGroupsRequest) ToJsonString() string { 2737 b, _ := json.Marshal(r) 2738 return string(b) 2739} 2740 2741// It is highly **NOT** recommended to use this function 2742// because it has no param check, nor strict type check 2743func (r *DisassociateSecurityGroupsRequest) FromJsonString(s string) error { 2744 f := make(map[string]interface{}) 2745 if err := json.Unmarshal([]byte(s), &f); err != nil { 2746 return err 2747 } 2748 delete(f, "Product") 2749 delete(f, "SecurityGroupId") 2750 delete(f, "InstanceIds") 2751 if len(f) > 0 { 2752 return errors.New("DisassociateSecurityGroupsRequest has unknown keys!") 2753 } 2754 return json.Unmarshal([]byte(s), &r) 2755} 2756 2757type DisassociateSecurityGroupsResponse struct { 2758 *tchttp.BaseResponse 2759 Response *struct { 2760 2761 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2762 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2763 } `json:"Response"` 2764} 2765 2766func (r *DisassociateSecurityGroupsResponse) ToJsonString() string { 2767 b, _ := json.Marshal(r) 2768 return string(b) 2769} 2770 2771// It is highly **NOT** recommended to use this function 2772// because it has no param check, nor strict type check 2773func (r *DisassociateSecurityGroupsResponse) FromJsonString(s string) error { 2774 return json.Unmarshal([]byte(s), &r) 2775} 2776 2777type EnableReplicaReadonlyRequest struct { 2778 *tchttp.BaseRequest 2779 2780 // 实例序号ID 2781 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2782 2783 // 账号路由策略:填写master或者replication,表示路由主节点,从节点;不填路由策略默认为写主节点,读从节点 2784 ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` 2785} 2786 2787func (r *EnableReplicaReadonlyRequest) ToJsonString() string { 2788 b, _ := json.Marshal(r) 2789 return string(b) 2790} 2791 2792// It is highly **NOT** recommended to use this function 2793// because it has no param check, nor strict type check 2794func (r *EnableReplicaReadonlyRequest) FromJsonString(s string) error { 2795 f := make(map[string]interface{}) 2796 if err := json.Unmarshal([]byte(s), &f); err != nil { 2797 return err 2798 } 2799 delete(f, "InstanceId") 2800 delete(f, "ReadonlyPolicy") 2801 if len(f) > 0 { 2802 return errors.New("EnableReplicaReadonlyRequest has unknown keys!") 2803 } 2804 return json.Unmarshal([]byte(s), &r) 2805} 2806 2807type EnableReplicaReadonlyResponse struct { 2808 *tchttp.BaseResponse 2809 Response *struct { 2810 2811 // 错误:ERROR,正确OK。 2812 Status *string `json:"Status,omitempty" name:"Status"` 2813 2814 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2815 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2816 } `json:"Response"` 2817} 2818 2819func (r *EnableReplicaReadonlyResponse) ToJsonString() string { 2820 b, _ := json.Marshal(r) 2821 return string(b) 2822} 2823 2824// It is highly **NOT** recommended to use this function 2825// because it has no param check, nor strict type check 2826func (r *EnableReplicaReadonlyResponse) FromJsonString(s string) error { 2827 return json.Unmarshal([]byte(s), &r) 2828} 2829 2830type HotKeyInfo struct { 2831 2832 // 热Key 2833 Key *string `json:"Key,omitempty" name:"Key"` 2834 2835 // 类型 2836 Type *string `json:"Type,omitempty" name:"Type"` 2837 2838 // 数量 2839 Count *int64 `json:"Count,omitempty" name:"Count"` 2840} 2841 2842type Inbound struct { 2843 2844 // 策略,ACCEPT或者DROP。 2845 Action *string `json:"Action,omitempty" name:"Action"` 2846 2847 // 地址组id代表的地址集合。 2848 AddressModule *string `json:"AddressModule,omitempty" name:"AddressModule"` 2849 2850 // 来源Ip或Ip段,例如192.168.0.0/16。 2851 CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"` 2852 2853 // 描述。 2854 Desc *string `json:"Desc,omitempty" name:"Desc"` 2855 2856 // 网络协议,支持udp、tcp等。 2857 IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` 2858 2859 // 端口。 2860 PortRange *string `json:"PortRange,omitempty" name:"PortRange"` 2861 2862 // 服务组id代表的协议和端口集合。 2863 ServiceModule *string `json:"ServiceModule,omitempty" name:"ServiceModule"` 2864 2865 // 安全组id代表的地址集合。 2866 Id *string `json:"Id,omitempty" name:"Id"` 2867} 2868 2869type InquiryPriceCreateInstanceRequest struct { 2870 *tchttp.BaseRequest 2871 2872 // 实例所属的可用区ID,可参考[地域和可用区](https://cloud.tencent.com/document/product/239/4106) 。 2873 ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` 2874 2875 // 实例类型:2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构)。 2876 TypeId *uint64 `json:"TypeId,omitempty" name:"TypeId"` 2877 2878 // 内存容量,单位为MB, 数值需为1024的整数倍,具体规格以 [查询产品售卖规格](https://cloud.tencent.com/document/api/239/30600) 返回的规格为准。 2879 // TypeId为标准架构时,MemSize是实例总内存容量;TypeId为集群架构时,MemSize是单分片内存容量。 2880 MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` 2881 2882 // 实例数量,单次购买实例数量以 [查询产品售卖规格](https://cloud.tencent.com/document/api/239/30600) 返回的规格为准。 2883 GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` 2884 2885 // 购买时长,在创建包年包月实例的时候需要填写,按量计费实例填1即可,单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。 2886 Period *uint64 `json:"Period,omitempty" name:"Period"` 2887 2888 // 付费方式:0-按量计费,1-包年包月。 2889 BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` 2890 2891 // 实例分片数量,Redis2.8主从版、CKV主从版和Redis2.8单机版、Redis4.0主从版不需要填写。 2892 RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` 2893 2894 // 实例副本数量,Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写。 2895 RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` 2896 2897 // 是否支持副本只读,Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写。 2898 ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"` 2899} 2900 2901func (r *InquiryPriceCreateInstanceRequest) ToJsonString() string { 2902 b, _ := json.Marshal(r) 2903 return string(b) 2904} 2905 2906// It is highly **NOT** recommended to use this function 2907// because it has no param check, nor strict type check 2908func (r *InquiryPriceCreateInstanceRequest) FromJsonString(s string) error { 2909 f := make(map[string]interface{}) 2910 if err := json.Unmarshal([]byte(s), &f); err != nil { 2911 return err 2912 } 2913 delete(f, "ZoneId") 2914 delete(f, "TypeId") 2915 delete(f, "MemSize") 2916 delete(f, "GoodsNum") 2917 delete(f, "Period") 2918 delete(f, "BillingMode") 2919 delete(f, "RedisShardNum") 2920 delete(f, "RedisReplicasNum") 2921 delete(f, "ReplicasReadonly") 2922 if len(f) > 0 { 2923 return errors.New("InquiryPriceCreateInstanceRequest has unknown keys!") 2924 } 2925 return json.Unmarshal([]byte(s), &r) 2926} 2927 2928type InquiryPriceCreateInstanceResponse struct { 2929 *tchttp.BaseResponse 2930 Response *struct { 2931 2932 // 价格,单位:分 2933 // 注意:此字段可能返回 null,表示取不到有效值。 2934 Price *float64 `json:"Price,omitempty" name:"Price"` 2935 2936 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2937 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2938 } `json:"Response"` 2939} 2940 2941func (r *InquiryPriceCreateInstanceResponse) ToJsonString() string { 2942 b, _ := json.Marshal(r) 2943 return string(b) 2944} 2945 2946// It is highly **NOT** recommended to use this function 2947// because it has no param check, nor strict type check 2948func (r *InquiryPriceCreateInstanceResponse) FromJsonString(s string) error { 2949 return json.Unmarshal([]byte(s), &r) 2950} 2951 2952type InquiryPriceRenewInstanceRequest struct { 2953 *tchttp.BaseRequest 2954 2955 // 购买时长,单位:月 2956 Period *uint64 `json:"Period,omitempty" name:"Period"` 2957 2958 // 实例ID 2959 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 2960} 2961 2962func (r *InquiryPriceRenewInstanceRequest) ToJsonString() string { 2963 b, _ := json.Marshal(r) 2964 return string(b) 2965} 2966 2967// It is highly **NOT** recommended to use this function 2968// because it has no param check, nor strict type check 2969func (r *InquiryPriceRenewInstanceRequest) FromJsonString(s string) error { 2970 f := make(map[string]interface{}) 2971 if err := json.Unmarshal([]byte(s), &f); err != nil { 2972 return err 2973 } 2974 delete(f, "Period") 2975 delete(f, "InstanceId") 2976 if len(f) > 0 { 2977 return errors.New("InquiryPriceRenewInstanceRequest has unknown keys!") 2978 } 2979 return json.Unmarshal([]byte(s), &r) 2980} 2981 2982type InquiryPriceRenewInstanceResponse struct { 2983 *tchttp.BaseResponse 2984 Response *struct { 2985 2986 // 价格,单位:分 2987 // 注意:此字段可能返回 null,表示取不到有效值。 2988 Price *float64 `json:"Price,omitempty" name:"Price"` 2989 2990 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2991 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2992 } `json:"Response"` 2993} 2994 2995func (r *InquiryPriceRenewInstanceResponse) ToJsonString() string { 2996 b, _ := json.Marshal(r) 2997 return string(b) 2998} 2999 3000// It is highly **NOT** recommended to use this function 3001// because it has no param check, nor strict type check 3002func (r *InquiryPriceRenewInstanceResponse) FromJsonString(s string) error { 3003 return json.Unmarshal([]byte(s), &r) 3004} 3005 3006type InquiryPriceUpgradeInstanceRequest struct { 3007 *tchttp.BaseRequest 3008 3009 // 实例Id 3010 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3011 3012 // 分片大小 单位 MB 3013 MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` 3014 3015 // 分片数量,Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写 3016 RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` 3017 3018 // 副本数量,Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写 3019 RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` 3020} 3021 3022func (r *InquiryPriceUpgradeInstanceRequest) ToJsonString() string { 3023 b, _ := json.Marshal(r) 3024 return string(b) 3025} 3026 3027// It is highly **NOT** recommended to use this function 3028// because it has no param check, nor strict type check 3029func (r *InquiryPriceUpgradeInstanceRequest) FromJsonString(s string) error { 3030 f := make(map[string]interface{}) 3031 if err := json.Unmarshal([]byte(s), &f); err != nil { 3032 return err 3033 } 3034 delete(f, "InstanceId") 3035 delete(f, "MemSize") 3036 delete(f, "RedisShardNum") 3037 delete(f, "RedisReplicasNum") 3038 if len(f) > 0 { 3039 return errors.New("InquiryPriceUpgradeInstanceRequest has unknown keys!") 3040 } 3041 return json.Unmarshal([]byte(s), &r) 3042} 3043 3044type InquiryPriceUpgradeInstanceResponse struct { 3045 *tchttp.BaseResponse 3046 Response *struct { 3047 3048 // 价格,单位:分 3049 // 注意:此字段可能返回 null,表示取不到有效值。 3050 Price *float64 `json:"Price,omitempty" name:"Price"` 3051 3052 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3053 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3054 } `json:"Response"` 3055} 3056 3057func (r *InquiryPriceUpgradeInstanceResponse) ToJsonString() string { 3058 b, _ := json.Marshal(r) 3059 return string(b) 3060} 3061 3062// It is highly **NOT** recommended to use this function 3063// because it has no param check, nor strict type check 3064func (r *InquiryPriceUpgradeInstanceResponse) FromJsonString(s string) error { 3065 return json.Unmarshal([]byte(s), &r) 3066} 3067 3068type InstanceClusterNode struct { 3069 3070 // 节点名称 3071 Name *string `json:"Name,omitempty" name:"Name"` 3072 3073 // 实例运行时节点Id 3074 RunId *string `json:"RunId,omitempty" name:"RunId"` 3075 3076 // 集群角色:0-master;1-slave 3077 Role *int64 `json:"Role,omitempty" name:"Role"` 3078 3079 // 节点状态:0-readwrite, 1-read, 2-backup 3080 Status *int64 `json:"Status,omitempty" name:"Status"` 3081 3082 // 服务状态:0-down;1-on 3083 Connected *int64 `json:"Connected,omitempty" name:"Connected"` 3084 3085 // 节点创建时间 3086 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 3087 3088 // 节点下线时间 3089 DownTime *string `json:"DownTime,omitempty" name:"DownTime"` 3090 3091 // 节点slot分布 3092 Slots *string `json:"Slots,omitempty" name:"Slots"` 3093 3094 // 节点key分布 3095 Keys *int64 `json:"Keys,omitempty" name:"Keys"` 3096 3097 // 节点qps 3098 Qps *int64 `json:"Qps,omitempty" name:"Qps"` 3099 3100 // 节点qps倾斜度 3101 QpsSlope *float64 `json:"QpsSlope,omitempty" name:"QpsSlope"` 3102 3103 // 节点存储 3104 Storage *int64 `json:"Storage,omitempty" name:"Storage"` 3105 3106 // 节点存储倾斜度 3107 StorageSlope *float64 `json:"StorageSlope,omitempty" name:"StorageSlope"` 3108} 3109 3110type InstanceClusterShard struct { 3111 3112 // 分片节点名称 3113 ShardName *string `json:"ShardName,omitempty" name:"ShardName"` 3114 3115 // 分片节点Id 3116 ShardId *string `json:"ShardId,omitempty" name:"ShardId"` 3117 3118 // 角色 3119 Role *int64 `json:"Role,omitempty" name:"Role"` 3120 3121 // Key数量 3122 Keys *int64 `json:"Keys,omitempty" name:"Keys"` 3123 3124 // slot信息 3125 Slots *string `json:"Slots,omitempty" name:"Slots"` 3126 3127 // 使用容量 3128 Storage *int64 `json:"Storage,omitempty" name:"Storage"` 3129 3130 // 容量倾斜率 3131 StorageSlope *float64 `json:"StorageSlope,omitempty" name:"StorageSlope"` 3132 3133 // 实例运行时节点Id 3134 Runid *string `json:"Runid,omitempty" name:"Runid"` 3135 3136 // 服务状态:0-down;1-on 3137 Connected *int64 `json:"Connected,omitempty" name:"Connected"` 3138} 3139 3140type InstanceEnumParam struct { 3141 3142 // 参数名 3143 ParamName *string `json:"ParamName,omitempty" name:"ParamName"` 3144 3145 // 参数类型:enum 3146 ValueType *string `json:"ValueType,omitempty" name:"ValueType"` 3147 3148 // 修改后是否需要重启:true,false 3149 NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` 3150 3151 // 参数默认值 3152 DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` 3153 3154 // 当前运行参数值 3155 CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` 3156 3157 // 参数说明 3158 Tips *string `json:"Tips,omitempty" name:"Tips"` 3159 3160 // 参数可取值 3161 EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue" list` 3162 3163 // 参数状态, 1: 修改中, 2:修改完成 3164 Status *int64 `json:"Status,omitempty" name:"Status"` 3165} 3166 3167type InstanceIntegerParam struct { 3168 3169 // 参数名 3170 ParamName *string `json:"ParamName,omitempty" name:"ParamName"` 3171 3172 // 参数类型:integer 3173 ValueType *string `json:"ValueType,omitempty" name:"ValueType"` 3174 3175 // 修改后是否需要重启:true,false 3176 NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` 3177 3178 // 参数默认值 3179 DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` 3180 3181 // 当前运行参数值 3182 CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` 3183 3184 // 参数说明 3185 Tips *string `json:"Tips,omitempty" name:"Tips"` 3186 3187 // 参数最小值 3188 Min *string `json:"Min,omitempty" name:"Min"` 3189 3190 // 参数最大值 3191 Max *string `json:"Max,omitempty" name:"Max"` 3192 3193 // 参数状态, 1: 修改中, 2:修改完成 3194 Status *int64 `json:"Status,omitempty" name:"Status"` 3195 3196 // 参数单位 3197 // 注意:此字段可能返回 null,表示取不到有效值。 3198 Unit *string `json:"Unit,omitempty" name:"Unit"` 3199} 3200 3201type InstanceMultiParam struct { 3202 3203 // 参数名 3204 ParamName *string `json:"ParamName,omitempty" name:"ParamName"` 3205 3206 // 参数类型:multi 3207 ValueType *string `json:"ValueType,omitempty" name:"ValueType"` 3208 3209 // 修改后是否需要重启:true,false 3210 NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` 3211 3212 // 参数默认值 3213 DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` 3214 3215 // 当前运行参数值 3216 CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` 3217 3218 // 参数说明 3219 Tips *string `json:"Tips,omitempty" name:"Tips"` 3220 3221 // 参数说明 3222 EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue" list` 3223 3224 // 参数状态, 1: 修改中, 2:修改完成 3225 Status *int64 `json:"Status,omitempty" name:"Status"` 3226} 3227 3228type InstanceNode struct { 3229 3230 // Id 3231 Id *int64 `json:"Id,omitempty" name:"Id"` 3232 3233 // 节点详细信息 3234 InstanceClusterNode []*InstanceClusterNode `json:"InstanceClusterNode,omitempty" name:"InstanceClusterNode" list` 3235} 3236 3237type InstanceParam struct { 3238 3239 // 设置参数的名字 3240 Key *string `json:"Key,omitempty" name:"Key"` 3241 3242 // 设置参数的值 3243 Value *string `json:"Value,omitempty" name:"Value"` 3244} 3245 3246type InstanceParamHistory struct { 3247 3248 // 参数名称 3249 ParamName *string `json:"ParamName,omitempty" name:"ParamName"` 3250 3251 // 修改前值 3252 PreValue *string `json:"PreValue,omitempty" name:"PreValue"` 3253 3254 // 修改后值 3255 NewValue *string `json:"NewValue,omitempty" name:"NewValue"` 3256 3257 // 状态:1-参数配置修改中;2-参数配置修改成功;3-参数配置修改失败 3258 Status *int64 `json:"Status,omitempty" name:"Status"` 3259 3260 // 修改时间 3261 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` 3262} 3263 3264type InstanceProxySlowlogDetail struct { 3265 3266 // 慢查询耗时 3267 Duration *int64 `json:"Duration,omitempty" name:"Duration"` 3268 3269 // 客户端地址 3270 Client *string `json:"Client,omitempty" name:"Client"` 3271 3272 // 命令 3273 Command *string `json:"Command,omitempty" name:"Command"` 3274 3275 // 详细命令行信息 3276 CommandLine *string `json:"CommandLine,omitempty" name:"CommandLine"` 3277 3278 // 执行时间 3279 ExecuteTime *string `json:"ExecuteTime,omitempty" name:"ExecuteTime"` 3280} 3281 3282type InstanceSecurityGroupDetail struct { 3283 3284 // 实例Id 3285 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3286 3287 // 安全组信息 3288 SecurityGroupDetails []*SecurityGroupDetail `json:"SecurityGroupDetails,omitempty" name:"SecurityGroupDetails" list` 3289} 3290 3291type InstanceSet struct { 3292 3293 // 实例名称 3294 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 3295 3296 // 实例Id 3297 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3298 3299 // 用户的Appid 3300 Appid *int64 `json:"Appid,omitempty" name:"Appid"` 3301 3302 // 项目Id 3303 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 3304 3305 // 地域id 1--广州 4--上海 5-- 中国香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 21--印度 22--美东(弗吉尼亚)23--泰国 24--俄罗斯 25--日本 3306 RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` 3307 3308 // 区域id 3309 ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` 3310 3311 // vpc网络id 如:75101 3312 VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` 3313 3314 // vpc网络下子网id 如:46315 3315 SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` 3316 3317 // 实例当前状态,0:待初始化;1:实例在流程中;2:实例运行中;-2:实例已隔离;-3:实例待删除 3318 Status *int64 `json:"Status,omitempty" name:"Status"` 3319 3320 // 实例vip 3321 WanIp *string `json:"WanIp,omitempty" name:"WanIp"` 3322 3323 // 实例端口号 3324 Port *int64 `json:"Port,omitempty" name:"Port"` 3325 3326 // 实例创建时间 3327 Createtime *string `json:"Createtime,omitempty" name:"Createtime"` 3328 3329 // 实例容量大小,单位:MB 3330 Size *float64 `json:"Size,omitempty" name:"Size"` 3331 3332 // 该字段已废弃 3333 SizeUsed *float64 `json:"SizeUsed,omitempty" name:"SizeUsed"` 3334 3335 // 实例类型:1 – Redis2.8内存版(集群架构),2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构) 3336 Type *int64 `json:"Type,omitempty" name:"Type"` 3337 3338 // 实例是否设置自动续费标识,1:设置自动续费;0:未设置自动续费 3339 AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` 3340 3341 // 实例到期时间 3342 DeadlineTime *string `json:"DeadlineTime,omitempty" name:"DeadlineTime"` 3343 3344 // 引擎:社区版Redis、腾讯云CKV 3345 Engine *string `json:"Engine,omitempty" name:"Engine"` 3346 3347 // 产品类型:standalone – 标准版,cluster – 集群版 3348 ProductType *string `json:"ProductType,omitempty" name:"ProductType"` 3349 3350 // vpc网络id 如:vpc-fk33jsf43kgv 3351 UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` 3352 3353 // vpc网络下子网id 如:subnet-fd3j6l35mm0 3354 UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` 3355 3356 // 计费模式:0-按量计费,1-包年包月 3357 BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` 3358 3359 // 实例运行状态描述:如”实例运行中“ 3360 InstanceTitle *string `json:"InstanceTitle,omitempty" name:"InstanceTitle"` 3361 3362 // 计划下线时间 3363 OfflineTime *string `json:"OfflineTime,omitempty" name:"OfflineTime"` 3364 3365 // 流程中的实例,返回子状态 3366 SubStatus *int64 `json:"SubStatus,omitempty" name:"SubStatus"` 3367 3368 // 反亲和性标签 3369 Tags []*string `json:"Tags,omitempty" name:"Tags" list` 3370 3371 // 实例节点信息 3372 InstanceNode []*InstanceNode `json:"InstanceNode,omitempty" name:"InstanceNode" list` 3373 3374 // 分片大小 3375 RedisShardSize *int64 `json:"RedisShardSize,omitempty" name:"RedisShardSize"` 3376 3377 // 分片数量 3378 RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` 3379 3380 // 副本数量 3381 RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` 3382 3383 // 计费Id 3384 PriceId *int64 `json:"PriceId,omitempty" name:"PriceId"` 3385 3386 // 隔离时间 3387 CloseTime *string `json:"CloseTime,omitempty" name:"CloseTime"` 3388 3389 // 从节点读取权重 3390 SlaveReadWeight *int64 `json:"SlaveReadWeight,omitempty" name:"SlaveReadWeight"` 3391 3392 // 实例关联的标签信息 3393 // 注意:此字段可能返回 null,表示取不到有效值。 3394 InstanceTags []*InstanceTagInfo `json:"InstanceTags,omitempty" name:"InstanceTags" list` 3395 3396 // 项目名称 3397 // 注意:此字段可能返回 null,表示取不到有效值。 3398 ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"` 3399 3400 // 是否为免密实例,true-免密实例;false-非免密实例 3401 // 注意:此字段可能返回 null,表示取不到有效值。 3402 NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` 3403 3404 // 客户端连接数 3405 // 注意:此字段可能返回 null,表示取不到有效值。 3406 ClientLimit *int64 `json:"ClientLimit,omitempty" name:"ClientLimit"` 3407 3408 // DTS状态(内部参数,用户可忽略) 3409 // 注意:此字段可能返回 null,表示取不到有效值。 3410 DtsStatus *int64 `json:"DtsStatus,omitempty" name:"DtsStatus"` 3411 3412 // 分片带宽上限,单位MB 3413 // 注意:此字段可能返回 null,表示取不到有效值。 3414 NetLimit *int64 `json:"NetLimit,omitempty" name:"NetLimit"` 3415 3416 // 免密实例标识(内部参数,用户可忽略) 3417 // 注意:此字段可能返回 null,表示取不到有效值。 3418 PasswordFree *int64 `json:"PasswordFree,omitempty" name:"PasswordFree"` 3419 3420 // 实例只读标识(内部参数,用户可忽略) 3421 // 注意:此字段可能返回 null,表示取不到有效值。 3422 ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` 3423 3424 // 内部参数,用户可忽略 3425 // 注意:此字段可能返回 null,表示取不到有效值。 3426 Vip6 *string `json:"Vip6,omitempty" name:"Vip6"` 3427 3428 // 内部参数,用户可忽略 3429 // 注意:此字段可能返回 null,表示取不到有效值。 3430 RemainBandwidthDuration *string `json:"RemainBandwidthDuration,omitempty" name:"RemainBandwidthDuration"` 3431 3432 // Tendis实例的磁盘大小 3433 // 注意:此字段可能返回 null,表示取不到有效值。 3434 DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` 3435 3436 // 监控版本: 1m-分钟粒度监控,5s-5秒粒度监控 3437 // 注意:此字段可能返回 null,表示取不到有效值。 3438 MonitorVersion *string `json:"MonitorVersion,omitempty" name:"MonitorVersion"` 3439 3440 // 客户端最大连接数可设置的最小值 3441 // 注意:此字段可能返回 null,表示取不到有效值。 3442 ClientLimitMin *int64 `json:"ClientLimitMin,omitempty" name:"ClientLimitMin"` 3443 3444 // 客户端最大连接数可设置的最大值 3445 // 注意:此字段可能返回 null,表示取不到有效值。 3446 ClientLimitMax *int64 `json:"ClientLimitMax,omitempty" name:"ClientLimitMax"` 3447 3448 // 实例的节点详细信息 3449 // 注意:此字段可能返回 null,表示取不到有效值。 3450 NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet" list` 3451 3452 // 实例所在的地域信息,比如ap-guangzhou 3453 // 注意:此字段可能返回 null,表示取不到有效值。 3454 Region *string `json:"Region,omitempty" name:"Region"` 3455} 3456 3457type InstanceSlowlogDetail struct { 3458 3459 // 慢查询耗时 3460 Duration *int64 `json:"Duration,omitempty" name:"Duration"` 3461 3462 // 客户端地址 3463 Client *string `json:"Client,omitempty" name:"Client"` 3464 3465 // 命令 3466 Command *string `json:"Command,omitempty" name:"Command"` 3467 3468 // 详细命令行信息 3469 CommandLine *string `json:"CommandLine,omitempty" name:"CommandLine"` 3470 3471 // 执行时间 3472 ExecuteTime *string `json:"ExecuteTime,omitempty" name:"ExecuteTime"` 3473 3474 // 节点ID 3475 Node *string `json:"Node,omitempty" name:"Node"` 3476} 3477 3478type InstanceTagInfo struct { 3479 3480 // 标签键 3481 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` 3482 3483 // 标签值 3484 TagValue *string `json:"TagValue,omitempty" name:"TagValue"` 3485} 3486 3487type InstanceTextParam struct { 3488 3489 // 参数名 3490 ParamName *string `json:"ParamName,omitempty" name:"ParamName"` 3491 3492 // 参数类型:text 3493 ValueType *string `json:"ValueType,omitempty" name:"ValueType"` 3494 3495 // 修改后是否需要重启:true,false 3496 NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` 3497 3498 // 参数默认值 3499 DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` 3500 3501 // 当前运行参数值 3502 CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` 3503 3504 // 参数说明 3505 Tips *string `json:"Tips,omitempty" name:"Tips"` 3506 3507 // 参数可取值 3508 TextValue []*string `json:"TextValue,omitempty" name:"TextValue" list` 3509 3510 // 参数状态, 1: 修改中, 2:修改完成 3511 Status *int64 `json:"Status,omitempty" name:"Status"` 3512} 3513 3514type ManualBackupInstanceRequest struct { 3515 *tchttp.BaseRequest 3516 3517 // 待操作的实例ID,可通过 DescribeInstance接口返回值中的 InstanceId 获取。 3518 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3519 3520 // 备份的备注信息 3521 Remark *string `json:"Remark,omitempty" name:"Remark"` 3522} 3523 3524func (r *ManualBackupInstanceRequest) ToJsonString() string { 3525 b, _ := json.Marshal(r) 3526 return string(b) 3527} 3528 3529// It is highly **NOT** recommended to use this function 3530// because it has no param check, nor strict type check 3531func (r *ManualBackupInstanceRequest) FromJsonString(s string) error { 3532 f := make(map[string]interface{}) 3533 if err := json.Unmarshal([]byte(s), &f); err != nil { 3534 return err 3535 } 3536 delete(f, "InstanceId") 3537 delete(f, "Remark") 3538 if len(f) > 0 { 3539 return errors.New("ManualBackupInstanceRequest has unknown keys!") 3540 } 3541 return json.Unmarshal([]byte(s), &r) 3542} 3543 3544type ManualBackupInstanceResponse struct { 3545 *tchttp.BaseResponse 3546 Response *struct { 3547 3548 // 任务ID 3549 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 3550 3551 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3552 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3553 } `json:"Response"` 3554} 3555 3556func (r *ManualBackupInstanceResponse) ToJsonString() string { 3557 b, _ := json.Marshal(r) 3558 return string(b) 3559} 3560 3561// It is highly **NOT** recommended to use this function 3562// because it has no param check, nor strict type check 3563func (r *ManualBackupInstanceResponse) FromJsonString(s string) error { 3564 return json.Unmarshal([]byte(s), &r) 3565} 3566 3567type ModfiyInstancePasswordRequest struct { 3568 *tchttp.BaseRequest 3569 3570 // 实例ID 3571 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3572 3573 // 实例旧密码 3574 OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"` 3575 3576 // 实例新密码 3577 Password *string `json:"Password,omitempty" name:"Password"` 3578} 3579 3580func (r *ModfiyInstancePasswordRequest) ToJsonString() string { 3581 b, _ := json.Marshal(r) 3582 return string(b) 3583} 3584 3585// It is highly **NOT** recommended to use this function 3586// because it has no param check, nor strict type check 3587func (r *ModfiyInstancePasswordRequest) FromJsonString(s string) error { 3588 f := make(map[string]interface{}) 3589 if err := json.Unmarshal([]byte(s), &f); err != nil { 3590 return err 3591 } 3592 delete(f, "InstanceId") 3593 delete(f, "OldPassword") 3594 delete(f, "Password") 3595 if len(f) > 0 { 3596 return errors.New("ModfiyInstancePasswordRequest has unknown keys!") 3597 } 3598 return json.Unmarshal([]byte(s), &r) 3599} 3600 3601type ModfiyInstancePasswordResponse struct { 3602 *tchttp.BaseResponse 3603 Response *struct { 3604 3605 // 任务ID 3606 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 3607 3608 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3609 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3610 } `json:"Response"` 3611} 3612 3613func (r *ModfiyInstancePasswordResponse) ToJsonString() string { 3614 b, _ := json.Marshal(r) 3615 return string(b) 3616} 3617 3618// It is highly **NOT** recommended to use this function 3619// because it has no param check, nor strict type check 3620func (r *ModfiyInstancePasswordResponse) FromJsonString(s string) error { 3621 return json.Unmarshal([]byte(s), &r) 3622} 3623 3624type ModifyAutoBackupConfigRequest struct { 3625 *tchttp.BaseRequest 3626 3627 // 实例ID 3628 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3629 3630 // 日期 Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday 3631 WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays" list` 3632 3633 // 时间段 00:00-01:00, 01:00-02:00...... 23:00-00:00 3634 TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"` 3635 3636 // 自动备份类型: 1 “定时回档” 3637 AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"` 3638} 3639 3640func (r *ModifyAutoBackupConfigRequest) ToJsonString() string { 3641 b, _ := json.Marshal(r) 3642 return string(b) 3643} 3644 3645// It is highly **NOT** recommended to use this function 3646// because it has no param check, nor strict type check 3647func (r *ModifyAutoBackupConfigRequest) FromJsonString(s string) error { 3648 f := make(map[string]interface{}) 3649 if err := json.Unmarshal([]byte(s), &f); err != nil { 3650 return err 3651 } 3652 delete(f, "InstanceId") 3653 delete(f, "WeekDays") 3654 delete(f, "TimePeriod") 3655 delete(f, "AutoBackupType") 3656 if len(f) > 0 { 3657 return errors.New("ModifyAutoBackupConfigRequest has unknown keys!") 3658 } 3659 return json.Unmarshal([]byte(s), &r) 3660} 3661 3662type ModifyAutoBackupConfigResponse struct { 3663 *tchttp.BaseResponse 3664 Response *struct { 3665 3666 // 自动备份类型: 1 “定时回档” 3667 AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"` 3668 3669 // 日期Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday。 3670 WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays" list` 3671 3672 // 时间段 00:00-01:00, 01:00-02:00...... 23:00-00:00 3673 TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"` 3674 3675 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3676 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3677 } `json:"Response"` 3678} 3679 3680func (r *ModifyAutoBackupConfigResponse) ToJsonString() string { 3681 b, _ := json.Marshal(r) 3682 return string(b) 3683} 3684 3685// It is highly **NOT** recommended to use this function 3686// because it has no param check, nor strict type check 3687func (r *ModifyAutoBackupConfigResponse) FromJsonString(s string) error { 3688 return json.Unmarshal([]byte(s), &r) 3689} 3690 3691type ModifyConnectionConfigRequest struct { 3692 *tchttp.BaseRequest 3693 3694 // 实例的ID,长度在12-36之间。 3695 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3696 3697 // 附加带宽,大于0,单位MB。 3698 Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` 3699 3700 // 单分片的总连接数。 3701 // 未开启副本只读时,下限为10000,上限为40000; 3702 // 开启副本只读时,下限为10000,上限为10000×(只读副本数+3)。 3703 ClientLimit *int64 `json:"ClientLimit,omitempty" name:"ClientLimit"` 3704} 3705 3706func (r *ModifyConnectionConfigRequest) ToJsonString() string { 3707 b, _ := json.Marshal(r) 3708 return string(b) 3709} 3710 3711// It is highly **NOT** recommended to use this function 3712// because it has no param check, nor strict type check 3713func (r *ModifyConnectionConfigRequest) FromJsonString(s string) error { 3714 f := make(map[string]interface{}) 3715 if err := json.Unmarshal([]byte(s), &f); err != nil { 3716 return err 3717 } 3718 delete(f, "InstanceId") 3719 delete(f, "Bandwidth") 3720 delete(f, "ClientLimit") 3721 if len(f) > 0 { 3722 return errors.New("ModifyConnectionConfigRequest has unknown keys!") 3723 } 3724 return json.Unmarshal([]byte(s), &r) 3725} 3726 3727type ModifyConnectionConfigResponse struct { 3728 *tchttp.BaseResponse 3729 Response *struct { 3730 3731 // 任务ID 3732 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 3733 3734 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3735 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3736 } `json:"Response"` 3737} 3738 3739func (r *ModifyConnectionConfigResponse) ToJsonString() string { 3740 b, _ := json.Marshal(r) 3741 return string(b) 3742} 3743 3744// It is highly **NOT** recommended to use this function 3745// because it has no param check, nor strict type check 3746func (r *ModifyConnectionConfigResponse) FromJsonString(s string) error { 3747 return json.Unmarshal([]byte(s), &r) 3748} 3749 3750type ModifyDBInstanceSecurityGroupsRequest struct { 3751 *tchttp.BaseRequest 3752 3753 // 数据库引擎名称:mariadb,cdb,cynosdb,dcdb,redis,mongodb 等。 3754 Product *string `json:"Product,omitempty" name:"Product"` 3755 3756 // 要修改的安全组ID列表,一个或者多个安全组Id组成的数组。 3757 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` 3758 3759 // 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同 3760 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3761} 3762 3763func (r *ModifyDBInstanceSecurityGroupsRequest) ToJsonString() string { 3764 b, _ := json.Marshal(r) 3765 return string(b) 3766} 3767 3768// It is highly **NOT** recommended to use this function 3769// because it has no param check, nor strict type check 3770func (r *ModifyDBInstanceSecurityGroupsRequest) FromJsonString(s string) error { 3771 f := make(map[string]interface{}) 3772 if err := json.Unmarshal([]byte(s), &f); err != nil { 3773 return err 3774 } 3775 delete(f, "Product") 3776 delete(f, "SecurityGroupIds") 3777 delete(f, "InstanceId") 3778 if len(f) > 0 { 3779 return errors.New("ModifyDBInstanceSecurityGroupsRequest has unknown keys!") 3780 } 3781 return json.Unmarshal([]byte(s), &r) 3782} 3783 3784type ModifyDBInstanceSecurityGroupsResponse struct { 3785 *tchttp.BaseResponse 3786 Response *struct { 3787 3788 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3789 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3790 } `json:"Response"` 3791} 3792 3793func (r *ModifyDBInstanceSecurityGroupsResponse) ToJsonString() string { 3794 b, _ := json.Marshal(r) 3795 return string(b) 3796} 3797 3798// It is highly **NOT** recommended to use this function 3799// because it has no param check, nor strict type check 3800func (r *ModifyDBInstanceSecurityGroupsResponse) FromJsonString(s string) error { 3801 return json.Unmarshal([]byte(s), &r) 3802} 3803 3804type ModifyInstanceAccountRequest struct { 3805 *tchttp.BaseRequest 3806 3807 // 实例ID 3808 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3809 3810 // 子账号名称,如果要修改主账号,填root 3811 AccountName *string `json:"AccountName,omitempty" name:"AccountName"` 3812 3813 // 子账号密码 3814 AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"` 3815 3816 // 子账号描述信息 3817 Remark *string `json:"Remark,omitempty" name:"Remark"` 3818 3819 // 子账号路由策略:填写master或者slave,表示路由主节点,从节点 3820 ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` 3821 3822 // 子账号读写策略:填写r、w、rw,表示只读,只写,读写策略 3823 Privilege *string `json:"Privilege,omitempty" name:"Privilege"` 3824 3825 // true表示将主账号切换为免密账号,这里只适用于主账号,子账号不可免密 3826 NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` 3827} 3828 3829func (r *ModifyInstanceAccountRequest) ToJsonString() string { 3830 b, _ := json.Marshal(r) 3831 return string(b) 3832} 3833 3834// It is highly **NOT** recommended to use this function 3835// because it has no param check, nor strict type check 3836func (r *ModifyInstanceAccountRequest) FromJsonString(s string) error { 3837 f := make(map[string]interface{}) 3838 if err := json.Unmarshal([]byte(s), &f); err != nil { 3839 return err 3840 } 3841 delete(f, "InstanceId") 3842 delete(f, "AccountName") 3843 delete(f, "AccountPassword") 3844 delete(f, "Remark") 3845 delete(f, "ReadonlyPolicy") 3846 delete(f, "Privilege") 3847 delete(f, "NoAuth") 3848 if len(f) > 0 { 3849 return errors.New("ModifyInstanceAccountRequest has unknown keys!") 3850 } 3851 return json.Unmarshal([]byte(s), &r) 3852} 3853 3854type ModifyInstanceAccountResponse struct { 3855 *tchttp.BaseResponse 3856 Response *struct { 3857 3858 // 任务ID 3859 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 3860 3861 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3862 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3863 } `json:"Response"` 3864} 3865 3866func (r *ModifyInstanceAccountResponse) ToJsonString() string { 3867 b, _ := json.Marshal(r) 3868 return string(b) 3869} 3870 3871// It is highly **NOT** recommended to use this function 3872// because it has no param check, nor strict type check 3873func (r *ModifyInstanceAccountResponse) FromJsonString(s string) error { 3874 return json.Unmarshal([]byte(s), &r) 3875} 3876 3877type ModifyInstanceParamsRequest struct { 3878 *tchttp.BaseRequest 3879 3880 // 实例ID 3881 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3882 3883 // 实例修改的参数列表 3884 InstanceParams []*InstanceParam `json:"InstanceParams,omitempty" name:"InstanceParams" list` 3885} 3886 3887func (r *ModifyInstanceParamsRequest) ToJsonString() string { 3888 b, _ := json.Marshal(r) 3889 return string(b) 3890} 3891 3892// It is highly **NOT** recommended to use this function 3893// because it has no param check, nor strict type check 3894func (r *ModifyInstanceParamsRequest) FromJsonString(s string) error { 3895 f := make(map[string]interface{}) 3896 if err := json.Unmarshal([]byte(s), &f); err != nil { 3897 return err 3898 } 3899 delete(f, "InstanceId") 3900 delete(f, "InstanceParams") 3901 if len(f) > 0 { 3902 return errors.New("ModifyInstanceParamsRequest has unknown keys!") 3903 } 3904 return json.Unmarshal([]byte(s), &r) 3905} 3906 3907type ModifyInstanceParamsResponse struct { 3908 *tchttp.BaseResponse 3909 Response *struct { 3910 3911 // 修改是否成功。 3912 Changed *bool `json:"Changed,omitempty" name:"Changed"` 3913 3914 // 任务ID 3915 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 3916 3917 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3918 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3919 } `json:"Response"` 3920} 3921 3922func (r *ModifyInstanceParamsResponse) ToJsonString() string { 3923 b, _ := json.Marshal(r) 3924 return string(b) 3925} 3926 3927// It is highly **NOT** recommended to use this function 3928// because it has no param check, nor strict type check 3929func (r *ModifyInstanceParamsResponse) FromJsonString(s string) error { 3930 return json.Unmarshal([]byte(s), &r) 3931} 3932 3933type ModifyInstanceRequest struct { 3934 *tchttp.BaseRequest 3935 3936 // 修改实例操作,如填写:rename-表示实例重命名;modifyProject-修改实例所属项目;modifyAutoRenew-修改实例续费标记 3937 Operation *string `json:"Operation,omitempty" name:"Operation"` 3938 3939 // 实例Id 3940 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` 3941 3942 // 实例的新名称 3943 InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames" list` 3944 3945 // 项目Id 3946 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 3947 3948 // 自动续费标识。0 - 默认状态(手动续费);1 - 自动续费;2 - 明确不自动续费 3949 AutoRenews []*int64 `json:"AutoRenews,omitempty" name:"AutoRenews" list` 3950 3951 // 已经废弃 3952 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 3953 3954 // 已经废弃 3955 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 3956 3957 // 已经废弃 3958 AutoRenew *int64 `json:"AutoRenew,omitempty" name:"AutoRenew"` 3959} 3960 3961func (r *ModifyInstanceRequest) ToJsonString() string { 3962 b, _ := json.Marshal(r) 3963 return string(b) 3964} 3965 3966// It is highly **NOT** recommended to use this function 3967// because it has no param check, nor strict type check 3968func (r *ModifyInstanceRequest) FromJsonString(s string) error { 3969 f := make(map[string]interface{}) 3970 if err := json.Unmarshal([]byte(s), &f); err != nil { 3971 return err 3972 } 3973 delete(f, "Operation") 3974 delete(f, "InstanceIds") 3975 delete(f, "InstanceNames") 3976 delete(f, "ProjectId") 3977 delete(f, "AutoRenews") 3978 delete(f, "InstanceId") 3979 delete(f, "InstanceName") 3980 delete(f, "AutoRenew") 3981 if len(f) > 0 { 3982 return errors.New("ModifyInstanceRequest has unknown keys!") 3983 } 3984 return json.Unmarshal([]byte(s), &r) 3985} 3986 3987type ModifyInstanceResponse struct { 3988 *tchttp.BaseResponse 3989 Response *struct { 3990 3991 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3992 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3993 } `json:"Response"` 3994} 3995 3996func (r *ModifyInstanceResponse) ToJsonString() string { 3997 b, _ := json.Marshal(r) 3998 return string(b) 3999} 4000 4001// It is highly **NOT** recommended to use this function 4002// because it has no param check, nor strict type check 4003func (r *ModifyInstanceResponse) FromJsonString(s string) error { 4004 return json.Unmarshal([]byte(s), &r) 4005} 4006 4007type ModifyMaintenanceWindowRequest struct { 4008 *tchttp.BaseRequest 4009 4010 // 实例ID 4011 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4012 4013 // 维护时间窗起始时间,如:17:00 4014 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 4015 4016 // 维护时间窗结束时间,如:19:00 4017 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 4018} 4019 4020func (r *ModifyMaintenanceWindowRequest) ToJsonString() string { 4021 b, _ := json.Marshal(r) 4022 return string(b) 4023} 4024 4025// It is highly **NOT** recommended to use this function 4026// because it has no param check, nor strict type check 4027func (r *ModifyMaintenanceWindowRequest) FromJsonString(s string) error { 4028 f := make(map[string]interface{}) 4029 if err := json.Unmarshal([]byte(s), &f); err != nil { 4030 return err 4031 } 4032 delete(f, "InstanceId") 4033 delete(f, "StartTime") 4034 delete(f, "EndTime") 4035 if len(f) > 0 { 4036 return errors.New("ModifyMaintenanceWindowRequest has unknown keys!") 4037 } 4038 return json.Unmarshal([]byte(s), &r) 4039} 4040 4041type ModifyMaintenanceWindowResponse struct { 4042 *tchttp.BaseResponse 4043 Response *struct { 4044 4045 // 修改状态:success 或者 failed 4046 Status *string `json:"Status,omitempty" name:"Status"` 4047 4048 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4049 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4050 } `json:"Response"` 4051} 4052 4053func (r *ModifyMaintenanceWindowResponse) ToJsonString() string { 4054 b, _ := json.Marshal(r) 4055 return string(b) 4056} 4057 4058// It is highly **NOT** recommended to use this function 4059// because it has no param check, nor strict type check 4060func (r *ModifyMaintenanceWindowResponse) FromJsonString(s string) error { 4061 return json.Unmarshal([]byte(s), &r) 4062} 4063 4064type ModifyNetworkConfigRequest struct { 4065 *tchttp.BaseRequest 4066 4067 // 实例ID 4068 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4069 4070 // 操作类型:changeVip——修改实例VIP;changeVpc——修改实例子网;changeBaseToVpc——基础网络转VPC网络 4071 Operation *string `json:"Operation,omitempty" name:"Operation"` 4072 4073 // VIP地址,changeVip的时候填写,不填则默认分配 4074 Vip *string `json:"Vip,omitempty" name:"Vip"` 4075 4076 // 私有网络ID,changeVpc、changeBaseToVpc的时候需要提供 4077 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` 4078 4079 // 子网ID,changeVpc、changeBaseToVpc的时候需要提供 4080 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 4081} 4082 4083func (r *ModifyNetworkConfigRequest) ToJsonString() string { 4084 b, _ := json.Marshal(r) 4085 return string(b) 4086} 4087 4088// It is highly **NOT** recommended to use this function 4089// because it has no param check, nor strict type check 4090func (r *ModifyNetworkConfigRequest) FromJsonString(s string) error { 4091 f := make(map[string]interface{}) 4092 if err := json.Unmarshal([]byte(s), &f); err != nil { 4093 return err 4094 } 4095 delete(f, "InstanceId") 4096 delete(f, "Operation") 4097 delete(f, "Vip") 4098 delete(f, "VpcId") 4099 delete(f, "SubnetId") 4100 if len(f) > 0 { 4101 return errors.New("ModifyNetworkConfigRequest has unknown keys!") 4102 } 4103 return json.Unmarshal([]byte(s), &r) 4104} 4105 4106type ModifyNetworkConfigResponse struct { 4107 *tchttp.BaseResponse 4108 Response *struct { 4109 4110 // 执行状态:true|false 4111 Status *bool `json:"Status,omitempty" name:"Status"` 4112 4113 // 子网ID 4114 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 4115 4116 // 私有网络ID 4117 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` 4118 4119 // VIP地址 4120 Vip *string `json:"Vip,omitempty" name:"Vip"` 4121 4122 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4123 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4124 } `json:"Response"` 4125} 4126 4127func (r *ModifyNetworkConfigResponse) ToJsonString() string { 4128 b, _ := json.Marshal(r) 4129 return string(b) 4130} 4131 4132// It is highly **NOT** recommended to use this function 4133// because it has no param check, nor strict type check 4134func (r *ModifyNetworkConfigResponse) FromJsonString(s string) error { 4135 return json.Unmarshal([]byte(s), &r) 4136} 4137 4138type Outbound struct { 4139 4140 // 策略,ACCEPT或者DROP。 4141 Action *string `json:"Action,omitempty" name:"Action"` 4142 4143 // 地址组id代表的地址集合。 4144 AddressModule *string `json:"AddressModule,omitempty" name:"AddressModule"` 4145 4146 // 来源Ip或Ip段,例如192.168.0.0/16。 4147 CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"` 4148 4149 // 描述。 4150 Desc *string `json:"Desc,omitempty" name:"Desc"` 4151 4152 // 网络协议,支持udp、tcp等。 4153 IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` 4154 4155 // 端口。 4156 PortRange *string `json:"PortRange,omitempty" name:"PortRange"` 4157 4158 // 服务组id代表的协议和端口集合。 4159 ServiceModule *string `json:"ServiceModule,omitempty" name:"ServiceModule"` 4160 4161 // 安全组id代表的地址集合。 4162 Id *string `json:"Id,omitempty" name:"Id"` 4163} 4164 4165type ProductConf struct { 4166 4167 // 产品类型,2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机版),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构),10 – Redis4.0混合存储版Tendis 4168 Type *int64 `json:"Type,omitempty" name:"Type"` 4169 4170 // 产品名称,Redis主从版,CKV主从版,CKV集群版,Redis单机版,Redis集群版,混合存储版Tendis 4171 TypeName *string `json:"TypeName,omitempty" name:"TypeName"` 4172 4173 // 购买时的最小数量 4174 MinBuyNum *int64 `json:"MinBuyNum,omitempty" name:"MinBuyNum"` 4175 4176 // 购买时的最大数量 4177 MaxBuyNum *int64 `json:"MaxBuyNum,omitempty" name:"MaxBuyNum"` 4178 4179 // 产品是否售罄 4180 Saleout *bool `json:"Saleout,omitempty" name:"Saleout"` 4181 4182 // 产品引擎,腾讯云CKV或者社区版Redis 4183 Engine *string `json:"Engine,omitempty" name:"Engine"` 4184 4185 // 兼容版本,Redis-2.8,Redis-3.2,Redis-4.0 4186 Version *string `json:"Version,omitempty" name:"Version"` 4187 4188 // 规格总大小,单位G 4189 TotalSize []*string `json:"TotalSize,omitempty" name:"TotalSize" list` 4190 4191 // 每个分片大小,单位G 4192 ShardSize []*string `json:"ShardSize,omitempty" name:"ShardSize" list` 4193 4194 // 副本数量 4195 ReplicaNum []*string `json:"ReplicaNum,omitempty" name:"ReplicaNum" list` 4196 4197 // 分片数量 4198 ShardNum []*string `json:"ShardNum,omitempty" name:"ShardNum" list` 4199 4200 // 支持的计费模式,1-包年包月,0-按量计费 4201 PayMode *string `json:"PayMode,omitempty" name:"PayMode"` 4202 4203 // 是否支持副本只读 4204 EnableRepicaReadOnly *bool `json:"EnableRepicaReadOnly,omitempty" name:"EnableRepicaReadOnly"` 4205} 4206 4207type ProxyNodes struct { 4208 4209 // 节点ID 4210 // 注意:此字段可能返回 null,表示取不到有效值。 4211 NodeId *string `json:"NodeId,omitempty" name:"NodeId"` 4212} 4213 4214type RedisBackupSet struct { 4215 4216 // 开始备份的时间 4217 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 4218 4219 // 备份ID 4220 BackupId *string `json:"BackupId,omitempty" name:"BackupId"` 4221 4222 // 备份类型。 manualBackupInstance:用户发起的手动备份; systemBackupInstance:凌晨系统发起的备份 4223 BackupType *string `json:"BackupType,omitempty" name:"BackupType"` 4224 4225 // 备份状态。 1:"备份被其它流程锁定"; 2:"备份正常,没有被任何流程锁定"; -1:"备份已过期"; 3:"备份正在被导出"; 4:"备份导出成功" 4226 Status *int64 `json:"Status,omitempty" name:"Status"` 4227 4228 // 备份的备注信息 4229 Remark *string `json:"Remark,omitempty" name:"Remark"` 4230 4231 // 备份是否被锁定,0:未被锁定;1:已被锁定 4232 Locked *int64 `json:"Locked,omitempty" name:"Locked"` 4233} 4234 4235type RedisCommonInstanceList struct { 4236 4237 // 实例名称 4238 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 4239 4240 // 实例id 4241 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4242 4243 // 用户id 4244 AppId *int64 `json:"AppId,omitempty" name:"AppId"` 4245 4246 // 实例所属项目id 4247 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 4248 4249 // 实例接入区域 4250 Region *string `json:"Region,omitempty" name:"Region"` 4251 4252 // 实例接入zone 4253 Zone *string `json:"Zone,omitempty" name:"Zone"` 4254 4255 // 实例网络id 4256 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` 4257 4258 // 子网id 4259 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 4260 4261 // 实例状态信息,0-创建中,1-运行中 4262 Status *string `json:"Status,omitempty" name:"Status"` 4263 4264 // 实例网络ip 4265 Vips []*string `json:"Vips,omitempty" name:"Vips" list` 4266 4267 // 实例网络端口 4268 Vport *int64 `json:"Vport,omitempty" name:"Vport"` 4269 4270 // 实例创建时间 4271 Createtime *string `json:"Createtime,omitempty" name:"Createtime"` 4272 4273 // 计费类型,0-按量计费,1-包年包月 4274 PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` 4275 4276 // 网络类型,0-基础网络,1-VPC网络 4277 NetType *int64 `json:"NetType,omitempty" name:"NetType"` 4278} 4279 4280type RedisNode struct { 4281 4282 // 节点key的个数 4283 Keys *int64 `json:"Keys,omitempty" name:"Keys"` 4284 4285 // 节点slot分布 4286 Slot *string `json:"Slot,omitempty" name:"Slot"` 4287 4288 // 节点的序列ID 4289 NodeId *string `json:"NodeId,omitempty" name:"NodeId"` 4290 4291 // 节点的状态 4292 Status *string `json:"Status,omitempty" name:"Status"` 4293} 4294 4295type RedisNodeInfo struct { 4296 4297 // 节点类型,0 为主节点,1 为副本节点 4298 NodeType *int64 `json:"NodeType,omitempty" name:"NodeType"` 4299 4300 // 主节点或者副本节点的可用区ID 4301 ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` 4302 4303 // 主节点或者副本节点的ID,创建时不需要传递此参数。 4304 NodeId *int64 `json:"NodeId,omitempty" name:"NodeId"` 4305} 4306 4307type RedisNodes struct { 4308 4309 // 节点ID 4310 NodeId *string `json:"NodeId,omitempty" name:"NodeId"` 4311 4312 // 节点角色 4313 NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` 4314 4315 // 分片ID 4316 ClusterId *int64 `json:"ClusterId,omitempty" name:"ClusterId"` 4317} 4318 4319type RegionConf struct { 4320 4321 // 地域ID 4322 RegionId *string `json:"RegionId,omitempty" name:"RegionId"` 4323 4324 // 地域名称 4325 RegionName *string `json:"RegionName,omitempty" name:"RegionName"` 4326 4327 // 地域简称 4328 RegionShortName *string `json:"RegionShortName,omitempty" name:"RegionShortName"` 4329 4330 // 地域所在大区名称 4331 Area *string `json:"Area,omitempty" name:"Area"` 4332 4333 // 可用区信息 4334 ZoneSet []*ZoneCapacityConf `json:"ZoneSet,omitempty" name:"ZoneSet" list` 4335} 4336 4337type RenewInstanceRequest struct { 4338 *tchttp.BaseRequest 4339 4340 // 购买时长,单位:月 4341 Period *uint64 `json:"Period,omitempty" name:"Period"` 4342 4343 // 实例ID 4344 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4345} 4346 4347func (r *RenewInstanceRequest) ToJsonString() string { 4348 b, _ := json.Marshal(r) 4349 return string(b) 4350} 4351 4352// It is highly **NOT** recommended to use this function 4353// because it has no param check, nor strict type check 4354func (r *RenewInstanceRequest) FromJsonString(s string) error { 4355 f := make(map[string]interface{}) 4356 if err := json.Unmarshal([]byte(s), &f); err != nil { 4357 return err 4358 } 4359 delete(f, "Period") 4360 delete(f, "InstanceId") 4361 if len(f) > 0 { 4362 return errors.New("RenewInstanceRequest has unknown keys!") 4363 } 4364 return json.Unmarshal([]byte(s), &r) 4365} 4366 4367type RenewInstanceResponse struct { 4368 *tchttp.BaseResponse 4369 Response *struct { 4370 4371 // 交易ID 4372 DealId *string `json:"DealId,omitempty" name:"DealId"` 4373 4374 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4375 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4376 } `json:"Response"` 4377} 4378 4379func (r *RenewInstanceResponse) ToJsonString() string { 4380 b, _ := json.Marshal(r) 4381 return string(b) 4382} 4383 4384// It is highly **NOT** recommended to use this function 4385// because it has no param check, nor strict type check 4386func (r *RenewInstanceResponse) FromJsonString(s string) error { 4387 return json.Unmarshal([]byte(s), &r) 4388} 4389 4390type ReplicaGroup struct { 4391 4392 // 节点组ID 4393 GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` 4394 4395 // 节点组的名称,主节点为空 4396 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` 4397 4398 // 节点的可用区ID,比如ap-guangzhou-1 4399 ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"` 4400 4401 // 节点组类型,master为主节点,replica为副本节点 4402 Role *string `json:"Role,omitempty" name:"Role"` 4403 4404 // 节点组节点列表 4405 RedisNodes []*RedisNode `json:"RedisNodes,omitempty" name:"RedisNodes" list` 4406} 4407 4408type ResetPasswordRequest struct { 4409 *tchttp.BaseRequest 4410 4411 // Redis实例ID 4412 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4413 4414 // 重置的密码(切换为免密实例时,可不传;其他情况必传) 4415 Password *string `json:"Password,omitempty" name:"Password"` 4416 4417 // 是否切换免密实例,false-切换为非免密码实例,true-切换为免密码实例;默认false 4418 NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` 4419} 4420 4421func (r *ResetPasswordRequest) ToJsonString() string { 4422 b, _ := json.Marshal(r) 4423 return string(b) 4424} 4425 4426// It is highly **NOT** recommended to use this function 4427// because it has no param check, nor strict type check 4428func (r *ResetPasswordRequest) FromJsonString(s string) error { 4429 f := make(map[string]interface{}) 4430 if err := json.Unmarshal([]byte(s), &f); err != nil { 4431 return err 4432 } 4433 delete(f, "InstanceId") 4434 delete(f, "Password") 4435 delete(f, "NoAuth") 4436 if len(f) > 0 { 4437 return errors.New("ResetPasswordRequest has unknown keys!") 4438 } 4439 return json.Unmarshal([]byte(s), &r) 4440} 4441 4442type ResetPasswordResponse struct { 4443 *tchttp.BaseResponse 4444 Response *struct { 4445 4446 // 任务ID(修改密码时的任务ID,如果时切换免密码或者非免密码实例,则无需关注此返回值) 4447 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 4448 4449 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4450 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4451 } `json:"Response"` 4452} 4453 4454func (r *ResetPasswordResponse) ToJsonString() string { 4455 b, _ := json.Marshal(r) 4456 return string(b) 4457} 4458 4459// It is highly **NOT** recommended to use this function 4460// because it has no param check, nor strict type check 4461func (r *ResetPasswordResponse) FromJsonString(s string) error { 4462 return json.Unmarshal([]byte(s), &r) 4463} 4464 4465type ResourceTag struct { 4466 4467 // 标签key 4468 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` 4469 4470 // 标签value 4471 TagValue *string `json:"TagValue,omitempty" name:"TagValue"` 4472} 4473 4474type RestoreInstanceRequest struct { 4475 *tchttp.BaseRequest 4476 4477 // 待操作的实例ID,可通过 DescribeRedis 接口返回值中的 redisId 获取。 4478 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4479 4480 // 备份ID,可通过 GetRedisBackupList 接口返回值中的 backupId 获取 4481 BackupId *string `json:"BackupId,omitempty" name:"BackupId"` 4482 4483 // 实例密码,恢复实例时,需要校验实例密码(免密实例不需要传密码) 4484 Password *string `json:"Password,omitempty" name:"Password"` 4485} 4486 4487func (r *RestoreInstanceRequest) ToJsonString() string { 4488 b, _ := json.Marshal(r) 4489 return string(b) 4490} 4491 4492// It is highly **NOT** recommended to use this function 4493// because it has no param check, nor strict type check 4494func (r *RestoreInstanceRequest) FromJsonString(s string) error { 4495 f := make(map[string]interface{}) 4496 if err := json.Unmarshal([]byte(s), &f); err != nil { 4497 return err 4498 } 4499 delete(f, "InstanceId") 4500 delete(f, "BackupId") 4501 delete(f, "Password") 4502 if len(f) > 0 { 4503 return errors.New("RestoreInstanceRequest has unknown keys!") 4504 } 4505 return json.Unmarshal([]byte(s), &r) 4506} 4507 4508type RestoreInstanceResponse struct { 4509 *tchttp.BaseResponse 4510 Response *struct { 4511 4512 // 任务ID,可通过 DescribeTaskInfo 接口查询任务执行状态 4513 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 4514 4515 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4516 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4517 } `json:"Response"` 4518} 4519 4520func (r *RestoreInstanceResponse) ToJsonString() string { 4521 b, _ := json.Marshal(r) 4522 return string(b) 4523} 4524 4525// It is highly **NOT** recommended to use this function 4526// because it has no param check, nor strict type check 4527func (r *RestoreInstanceResponse) FromJsonString(s string) error { 4528 return json.Unmarshal([]byte(s), &r) 4529} 4530 4531type SecurityGroup struct { 4532 4533 // 创建时间,时间格式:yyyy-mm-dd hh:mm:ss。 4534 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 4535 4536 // 项目ID。 4537 ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` 4538 4539 // 安全组ID。 4540 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 4541 4542 // 安全组名称。 4543 SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"` 4544 4545 // 安全组备注。 4546 SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"` 4547 4548 // 出站规则。 4549 Outbound []*Outbound `json:"Outbound,omitempty" name:"Outbound" list` 4550 4551 // 入站规则。 4552 Inbound []*Inbound `json:"Inbound,omitempty" name:"Inbound" list` 4553} 4554 4555type SecurityGroupDetail struct { 4556 4557 // 项目Id 4558 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 4559 4560 // 创建时间 4561 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 4562 4563 // 安全组Id 4564 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` 4565 4566 // 安全组名称 4567 SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"` 4568 4569 // 安全组标记 4570 SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"` 4571 4572 // 安全组入站规则 4573 InboundRule []*SecurityGroupsInboundAndOutbound `json:"InboundRule,omitempty" name:"InboundRule" list` 4574 4575 // 安全组出站规则 4576 OutboundRule []*SecurityGroupsInboundAndOutbound `json:"OutboundRule,omitempty" name:"OutboundRule" list` 4577} 4578 4579type SecurityGroupsInboundAndOutbound struct { 4580 4581 // 执行动作 4582 Action *string `json:"Action,omitempty" name:"Action"` 4583 4584 // IP地址 4585 Ip *string `json:"Ip,omitempty" name:"Ip"` 4586 4587 // 端口号 4588 Port *string `json:"Port,omitempty" name:"Port"` 4589 4590 // 协议类型 4591 Proto *string `json:"Proto,omitempty" name:"Proto"` 4592} 4593 4594type SourceCommand struct { 4595 4596 // 命令 4597 Cmd *string `json:"Cmd,omitempty" name:"Cmd"` 4598 4599 // 执行次数 4600 Count *int64 `json:"Count,omitempty" name:"Count"` 4601} 4602 4603type SourceInfo struct { 4604 4605 // 来源IP 4606 Ip *string `json:"Ip,omitempty" name:"Ip"` 4607 4608 // 连接数 4609 Conn *int64 `json:"Conn,omitempty" name:"Conn"` 4610 4611 // 命令 4612 Cmd *int64 `json:"Cmd,omitempty" name:"Cmd"` 4613} 4614 4615type StartupInstanceRequest struct { 4616 *tchttp.BaseRequest 4617 4618 // 实例id 4619 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4620} 4621 4622func (r *StartupInstanceRequest) ToJsonString() string { 4623 b, _ := json.Marshal(r) 4624 return string(b) 4625} 4626 4627// It is highly **NOT** recommended to use this function 4628// because it has no param check, nor strict type check 4629func (r *StartupInstanceRequest) FromJsonString(s string) error { 4630 f := make(map[string]interface{}) 4631 if err := json.Unmarshal([]byte(s), &f); err != nil { 4632 return err 4633 } 4634 delete(f, "InstanceId") 4635 if len(f) > 0 { 4636 return errors.New("StartupInstanceRequest has unknown keys!") 4637 } 4638 return json.Unmarshal([]byte(s), &r) 4639} 4640 4641type StartupInstanceResponse struct { 4642 *tchttp.BaseResponse 4643 Response *struct { 4644 4645 // 任务id 4646 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 4647 4648 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4649 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4650 } `json:"Response"` 4651} 4652 4653func (r *StartupInstanceResponse) ToJsonString() string { 4654 b, _ := json.Marshal(r) 4655 return string(b) 4656} 4657 4658// It is highly **NOT** recommended to use this function 4659// because it has no param check, nor strict type check 4660func (r *StartupInstanceResponse) FromJsonString(s string) error { 4661 return json.Unmarshal([]byte(s), &r) 4662} 4663 4664type SwitchInstanceVipRequest struct { 4665 *tchttp.BaseRequest 4666 4667 // 源实例ID 4668 SrcInstanceId *string `json:"SrcInstanceId,omitempty" name:"SrcInstanceId"` 4669 4670 // 目标实例ID 4671 DstInstanceId *string `json:"DstInstanceId,omitempty" name:"DstInstanceId"` 4672 4673 // 单位为秒。源实例与目标实例间DTS已断开时间,如果DTS断开时间大于TimeDelay,则不切换VIP,建议尽量根据业务设置一个可接受的值。 4674 TimeDelay *int64 `json:"TimeDelay,omitempty" name:"TimeDelay"` 4675 4676 // 在DTS断开的情况下是否强制切换。1:强制切换,0:不强制切换 4677 ForceSwitch *int64 `json:"ForceSwitch,omitempty" name:"ForceSwitch"` 4678 4679 // now: 立即切换,syncComplete:等待同步完成后切换 4680 SwitchTime *string `json:"SwitchTime,omitempty" name:"SwitchTime"` 4681} 4682 4683func (r *SwitchInstanceVipRequest) ToJsonString() string { 4684 b, _ := json.Marshal(r) 4685 return string(b) 4686} 4687 4688// It is highly **NOT** recommended to use this function 4689// because it has no param check, nor strict type check 4690func (r *SwitchInstanceVipRequest) FromJsonString(s string) error { 4691 f := make(map[string]interface{}) 4692 if err := json.Unmarshal([]byte(s), &f); err != nil { 4693 return err 4694 } 4695 delete(f, "SrcInstanceId") 4696 delete(f, "DstInstanceId") 4697 delete(f, "TimeDelay") 4698 delete(f, "ForceSwitch") 4699 delete(f, "SwitchTime") 4700 if len(f) > 0 { 4701 return errors.New("SwitchInstanceVipRequest has unknown keys!") 4702 } 4703 return json.Unmarshal([]byte(s), &r) 4704} 4705 4706type SwitchInstanceVipResponse struct { 4707 *tchttp.BaseResponse 4708 Response *struct { 4709 4710 // 任务ID 4711 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 4712 4713 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4714 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4715 } `json:"Response"` 4716} 4717 4718func (r *SwitchInstanceVipResponse) ToJsonString() string { 4719 b, _ := json.Marshal(r) 4720 return string(b) 4721} 4722 4723// It is highly **NOT** recommended to use this function 4724// because it has no param check, nor strict type check 4725func (r *SwitchInstanceVipResponse) FromJsonString(s string) error { 4726 return json.Unmarshal([]byte(s), &r) 4727} 4728 4729type TaskInfoDetail struct { 4730 4731 // 任务Id 4732 // 注意:此字段可能返回 null,表示取不到有效值。 4733 TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` 4734 4735 // 开始时间 4736 // 注意:此字段可能返回 null,表示取不到有效值。 4737 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 4738 4739 // 任务类型 4740 // 注意:此字段可能返回 null,表示取不到有效值。 4741 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` 4742 4743 // 实例名称 4744 // 注意:此字段可能返回 null,表示取不到有效值。 4745 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` 4746 4747 // 实例Id 4748 // 注意:此字段可能返回 null,表示取不到有效值。 4749 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4750 4751 // 项目Id 4752 // 注意:此字段可能返回 null,表示取不到有效值。 4753 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` 4754 4755 // 任务进度 4756 // 注意:此字段可能返回 null,表示取不到有效值。 4757 Progress *float64 `json:"Progress,omitempty" name:"Progress"` 4758 4759 // 结束时间 4760 // 注意:此字段可能返回 null,表示取不到有效值。 4761 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 4762 4763 // 任务状态 4764 // 注意:此字段可能返回 null,表示取不到有效值。 4765 Result *int64 `json:"Result,omitempty" name:"Result"` 4766} 4767 4768type TendisNodes struct { 4769 4770 // 节点ID 4771 NodeId *string `json:"NodeId,omitempty" name:"NodeId"` 4772 4773 // 节点角色 4774 NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` 4775} 4776 4777type TendisSlowLogDetail struct { 4778 4779 // 执行时间 4780 ExecuteTime *string `json:"ExecuteTime,omitempty" name:"ExecuteTime"` 4781 4782 // 慢查询耗时(毫秒) 4783 Duration *int64 `json:"Duration,omitempty" name:"Duration"` 4784 4785 // 命令 4786 Command *string `json:"Command,omitempty" name:"Command"` 4787 4788 // 详细命令行信息 4789 CommandLine *string `json:"CommandLine,omitempty" name:"CommandLine"` 4790 4791 // 节点ID 4792 Node *string `json:"Node,omitempty" name:"Node"` 4793} 4794 4795type TradeDealDetail struct { 4796 4797 // 订单号ID,调用云API时使用此ID 4798 DealId *string `json:"DealId,omitempty" name:"DealId"` 4799 4800 // 长订单ID,反馈订单问题给官方客服使用此ID 4801 DealName *string `json:"DealName,omitempty" name:"DealName"` 4802 4803 // 可用区id 4804 ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` 4805 4806 // 订单关联的实例数 4807 GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` 4808 4809 // 创建用户uin 4810 Creater *string `json:"Creater,omitempty" name:"Creater"` 4811 4812 // 订单创建时间 4813 CreatTime *string `json:"CreatTime,omitempty" name:"CreatTime"` 4814 4815 // 订单超时时间 4816 OverdueTime *string `json:"OverdueTime,omitempty" name:"OverdueTime"` 4817 4818 // 订单完成时间 4819 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 4820 4821 // 订单状态 1:未支付 2:已支付,未发货 3:发货中 4:发货成功 5:发货失败 6:已退款 7:已关闭订单 8:订单过期 9:订单已失效 10:产品已失效 11:代付拒绝 12:支付中 4822 Status *int64 `json:"Status,omitempty" name:"Status"` 4823 4824 // 订单状态描述 4825 Description *string `json:"Description,omitempty" name:"Description"` 4826 4827 // 订单实际总价,单位:分 4828 Price *int64 `json:"Price,omitempty" name:"Price"` 4829 4830 // 实例ID 4831 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` 4832} 4833 4834type UpgradeInstanceRequest struct { 4835 *tchttp.BaseRequest 4836 4837 // 实例ID 4838 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4839 4840 // 分片大小 单位 MB 4841 MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` 4842 4843 // 分片数量,Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写 4844 RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` 4845 4846 // 副本数量,Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写 4847 RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` 4848 4849 // 多AZ实例增加副本时的附带信息,非多AZ实例不需要传此参数。多AZ增加副本时此参数为必传参数,传入要增加的副本的信息,包括副本的可用区和副本的类型(NodeType为1) 4850 NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet" list` 4851} 4852 4853func (r *UpgradeInstanceRequest) ToJsonString() string { 4854 b, _ := json.Marshal(r) 4855 return string(b) 4856} 4857 4858// It is highly **NOT** recommended to use this function 4859// because it has no param check, nor strict type check 4860func (r *UpgradeInstanceRequest) FromJsonString(s string) error { 4861 f := make(map[string]interface{}) 4862 if err := json.Unmarshal([]byte(s), &f); err != nil { 4863 return err 4864 } 4865 delete(f, "InstanceId") 4866 delete(f, "MemSize") 4867 delete(f, "RedisShardNum") 4868 delete(f, "RedisReplicasNum") 4869 delete(f, "NodeSet") 4870 if len(f) > 0 { 4871 return errors.New("UpgradeInstanceRequest has unknown keys!") 4872 } 4873 return json.Unmarshal([]byte(s), &r) 4874} 4875 4876type UpgradeInstanceResponse struct { 4877 *tchttp.BaseResponse 4878 Response *struct { 4879 4880 // 订单ID 4881 DealId *string `json:"DealId,omitempty" name:"DealId"` 4882 4883 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4884 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4885 } `json:"Response"` 4886} 4887 4888func (r *UpgradeInstanceResponse) ToJsonString() string { 4889 b, _ := json.Marshal(r) 4890 return string(b) 4891} 4892 4893// It is highly **NOT** recommended to use this function 4894// because it has no param check, nor strict type check 4895func (r *UpgradeInstanceResponse) FromJsonString(s string) error { 4896 return json.Unmarshal([]byte(s), &r) 4897} 4898 4899type UpgradeInstanceVersionRequest struct { 4900 *tchttp.BaseRequest 4901 4902 // 目标实例类型,同 [CreateInstances](https://cloud.tencent.com/document/api/239/20026) 的Type,即实例要变更的目标类型 4903 TargetInstanceType *string `json:"TargetInstanceType,omitempty" name:"TargetInstanceType"` 4904 4905 // 切换模式:1-维护时间窗切换,2-立即切换 4906 SwitchOption *int64 `json:"SwitchOption,omitempty" name:"SwitchOption"` 4907 4908 // 实例ID 4909 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4910} 4911 4912func (r *UpgradeInstanceVersionRequest) ToJsonString() string { 4913 b, _ := json.Marshal(r) 4914 return string(b) 4915} 4916 4917// It is highly **NOT** recommended to use this function 4918// because it has no param check, nor strict type check 4919func (r *UpgradeInstanceVersionRequest) FromJsonString(s string) error { 4920 f := make(map[string]interface{}) 4921 if err := json.Unmarshal([]byte(s), &f); err != nil { 4922 return err 4923 } 4924 delete(f, "TargetInstanceType") 4925 delete(f, "SwitchOption") 4926 delete(f, "InstanceId") 4927 if len(f) > 0 { 4928 return errors.New("UpgradeInstanceVersionRequest has unknown keys!") 4929 } 4930 return json.Unmarshal([]byte(s), &r) 4931} 4932 4933type UpgradeInstanceVersionResponse struct { 4934 *tchttp.BaseResponse 4935 Response *struct { 4936 4937 // 订单ID 4938 DealId *string `json:"DealId,omitempty" name:"DealId"` 4939 4940 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4941 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4942 } `json:"Response"` 4943} 4944 4945func (r *UpgradeInstanceVersionResponse) ToJsonString() string { 4946 b, _ := json.Marshal(r) 4947 return string(b) 4948} 4949 4950// It is highly **NOT** recommended to use this function 4951// because it has no param check, nor strict type check 4952func (r *UpgradeInstanceVersionResponse) FromJsonString(s string) error { 4953 return json.Unmarshal([]byte(s), &r) 4954} 4955 4956type UpgradeVersionToMultiAvailabilityZonesRequest struct { 4957 *tchttp.BaseRequest 4958 4959 // 实例ID 4960 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 4961} 4962 4963func (r *UpgradeVersionToMultiAvailabilityZonesRequest) ToJsonString() string { 4964 b, _ := json.Marshal(r) 4965 return string(b) 4966} 4967 4968// It is highly **NOT** recommended to use this function 4969// because it has no param check, nor strict type check 4970func (r *UpgradeVersionToMultiAvailabilityZonesRequest) FromJsonString(s string) error { 4971 f := make(map[string]interface{}) 4972 if err := json.Unmarshal([]byte(s), &f); err != nil { 4973 return err 4974 } 4975 delete(f, "InstanceId") 4976 if len(f) > 0 { 4977 return errors.New("UpgradeVersionToMultiAvailabilityZonesRequest has unknown keys!") 4978 } 4979 return json.Unmarshal([]byte(s), &r) 4980} 4981 4982type UpgradeVersionToMultiAvailabilityZonesResponse struct { 4983 *tchttp.BaseResponse 4984 Response *struct { 4985 4986 // 任务ID 4987 FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` 4988 4989 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4990 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4991 } `json:"Response"` 4992} 4993 4994func (r *UpgradeVersionToMultiAvailabilityZonesResponse) ToJsonString() string { 4995 b, _ := json.Marshal(r) 4996 return string(b) 4997} 4998 4999// It is highly **NOT** recommended to use this function 5000// because it has no param check, nor strict type check 5001func (r *UpgradeVersionToMultiAvailabilityZonesResponse) FromJsonString(s string) error { 5002 return json.Unmarshal([]byte(s), &r) 5003} 5004 5005type ZoneCapacityConf struct { 5006 5007 // 可用区ID:如ap-guangzhou-3 5008 ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"` 5009 5010 // 可用区名称 5011 ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` 5012 5013 // 可用区是否售罄 5014 IsSaleout *bool `json:"IsSaleout,omitempty" name:"IsSaleout"` 5015 5016 // 是否为默认可用区 5017 IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"` 5018 5019 // 网络类型:basenet -- 基础网络;vpcnet -- VPC网络 5020 NetWorkType []*string `json:"NetWorkType,omitempty" name:"NetWorkType" list` 5021 5022 // 可用区内产品规格等信息 5023 ProductSet []*ProductConf `json:"ProductSet,omitempty" name:"ProductSet" list` 5024 5025 // 可用区ID:如100003 5026 OldZoneId *int64 `json:"OldZoneId,omitempty" name:"OldZoneId"` 5027} 5028