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 v20190823 16 17import ( 18 "encoding/json" 19 tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" 20 tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" 21) 22 23type Application struct { 24 25 // 审批单号 26 ApplicationId *string `json:"ApplicationId,omitempty" name:"ApplicationId"` 27 28 // 申请类型 29 ApplicationType *int64 `json:"ApplicationType,omitempty" name:"ApplicationType"` 30 31 // 集群Id 32 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 33 34 // 集群名称 35 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` 36 37 // 表格组名称 38 // 注意:此字段可能返回 null,表示取不到有效值。 39 TableGroupName *string `json:"TableGroupName,omitempty" name:"TableGroupName"` 40 41 // 表格名称 42 TableName *string `json:"TableName,omitempty" name:"TableName"` 43 44 // 申请人 45 Applicant *string `json:"Applicant,omitempty" name:"Applicant"` 46 47 // 建单时间 48 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` 49 50 // 处理状态 -1 撤回 0-待审核 1-已经审核并提交任务 2-已驳回 51 ApplicationStatus *int64 `json:"ApplicationStatus,omitempty" name:"ApplicationStatus"` 52 53 // 表格组Id 54 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 55 56 // 已提交的任务Id,未提交申请为0 57 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 58 59 // 腾讯云上table的唯一键 60 // 注意:此字段可能返回 null,表示取不到有效值。 61 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 62 63 // 更新时间 64 // 注意:此字段可能返回 null,表示取不到有效值。 65 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 66 67 // 审批人 68 // 注意:此字段可能返回 null,表示取不到有效值。 69 ExecuteUser *string `json:"ExecuteUser,omitempty" name:"ExecuteUser"` 70 71 // 执行状态 72 // 注意:此字段可能返回 null,表示取不到有效值。 73 ExecuteStatus *string `json:"ExecuteStatus,omitempty" name:"ExecuteStatus"` 74 75 // 该申请单是否可以被当前用户审批 76 // 注意:此字段可能返回 null,表示取不到有效值。 77 CanCensor *bool `json:"CanCensor,omitempty" name:"CanCensor"` 78 79 // 该申请单是否可以被当前用户撤回 80 // 注意:此字段可能返回 null,表示取不到有效值。 81 CanWithdrawal *bool `json:"CanWithdrawal,omitempty" name:"CanWithdrawal"` 82} 83 84type ApplyResult struct { 85 86 // 申请单id 87 ApplicationId *string `json:"ApplicationId,omitempty" name:"ApplicationId"` 88 89 // 申请类型 90 ApplicationType *int64 `json:"ApplicationType,omitempty" name:"ApplicationType"` 91 92 // 处理状态 0-待审核 1-已经审核并提交任务 2-已驳回 93 // 注意:此字段可能返回 null,表示取不到有效值。 94 ApplicationStatus *int64 `json:"ApplicationStatus,omitempty" name:"ApplicationStatus"` 95 96 // 已提交的任务Id 97 // 注意:此字段可能返回 null,表示取不到有效值。 98 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 99 100 // 错误信息 101 // 注意:此字段可能返回 null,表示取不到有效值。 102 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 103} 104 105type ApplyStatus struct { 106 107 // 集群id-申请单id 108 ApplicationId *string `json:"ApplicationId,omitempty" name:"ApplicationId"` 109 110 // 处理状态-1-撤回 1-通过 2-驳回,非0状态的申请单不可改变状态。 111 ApplicationStatus *int64 `json:"ApplicationStatus,omitempty" name:"ApplicationStatus"` 112 113 // 申请单类型 114 ApplicationType *int64 `json:"ApplicationType,omitempty" name:"ApplicationType"` 115 116 // 集群Id 117 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 118} 119 120type ClearTablesRequest struct { 121 *tchttp.BaseRequest 122 123 // 表所属集群实例ID 124 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 125 126 // 待清理表信息列表 127 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 128} 129 130func (r *ClearTablesRequest) ToJsonString() string { 131 b, _ := json.Marshal(r) 132 return string(b) 133} 134 135// FromJsonString It is highly **NOT** recommended to use this function 136// because it has no param check, nor strict type check 137func (r *ClearTablesRequest) FromJsonString(s string) error { 138 f := make(map[string]interface{}) 139 if err := json.Unmarshal([]byte(s), &f); err != nil { 140 return err 141 } 142 delete(f, "ClusterId") 143 delete(f, "SelectedTables") 144 if len(f) > 0 { 145 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ClearTablesRequest has unknown keys!", "") 146 } 147 return json.Unmarshal([]byte(s), &r) 148} 149 150type ClearTablesResponse struct { 151 *tchttp.BaseResponse 152 Response *struct { 153 154 // 清除表结果数量 155 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 156 157 // 清除表结果列表 158 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 159 160 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 161 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 162 } `json:"Response"` 163} 164 165func (r *ClearTablesResponse) ToJsonString() string { 166 b, _ := json.Marshal(r) 167 return string(b) 168} 169 170// FromJsonString It is highly **NOT** recommended to use this function 171// because it has no param check, nor strict type check 172func (r *ClearTablesResponse) FromJsonString(s string) error { 173 return json.Unmarshal([]byte(s), &r) 174} 175 176type ClusterInfo struct { 177 178 // 集群名称 179 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` 180 181 // 集群ID 182 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 183 184 // 集群所在地域 185 Region *string `json:"Region,omitempty" name:"Region"` 186 187 // 集群数据描述语言类型,如:`PROTO`,`TDR` 188 IdlType *string `json:"IdlType,omitempty" name:"IdlType"` 189 190 // 网络类型 191 NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` 192 193 // 集群关联的用户私有网络实例ID 194 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` 195 196 // 集群关联的用户子网实例ID 197 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 198 199 // 创建时间 200 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` 201 202 // 集群密码 203 Password *string `json:"Password,omitempty" name:"Password"` 204 205 // 密码状态 206 PasswordStatus *string `json:"PasswordStatus,omitempty" name:"PasswordStatus"` 207 208 // TcaplusDB SDK连接参数,接入ID 209 ApiAccessId *string `json:"ApiAccessId,omitempty" name:"ApiAccessId"` 210 211 // TcaplusDB SDK连接参数,接入地址 212 ApiAccessIp *string `json:"ApiAccessIp,omitempty" name:"ApiAccessIp"` 213 214 // TcaplusDB SDK连接参数,接入端口 215 ApiAccessPort *int64 `json:"ApiAccessPort,omitempty" name:"ApiAccessPort"` 216 217 // 如果PasswordStatus是unmodifiable说明有旧密码还未过期,此字段将显示旧密码过期的时间,否则为空 218 // 注意:此字段可能返回 null,表示取不到有效值。 219 OldPasswordExpireTime *string `json:"OldPasswordExpireTime,omitempty" name:"OldPasswordExpireTime"` 220 221 // TcaplusDB SDK连接参数,接入ipv6地址 222 // 注意:此字段可能返回 null,表示取不到有效值。 223 ApiAccessIpv6 *string `json:"ApiAccessIpv6,omitempty" name:"ApiAccessIpv6"` 224 225 // 集群类型 226 // 注意:此字段可能返回 null,表示取不到有效值。 227 ClusterType *int64 `json:"ClusterType,omitempty" name:"ClusterType"` 228 229 // 集群状态 230 // 注意:此字段可能返回 null,表示取不到有效值。 231 ClusterStatus *int64 `json:"ClusterStatus,omitempty" name:"ClusterStatus"` 232 233 // 读CU 234 // 注意:此字段可能返回 null,表示取不到有效值。 235 ReadCapacityUnit *int64 `json:"ReadCapacityUnit,omitempty" name:"ReadCapacityUnit"` 236 237 // 写CU 238 // 注意:此字段可能返回 null,表示取不到有效值。 239 WriteCapacityUnit *int64 `json:"WriteCapacityUnit,omitempty" name:"WriteCapacityUnit"` 240 241 // 磁盘容量 242 // 注意:此字段可能返回 null,表示取不到有效值。 243 DiskVolume *int64 `json:"DiskVolume,omitempty" name:"DiskVolume"` 244 245 // 独占server机器信息 246 // 注意:此字段可能返回 null,表示取不到有效值。 247 ServerList []*ServerDetailInfo `json:"ServerList,omitempty" name:"ServerList"` 248 249 // 独占proxy机器信息 250 // 注意:此字段可能返回 null,表示取不到有效值。 251 ProxyList []*ProxyDetailInfo `json:"ProxyList,omitempty" name:"ProxyList"` 252 253 // 是否开启审核 0-不开启 1-开启 254 Censorship *int64 `json:"Censorship,omitempty" name:"Censorship"` 255 256 // 审批人uin列表 257 // 注意:此字段可能返回 null,表示取不到有效值。 258 DbaUins []*string `json:"DbaUins,omitempty" name:"DbaUins"` 259} 260 261type CompareIdlFilesRequest struct { 262 *tchttp.BaseRequest 263 264 // 待修改表格所在集群ID 265 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 266 267 // 待修改表格列表 268 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 269 270 // 选中的已上传IDL文件列表,与NewIdlFiles必选其一 271 ExistingIdlFiles []*IdlFileInfo `json:"ExistingIdlFiles,omitempty" name:"ExistingIdlFiles"` 272 273 // 本次上传IDL文件列表,与ExistingIdlFiles必选其一 274 NewIdlFiles []*IdlFileInfo `json:"NewIdlFiles,omitempty" name:"NewIdlFiles"` 275} 276 277func (r *CompareIdlFilesRequest) ToJsonString() string { 278 b, _ := json.Marshal(r) 279 return string(b) 280} 281 282// FromJsonString It is highly **NOT** recommended to use this function 283// because it has no param check, nor strict type check 284func (r *CompareIdlFilesRequest) FromJsonString(s string) error { 285 f := make(map[string]interface{}) 286 if err := json.Unmarshal([]byte(s), &f); err != nil { 287 return err 288 } 289 delete(f, "ClusterId") 290 delete(f, "SelectedTables") 291 delete(f, "ExistingIdlFiles") 292 delete(f, "NewIdlFiles") 293 if len(f) > 0 { 294 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CompareIdlFilesRequest has unknown keys!", "") 295 } 296 return json.Unmarshal([]byte(s), &r) 297} 298 299type CompareIdlFilesResponse struct { 300 *tchttp.BaseResponse 301 Response *struct { 302 303 // 本次上传校验所有的IDL文件信息列表 304 IdlFiles []*IdlFileInfo `json:"IdlFiles,omitempty" name:"IdlFiles"` 305 306 // 本次校验合法的表格数量 307 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 308 309 // 读取IDL描述文件后,根据用户指示的所选中表格解析校验结果 310 TableInfos []*ParsedTableInfoNew `json:"TableInfos,omitempty" name:"TableInfos"` 311 312 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 313 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 314 } `json:"Response"` 315} 316 317func (r *CompareIdlFilesResponse) ToJsonString() string { 318 b, _ := json.Marshal(r) 319 return string(b) 320} 321 322// FromJsonString It is highly **NOT** recommended to use this function 323// because it has no param check, nor strict type check 324func (r *CompareIdlFilesResponse) FromJsonString(s string) error { 325 return json.Unmarshal([]byte(s), &r) 326} 327 328type CompareTablesInfo struct { 329 330 // 源表格的集群id 331 SrcTableClusterId *string `json:"SrcTableClusterId,omitempty" name:"SrcTableClusterId"` 332 333 // 源表格的表格组id 334 SrcTableGroupId *string `json:"SrcTableGroupId,omitempty" name:"SrcTableGroupId"` 335 336 // 源表格的表名 337 SrcTableName *string `json:"SrcTableName,omitempty" name:"SrcTableName"` 338 339 // 目标表格的集群id 340 DstTableClusterId *string `json:"DstTableClusterId,omitempty" name:"DstTableClusterId"` 341 342 // 目标表格的表格组id 343 DstTableGroupId *string `json:"DstTableGroupId,omitempty" name:"DstTableGroupId"` 344 345 // 目标表格的表名 346 DstTableName *string `json:"DstTableName,omitempty" name:"DstTableName"` 347 348 // 源表格的实例id 349 SrcTableInstanceId *string `json:"SrcTableInstanceId,omitempty" name:"SrcTableInstanceId"` 350 351 // 目标表格的实例id 352 DstTableInstanceId *string `json:"DstTableInstanceId,omitempty" name:"DstTableInstanceId"` 353} 354 355type CreateBackupRequest struct { 356 *tchttp.BaseRequest 357 358 // 待创建备份表所属集群ID 359 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 360 361 // 待创建备份表信息列表 362 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 363 364 // 备注信息 365 Remark *string `json:"Remark,omitempty" name:"Remark"` 366} 367 368func (r *CreateBackupRequest) ToJsonString() string { 369 b, _ := json.Marshal(r) 370 return string(b) 371} 372 373// FromJsonString It is highly **NOT** recommended to use this function 374// because it has no param check, nor strict type check 375func (r *CreateBackupRequest) FromJsonString(s string) error { 376 f := make(map[string]interface{}) 377 if err := json.Unmarshal([]byte(s), &f); err != nil { 378 return err 379 } 380 delete(f, "ClusterId") 381 delete(f, "SelectedTables") 382 delete(f, "Remark") 383 if len(f) > 0 { 384 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateBackupRequest has unknown keys!", "") 385 } 386 return json.Unmarshal([]byte(s), &r) 387} 388 389type CreateBackupResponse struct { 390 *tchttp.BaseResponse 391 Response *struct { 392 393 // 创建的备份任务ID列表 394 // 注意:此字段可能返回 null,表示取不到有效值。 395 TaskIds []*string `json:"TaskIds,omitempty" name:"TaskIds"` 396 397 // 创建的备份申请ID列表 398 // 注意:此字段可能返回 null,表示取不到有效值。 399 ApplicationIds []*string `json:"ApplicationIds,omitempty" name:"ApplicationIds"` 400 401 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 402 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 403 } `json:"Response"` 404} 405 406func (r *CreateBackupResponse) ToJsonString() string { 407 b, _ := json.Marshal(r) 408 return string(b) 409} 410 411// FromJsonString It is highly **NOT** recommended to use this function 412// because it has no param check, nor strict type check 413func (r *CreateBackupResponse) FromJsonString(s string) error { 414 return json.Unmarshal([]byte(s), &r) 415} 416 417type CreateClusterRequest struct { 418 *tchttp.BaseRequest 419 420 // 集群数据描述语言类型,如:`PROTO`,`TDR`或`MIX` 421 IdlType *string `json:"IdlType,omitempty" name:"IdlType"` 422 423 // 集群名称,可使用中文或英文字符,最大长度32个字符 424 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` 425 426 // 集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z 427 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` 428 429 // 集群所绑定的子网实例ID,形如:subnet-pxir56ns 430 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 431 432 // 集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母 433 Password *string `json:"Password,omitempty" name:"Password"` 434 435 // 集群标签列表 436 ResourceTags []*TagInfoUnit `json:"ResourceTags,omitempty" name:"ResourceTags"` 437 438 // 集群是否开启IPv6功能 439 Ipv6Enable *int64 `json:"Ipv6Enable,omitempty" name:"Ipv6Enable"` 440 441 // 独占集群占用的svr机器 442 ServerList []*MachineInfo `json:"ServerList,omitempty" name:"ServerList"` 443 444 // 独占集群占用的proxy机器 445 ProxyList []*MachineInfo `json:"ProxyList,omitempty" name:"ProxyList"` 446 447 // 集群类型1共享2独占 448 ClusterType *int64 `json:"ClusterType,omitempty" name:"ClusterType"` 449} 450 451func (r *CreateClusterRequest) ToJsonString() string { 452 b, _ := json.Marshal(r) 453 return string(b) 454} 455 456// FromJsonString It is highly **NOT** recommended to use this function 457// because it has no param check, nor strict type check 458func (r *CreateClusterRequest) FromJsonString(s string) error { 459 f := make(map[string]interface{}) 460 if err := json.Unmarshal([]byte(s), &f); err != nil { 461 return err 462 } 463 delete(f, "IdlType") 464 delete(f, "ClusterName") 465 delete(f, "VpcId") 466 delete(f, "SubnetId") 467 delete(f, "Password") 468 delete(f, "ResourceTags") 469 delete(f, "Ipv6Enable") 470 delete(f, "ServerList") 471 delete(f, "ProxyList") 472 delete(f, "ClusterType") 473 if len(f) > 0 { 474 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterRequest has unknown keys!", "") 475 } 476 return json.Unmarshal([]byte(s), &r) 477} 478 479type CreateClusterResponse struct { 480 *tchttp.BaseResponse 481 Response *struct { 482 483 // 集群ID 484 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 485 486 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 487 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 488 } `json:"Response"` 489} 490 491func (r *CreateClusterResponse) ToJsonString() string { 492 b, _ := json.Marshal(r) 493 return string(b) 494} 495 496// FromJsonString It is highly **NOT** recommended to use this function 497// because it has no param check, nor strict type check 498func (r *CreateClusterResponse) FromJsonString(s string) error { 499 return json.Unmarshal([]byte(s), &r) 500} 501 502type CreateSnapshotsRequest struct { 503 *tchttp.BaseRequest 504 505 // 表格所属集群id 506 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 507 508 // 快照列表 509 SelectedTables []*SnapshotInfo `json:"SelectedTables,omitempty" name:"SelectedTables"` 510} 511 512func (r *CreateSnapshotsRequest) ToJsonString() string { 513 b, _ := json.Marshal(r) 514 return string(b) 515} 516 517// FromJsonString It is highly **NOT** recommended to use this function 518// because it has no param check, nor strict type check 519func (r *CreateSnapshotsRequest) FromJsonString(s string) error { 520 f := make(map[string]interface{}) 521 if err := json.Unmarshal([]byte(s), &f); err != nil { 522 return err 523 } 524 delete(f, "ClusterId") 525 delete(f, "SelectedTables") 526 if len(f) > 0 { 527 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSnapshotsRequest has unknown keys!", "") 528 } 529 return json.Unmarshal([]byte(s), &r) 530} 531 532type CreateSnapshotsResponse struct { 533 *tchttp.BaseResponse 534 Response *struct { 535 536 // 批量创建的快照数量 537 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 538 539 // 批量创建的快照结果列表 540 TableResults []*SnapshotResult `json:"TableResults,omitempty" name:"TableResults"` 541 542 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 543 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 544 } `json:"Response"` 545} 546 547func (r *CreateSnapshotsResponse) ToJsonString() string { 548 b, _ := json.Marshal(r) 549 return string(b) 550} 551 552// FromJsonString It is highly **NOT** recommended to use this function 553// because it has no param check, nor strict type check 554func (r *CreateSnapshotsResponse) FromJsonString(s string) error { 555 return json.Unmarshal([]byte(s), &r) 556} 557 558type CreateTableGroupRequest struct { 559 *tchttp.BaseRequest 560 561 // 表格组所属集群ID 562 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 563 564 // 表格组名称,可以采用中文、英文或数字字符,最大长度32个字符 565 TableGroupName *string `json:"TableGroupName,omitempty" name:"TableGroupName"` 566 567 // 表格组ID,可以由用户指定,但在同一个集群内不能重复,如果不指定则采用自增的模式 568 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 569 570 // 表格组标签列表 571 ResourceTags []*TagInfoUnit `json:"ResourceTags,omitempty" name:"ResourceTags"` 572} 573 574func (r *CreateTableGroupRequest) ToJsonString() string { 575 b, _ := json.Marshal(r) 576 return string(b) 577} 578 579// FromJsonString It is highly **NOT** recommended to use this function 580// because it has no param check, nor strict type check 581func (r *CreateTableGroupRequest) FromJsonString(s string) error { 582 f := make(map[string]interface{}) 583 if err := json.Unmarshal([]byte(s), &f); err != nil { 584 return err 585 } 586 delete(f, "ClusterId") 587 delete(f, "TableGroupName") 588 delete(f, "TableGroupId") 589 delete(f, "ResourceTags") 590 if len(f) > 0 { 591 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTableGroupRequest has unknown keys!", "") 592 } 593 return json.Unmarshal([]byte(s), &r) 594} 595 596type CreateTableGroupResponse struct { 597 *tchttp.BaseResponse 598 Response *struct { 599 600 // 创建成功的表格组ID 601 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 602 603 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 604 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 605 } `json:"Response"` 606} 607 608func (r *CreateTableGroupResponse) ToJsonString() string { 609 b, _ := json.Marshal(r) 610 return string(b) 611} 612 613// FromJsonString It is highly **NOT** recommended to use this function 614// because it has no param check, nor strict type check 615func (r *CreateTableGroupResponse) FromJsonString(s string) error { 616 return json.Unmarshal([]byte(s), &r) 617} 618 619type CreateTablesRequest struct { 620 *tchttp.BaseRequest 621 622 // 待创建表格所属集群ID 623 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 624 625 // 用户选定的建表格IDL文件列表 626 IdlFiles []*IdlFileInfo `json:"IdlFiles,omitempty" name:"IdlFiles"` 627 628 // 待创建表格信息列表 629 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 630 631 // 表格标签列表 632 ResourceTags []*TagInfoUnit `json:"ResourceTags,omitempty" name:"ResourceTags"` 633} 634 635func (r *CreateTablesRequest) ToJsonString() string { 636 b, _ := json.Marshal(r) 637 return string(b) 638} 639 640// FromJsonString It is highly **NOT** recommended to use this function 641// because it has no param check, nor strict type check 642func (r *CreateTablesRequest) FromJsonString(s string) error { 643 f := make(map[string]interface{}) 644 if err := json.Unmarshal([]byte(s), &f); err != nil { 645 return err 646 } 647 delete(f, "ClusterId") 648 delete(f, "IdlFiles") 649 delete(f, "SelectedTables") 650 delete(f, "ResourceTags") 651 if len(f) > 0 { 652 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTablesRequest has unknown keys!", "") 653 } 654 return json.Unmarshal([]byte(s), &r) 655} 656 657type CreateTablesResponse struct { 658 *tchttp.BaseResponse 659 Response *struct { 660 661 // 批量创建表格结果数量 662 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 663 664 // 批量创建表格结果列表 665 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 666 667 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 668 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 669 } `json:"Response"` 670} 671 672func (r *CreateTablesResponse) ToJsonString() string { 673 b, _ := json.Marshal(r) 674 return string(b) 675} 676 677// FromJsonString It is highly **NOT** recommended to use this function 678// because it has no param check, nor strict type check 679func (r *CreateTablesResponse) FromJsonString(s string) error { 680 return json.Unmarshal([]byte(s), &r) 681} 682 683type DeleteClusterRequest struct { 684 *tchttp.BaseRequest 685 686 // 待删除的集群ID 687 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 688} 689 690func (r *DeleteClusterRequest) ToJsonString() string { 691 b, _ := json.Marshal(r) 692 return string(b) 693} 694 695// FromJsonString It is highly **NOT** recommended to use this function 696// because it has no param check, nor strict type check 697func (r *DeleteClusterRequest) FromJsonString(s string) error { 698 f := make(map[string]interface{}) 699 if err := json.Unmarshal([]byte(s), &f); err != nil { 700 return err 701 } 702 delete(f, "ClusterId") 703 if len(f) > 0 { 704 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterRequest has unknown keys!", "") 705 } 706 return json.Unmarshal([]byte(s), &r) 707} 708 709type DeleteClusterResponse struct { 710 *tchttp.BaseResponse 711 Response *struct { 712 713 // 删除集群生成的任务ID 714 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 715 716 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 717 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 718 } `json:"Response"` 719} 720 721func (r *DeleteClusterResponse) ToJsonString() string { 722 b, _ := json.Marshal(r) 723 return string(b) 724} 725 726// FromJsonString It is highly **NOT** recommended to use this function 727// because it has no param check, nor strict type check 728func (r *DeleteClusterResponse) FromJsonString(s string) error { 729 return json.Unmarshal([]byte(s), &r) 730} 731 732type DeleteIdlFilesRequest struct { 733 *tchttp.BaseRequest 734 735 // IDL所属集群ID 736 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 737 738 // 待删除的IDL文件信息列表 739 IdlFiles []*IdlFileInfo `json:"IdlFiles,omitempty" name:"IdlFiles"` 740} 741 742func (r *DeleteIdlFilesRequest) ToJsonString() string { 743 b, _ := json.Marshal(r) 744 return string(b) 745} 746 747// FromJsonString It is highly **NOT** recommended to use this function 748// because it has no param check, nor strict type check 749func (r *DeleteIdlFilesRequest) FromJsonString(s string) error { 750 f := make(map[string]interface{}) 751 if err := json.Unmarshal([]byte(s), &f); err != nil { 752 return err 753 } 754 delete(f, "ClusterId") 755 delete(f, "IdlFiles") 756 if len(f) > 0 { 757 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteIdlFilesRequest has unknown keys!", "") 758 } 759 return json.Unmarshal([]byte(s), &r) 760} 761 762type DeleteIdlFilesResponse struct { 763 *tchttp.BaseResponse 764 Response *struct { 765 766 // 结果记录数量 767 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 768 769 // 删除结果 770 IdlFileInfos []*IdlFileInfoWithoutContent `json:"IdlFileInfos,omitempty" name:"IdlFileInfos"` 771 772 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 773 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 774 } `json:"Response"` 775} 776 777func (r *DeleteIdlFilesResponse) ToJsonString() string { 778 b, _ := json.Marshal(r) 779 return string(b) 780} 781 782// FromJsonString It is highly **NOT** recommended to use this function 783// because it has no param check, nor strict type check 784func (r *DeleteIdlFilesResponse) FromJsonString(s string) error { 785 return json.Unmarshal([]byte(s), &r) 786} 787 788type DeleteSnapshotsRequest struct { 789 *tchttp.BaseRequest 790 791 // 表格所属集群id 792 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 793 794 // 删除的快照列表 795 SelectedTables []*SnapshotInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 796} 797 798func (r *DeleteSnapshotsRequest) ToJsonString() string { 799 b, _ := json.Marshal(r) 800 return string(b) 801} 802 803// FromJsonString It is highly **NOT** recommended to use this function 804// because it has no param check, nor strict type check 805func (r *DeleteSnapshotsRequest) FromJsonString(s string) error { 806 f := make(map[string]interface{}) 807 if err := json.Unmarshal([]byte(s), &f); err != nil { 808 return err 809 } 810 delete(f, "ClusterId") 811 delete(f, "SelectedTables") 812 if len(f) > 0 { 813 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSnapshotsRequest has unknown keys!", "") 814 } 815 return json.Unmarshal([]byte(s), &r) 816} 817 818type DeleteSnapshotsResponse struct { 819 *tchttp.BaseResponse 820 Response *struct { 821 822 // 批量删除的快照数量 823 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 824 825 // 批量删除的快照结果 826 TableResults []*SnapshotResult `json:"TableResults,omitempty" name:"TableResults"` 827 828 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 829 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 830 } `json:"Response"` 831} 832 833func (r *DeleteSnapshotsResponse) ToJsonString() string { 834 b, _ := json.Marshal(r) 835 return string(b) 836} 837 838// FromJsonString It is highly **NOT** recommended to use this function 839// because it has no param check, nor strict type check 840func (r *DeleteSnapshotsResponse) FromJsonString(s string) error { 841 return json.Unmarshal([]byte(s), &r) 842} 843 844type DeleteTableGroupRequest struct { 845 *tchttp.BaseRequest 846 847 // 表格组所属的集群ID 848 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 849 850 // 表格组ID 851 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 852} 853 854func (r *DeleteTableGroupRequest) ToJsonString() string { 855 b, _ := json.Marshal(r) 856 return string(b) 857} 858 859// FromJsonString It is highly **NOT** recommended to use this function 860// because it has no param check, nor strict type check 861func (r *DeleteTableGroupRequest) FromJsonString(s string) error { 862 f := make(map[string]interface{}) 863 if err := json.Unmarshal([]byte(s), &f); err != nil { 864 return err 865 } 866 delete(f, "ClusterId") 867 delete(f, "TableGroupId") 868 if len(f) > 0 { 869 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTableGroupRequest has unknown keys!", "") 870 } 871 return json.Unmarshal([]byte(s), &r) 872} 873 874type DeleteTableGroupResponse struct { 875 *tchttp.BaseResponse 876 Response *struct { 877 878 // 删除表格组所创建的任务ID 879 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 880 881 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 882 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 883 } `json:"Response"` 884} 885 886func (r *DeleteTableGroupResponse) ToJsonString() string { 887 b, _ := json.Marshal(r) 888 return string(b) 889} 890 891// FromJsonString It is highly **NOT** recommended to use this function 892// because it has no param check, nor strict type check 893func (r *DeleteTableGroupResponse) FromJsonString(s string) error { 894 return json.Unmarshal([]byte(s), &r) 895} 896 897type DeleteTableIndexRequest struct { 898 *tchttp.BaseRequest 899 900 // 表格所属集群实例ID 901 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 902 903 // 待删除分布式索引的表格列表 904 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 905} 906 907func (r *DeleteTableIndexRequest) ToJsonString() string { 908 b, _ := json.Marshal(r) 909 return string(b) 910} 911 912// FromJsonString It is highly **NOT** recommended to use this function 913// because it has no param check, nor strict type check 914func (r *DeleteTableIndexRequest) FromJsonString(s string) error { 915 f := make(map[string]interface{}) 916 if err := json.Unmarshal([]byte(s), &f); err != nil { 917 return err 918 } 919 delete(f, "ClusterId") 920 delete(f, "SelectedTables") 921 if len(f) > 0 { 922 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTableIndexRequest has unknown keys!", "") 923 } 924 return json.Unmarshal([]byte(s), &r) 925} 926 927type DeleteTableIndexResponse struct { 928 *tchttp.BaseResponse 929 Response *struct { 930 931 // 删除表格分布式索引结果数量 932 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 933 934 // 删除表格分布式索引结果列表 935 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 936 937 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 938 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 939 } `json:"Response"` 940} 941 942func (r *DeleteTableIndexResponse) ToJsonString() string { 943 b, _ := json.Marshal(r) 944 return string(b) 945} 946 947// FromJsonString It is highly **NOT** recommended to use this function 948// because it has no param check, nor strict type check 949func (r *DeleteTableIndexResponse) FromJsonString(s string) error { 950 return json.Unmarshal([]byte(s), &r) 951} 952 953type DeleteTablesRequest struct { 954 *tchttp.BaseRequest 955 956 // 待删除表所在集群ID 957 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 958 959 // 待删除表信息列表 960 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 961} 962 963func (r *DeleteTablesRequest) ToJsonString() string { 964 b, _ := json.Marshal(r) 965 return string(b) 966} 967 968// FromJsonString It is highly **NOT** recommended to use this function 969// because it has no param check, nor strict type check 970func (r *DeleteTablesRequest) FromJsonString(s string) error { 971 f := make(map[string]interface{}) 972 if err := json.Unmarshal([]byte(s), &f); err != nil { 973 return err 974 } 975 delete(f, "ClusterId") 976 delete(f, "SelectedTables") 977 if len(f) > 0 { 978 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTablesRequest has unknown keys!", "") 979 } 980 return json.Unmarshal([]byte(s), &r) 981} 982 983type DeleteTablesResponse struct { 984 *tchttp.BaseResponse 985 Response *struct { 986 987 // 删除表结果数量 988 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 989 990 // 删除表结果详情列表 991 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 992 993 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 994 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 995 } `json:"Response"` 996} 997 998func (r *DeleteTablesResponse) ToJsonString() string { 999 b, _ := json.Marshal(r) 1000 return string(b) 1001} 1002 1003// FromJsonString It is highly **NOT** recommended to use this function 1004// because it has no param check, nor strict type check 1005func (r *DeleteTablesResponse) FromJsonString(s string) error { 1006 return json.Unmarshal([]byte(s), &r) 1007} 1008 1009type DescribeApplicationsRequest struct { 1010 *tchttp.BaseRequest 1011 1012 // 集群ID,用于获取指定集群的单据 1013 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1014 1015 // 分页 1016 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1017 1018 // 分页 1019 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1020 1021 // 申请单状态,用于过滤 1022 CensorStatus *int64 `json:"CensorStatus,omitempty" name:"CensorStatus"` 1023 1024 // 表格组id,用于过滤 1025 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 1026 1027 // 表格名,用于过滤 1028 TableName *string `json:"TableName,omitempty" name:"TableName"` 1029 1030 // 申请人uin,用于过滤 1031 Applicant *string `json:"Applicant,omitempty" name:"Applicant"` 1032 1033 // 申请类型,用于过滤 1034 ApplyType *int64 `json:"ApplyType,omitempty" name:"ApplyType"` 1035} 1036 1037func (r *DescribeApplicationsRequest) ToJsonString() string { 1038 b, _ := json.Marshal(r) 1039 return string(b) 1040} 1041 1042// FromJsonString It is highly **NOT** recommended to use this function 1043// because it has no param check, nor strict type check 1044func (r *DescribeApplicationsRequest) FromJsonString(s string) error { 1045 f := make(map[string]interface{}) 1046 if err := json.Unmarshal([]byte(s), &f); err != nil { 1047 return err 1048 } 1049 delete(f, "ClusterId") 1050 delete(f, "Limit") 1051 delete(f, "Offset") 1052 delete(f, "CensorStatus") 1053 delete(f, "TableGroupId") 1054 delete(f, "TableName") 1055 delete(f, "Applicant") 1056 delete(f, "ApplyType") 1057 if len(f) > 0 { 1058 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeApplicationsRequest has unknown keys!", "") 1059 } 1060 return json.Unmarshal([]byte(s), &r) 1061} 1062 1063type DescribeApplicationsResponse struct { 1064 *tchttp.BaseResponse 1065 Response *struct { 1066 1067 // 申请单列表 1068 Applications []*Application `json:"Applications,omitempty" name:"Applications"` 1069 1070 // 申请单个数 1071 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1072 1073 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1074 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1075 } `json:"Response"` 1076} 1077 1078func (r *DescribeApplicationsResponse) ToJsonString() string { 1079 b, _ := json.Marshal(r) 1080 return string(b) 1081} 1082 1083// FromJsonString It is highly **NOT** recommended to use this function 1084// because it has no param check, nor strict type check 1085func (r *DescribeApplicationsResponse) FromJsonString(s string) error { 1086 return json.Unmarshal([]byte(s), &r) 1087} 1088 1089type DescribeClusterTagsRequest struct { 1090 *tchttp.BaseRequest 1091 1092 // 集群ID列表 1093 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` 1094} 1095 1096func (r *DescribeClusterTagsRequest) ToJsonString() string { 1097 b, _ := json.Marshal(r) 1098 return string(b) 1099} 1100 1101// FromJsonString It is highly **NOT** recommended to use this function 1102// because it has no param check, nor strict type check 1103func (r *DescribeClusterTagsRequest) FromJsonString(s string) error { 1104 f := make(map[string]interface{}) 1105 if err := json.Unmarshal([]byte(s), &f); err != nil { 1106 return err 1107 } 1108 delete(f, "ClusterIds") 1109 if len(f) > 0 { 1110 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterTagsRequest has unknown keys!", "") 1111 } 1112 return json.Unmarshal([]byte(s), &r) 1113} 1114 1115type DescribeClusterTagsResponse struct { 1116 *tchttp.BaseResponse 1117 Response *struct { 1118 1119 // 集群标签信息列表 1120 // 注意:此字段可能返回 null,表示取不到有效值。 1121 Rows []*TagsInfoOfCluster `json:"Rows,omitempty" name:"Rows"` 1122 1123 // 返回结果个数 1124 // 注意:此字段可能返回 null,表示取不到有效值。 1125 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1126 1127 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1128 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1129 } `json:"Response"` 1130} 1131 1132func (r *DescribeClusterTagsResponse) ToJsonString() string { 1133 b, _ := json.Marshal(r) 1134 return string(b) 1135} 1136 1137// FromJsonString It is highly **NOT** recommended to use this function 1138// because it has no param check, nor strict type check 1139func (r *DescribeClusterTagsResponse) FromJsonString(s string) error { 1140 return json.Unmarshal([]byte(s), &r) 1141} 1142 1143type DescribeClustersRequest struct { 1144 *tchttp.BaseRequest 1145 1146 // 指定查询的集群ID列表 1147 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` 1148 1149 // 查询过滤条件 1150 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` 1151 1152 // 查询列表偏移量 1153 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1154 1155 // 查询列表返回记录数,默认值20 1156 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1157 1158 // 是否启用Ipv6 1159 Ipv6Enable *int64 `json:"Ipv6Enable,omitempty" name:"Ipv6Enable"` 1160} 1161 1162func (r *DescribeClustersRequest) ToJsonString() string { 1163 b, _ := json.Marshal(r) 1164 return string(b) 1165} 1166 1167// FromJsonString It is highly **NOT** recommended to use this function 1168// because it has no param check, nor strict type check 1169func (r *DescribeClustersRequest) FromJsonString(s string) error { 1170 f := make(map[string]interface{}) 1171 if err := json.Unmarshal([]byte(s), &f); err != nil { 1172 return err 1173 } 1174 delete(f, "ClusterIds") 1175 delete(f, "Filters") 1176 delete(f, "Offset") 1177 delete(f, "Limit") 1178 delete(f, "Ipv6Enable") 1179 if len(f) > 0 { 1180 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClustersRequest has unknown keys!", "") 1181 } 1182 return json.Unmarshal([]byte(s), &r) 1183} 1184 1185type DescribeClustersResponse struct { 1186 *tchttp.BaseResponse 1187 Response *struct { 1188 1189 // 集群实例数 1190 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1191 1192 // 集群实例列表 1193 Clusters []*ClusterInfo `json:"Clusters,omitempty" name:"Clusters"` 1194 1195 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1196 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1197 } `json:"Response"` 1198} 1199 1200func (r *DescribeClustersResponse) ToJsonString() string { 1201 b, _ := json.Marshal(r) 1202 return string(b) 1203} 1204 1205// FromJsonString It is highly **NOT** recommended to use this function 1206// because it has no param check, nor strict type check 1207func (r *DescribeClustersResponse) FromJsonString(s string) error { 1208 return json.Unmarshal([]byte(s), &r) 1209} 1210 1211type DescribeIdlFileInfosRequest struct { 1212 *tchttp.BaseRequest 1213 1214 // 文件所属集群ID 1215 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1216 1217 // 文件所属表格组ID 1218 TableGroupIds []*string `json:"TableGroupIds,omitempty" name:"TableGroupIds"` 1219 1220 // 指定文件ID列表 1221 IdlFileIds []*string `json:"IdlFileIds,omitempty" name:"IdlFileIds"` 1222 1223 // 查询列表偏移量 1224 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1225 1226 // 查询列表返回记录数 1227 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1228} 1229 1230func (r *DescribeIdlFileInfosRequest) ToJsonString() string { 1231 b, _ := json.Marshal(r) 1232 return string(b) 1233} 1234 1235// FromJsonString It is highly **NOT** recommended to use this function 1236// because it has no param check, nor strict type check 1237func (r *DescribeIdlFileInfosRequest) FromJsonString(s string) error { 1238 f := make(map[string]interface{}) 1239 if err := json.Unmarshal([]byte(s), &f); err != nil { 1240 return err 1241 } 1242 delete(f, "ClusterId") 1243 delete(f, "TableGroupIds") 1244 delete(f, "IdlFileIds") 1245 delete(f, "Offset") 1246 delete(f, "Limit") 1247 if len(f) > 0 { 1248 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeIdlFileInfosRequest has unknown keys!", "") 1249 } 1250 return json.Unmarshal([]byte(s), &r) 1251} 1252 1253type DescribeIdlFileInfosResponse struct { 1254 *tchttp.BaseResponse 1255 Response *struct { 1256 1257 // 文件数量 1258 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1259 1260 // 文件详情列表 1261 IdlFileInfos []*IdlFileInfo `json:"IdlFileInfos,omitempty" name:"IdlFileInfos"` 1262 1263 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1264 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1265 } `json:"Response"` 1266} 1267 1268func (r *DescribeIdlFileInfosResponse) ToJsonString() string { 1269 b, _ := json.Marshal(r) 1270 return string(b) 1271} 1272 1273// FromJsonString It is highly **NOT** recommended to use this function 1274// because it has no param check, nor strict type check 1275func (r *DescribeIdlFileInfosResponse) FromJsonString(s string) error { 1276 return json.Unmarshal([]byte(s), &r) 1277} 1278 1279type DescribeMachineRequest struct { 1280 *tchttp.BaseRequest 1281 1282 // 不为0,表示查询支持ipv6的机器 1283 Ipv6Enable *int64 `json:"Ipv6Enable,omitempty" name:"Ipv6Enable"` 1284} 1285 1286func (r *DescribeMachineRequest) ToJsonString() string { 1287 b, _ := json.Marshal(r) 1288 return string(b) 1289} 1290 1291// FromJsonString It is highly **NOT** recommended to use this function 1292// because it has no param check, nor strict type check 1293func (r *DescribeMachineRequest) FromJsonString(s string) error { 1294 f := make(map[string]interface{}) 1295 if err := json.Unmarshal([]byte(s), &f); err != nil { 1296 return err 1297 } 1298 delete(f, "Ipv6Enable") 1299 if len(f) > 0 { 1300 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeMachineRequest has unknown keys!", "") 1301 } 1302 return json.Unmarshal([]byte(s), &r) 1303} 1304 1305type DescribeMachineResponse struct { 1306 *tchttp.BaseResponse 1307 Response *struct { 1308 1309 // 独占机器资源列表 1310 PoolList []*PoolInfo `json:"PoolList,omitempty" name:"PoolList"` 1311 1312 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1313 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1314 } `json:"Response"` 1315} 1316 1317func (r *DescribeMachineResponse) ToJsonString() string { 1318 b, _ := json.Marshal(r) 1319 return string(b) 1320} 1321 1322// FromJsonString It is highly **NOT** recommended to use this function 1323// because it has no param check, nor strict type check 1324func (r *DescribeMachineResponse) FromJsonString(s string) error { 1325 return json.Unmarshal([]byte(s), &r) 1326} 1327 1328type DescribeRegionsRequest struct { 1329 *tchttp.BaseRequest 1330} 1331 1332func (r *DescribeRegionsRequest) ToJsonString() string { 1333 b, _ := json.Marshal(r) 1334 return string(b) 1335} 1336 1337// FromJsonString It is highly **NOT** recommended to use this function 1338// because it has no param check, nor strict type check 1339func (r *DescribeRegionsRequest) FromJsonString(s string) error { 1340 f := make(map[string]interface{}) 1341 if err := json.Unmarshal([]byte(s), &f); err != nil { 1342 return err 1343 } 1344 if len(f) > 0 { 1345 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRegionsRequest has unknown keys!", "") 1346 } 1347 return json.Unmarshal([]byte(s), &r) 1348} 1349 1350type DescribeRegionsResponse struct { 1351 *tchttp.BaseResponse 1352 Response *struct { 1353 1354 // 可用区详情结果数量 1355 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1356 1357 // 可用区详情结果列表 1358 RegionInfos []*RegionInfo `json:"RegionInfos,omitempty" name:"RegionInfos"` 1359 1360 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1361 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1362 } `json:"Response"` 1363} 1364 1365func (r *DescribeRegionsResponse) ToJsonString() string { 1366 b, _ := json.Marshal(r) 1367 return string(b) 1368} 1369 1370// FromJsonString It is highly **NOT** recommended to use this function 1371// because it has no param check, nor strict type check 1372func (r *DescribeRegionsResponse) FromJsonString(s string) error { 1373 return json.Unmarshal([]byte(s), &r) 1374} 1375 1376type DescribeSnapshotsRequest struct { 1377 *tchttp.BaseRequest 1378 1379 // 表格所属集群id 1380 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1381 1382 // 所属表格组ID 1383 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 1384 1385 // 表名称 1386 TableName *string `json:"TableName,omitempty" name:"TableName"` 1387 1388 // 快照名称 1389 SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` 1390} 1391 1392func (r *DescribeSnapshotsRequest) ToJsonString() string { 1393 b, _ := json.Marshal(r) 1394 return string(b) 1395} 1396 1397// FromJsonString It is highly **NOT** recommended to use this function 1398// because it has no param check, nor strict type check 1399func (r *DescribeSnapshotsRequest) FromJsonString(s string) error { 1400 f := make(map[string]interface{}) 1401 if err := json.Unmarshal([]byte(s), &f); err != nil { 1402 return err 1403 } 1404 delete(f, "ClusterId") 1405 delete(f, "TableGroupId") 1406 delete(f, "TableName") 1407 delete(f, "SnapshotName") 1408 if len(f) > 0 { 1409 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSnapshotsRequest has unknown keys!", "") 1410 } 1411 return json.Unmarshal([]byte(s), &r) 1412} 1413 1414type DescribeSnapshotsResponse struct { 1415 *tchttp.BaseResponse 1416 Response *struct { 1417 1418 // 快照数量 1419 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1420 1421 // 快照结果列表 1422 TableResults []*SnapshotResult `json:"TableResults,omitempty" name:"TableResults"` 1423 1424 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1425 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1426 } `json:"Response"` 1427} 1428 1429func (r *DescribeSnapshotsResponse) ToJsonString() string { 1430 b, _ := json.Marshal(r) 1431 return string(b) 1432} 1433 1434// FromJsonString It is highly **NOT** recommended to use this function 1435// because it has no param check, nor strict type check 1436func (r *DescribeSnapshotsResponse) FromJsonString(s string) error { 1437 return json.Unmarshal([]byte(s), &r) 1438} 1439 1440type DescribeTableGroupTagsRequest struct { 1441 *tchttp.BaseRequest 1442 1443 // 待查询标签表格组所属集群ID 1444 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1445 1446 // 待查询标签表格组ID列表 1447 TableGroupIds []*string `json:"TableGroupIds,omitempty" name:"TableGroupIds"` 1448} 1449 1450func (r *DescribeTableGroupTagsRequest) ToJsonString() string { 1451 b, _ := json.Marshal(r) 1452 return string(b) 1453} 1454 1455// FromJsonString It is highly **NOT** recommended to use this function 1456// because it has no param check, nor strict type check 1457func (r *DescribeTableGroupTagsRequest) FromJsonString(s string) error { 1458 f := make(map[string]interface{}) 1459 if err := json.Unmarshal([]byte(s), &f); err != nil { 1460 return err 1461 } 1462 delete(f, "ClusterId") 1463 delete(f, "TableGroupIds") 1464 if len(f) > 0 { 1465 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTableGroupTagsRequest has unknown keys!", "") 1466 } 1467 return json.Unmarshal([]byte(s), &r) 1468} 1469 1470type DescribeTableGroupTagsResponse struct { 1471 *tchttp.BaseResponse 1472 Response *struct { 1473 1474 // 表格组标签信息列表 1475 // 注意:此字段可能返回 null,表示取不到有效值。 1476 Rows []*TagsInfoOfTableGroup `json:"Rows,omitempty" name:"Rows"` 1477 1478 // 返回结果个数 1479 // 注意:此字段可能返回 null,表示取不到有效值。 1480 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1481 1482 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1483 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1484 } `json:"Response"` 1485} 1486 1487func (r *DescribeTableGroupTagsResponse) ToJsonString() string { 1488 b, _ := json.Marshal(r) 1489 return string(b) 1490} 1491 1492// FromJsonString It is highly **NOT** recommended to use this function 1493// because it has no param check, nor strict type check 1494func (r *DescribeTableGroupTagsResponse) FromJsonString(s string) error { 1495 return json.Unmarshal([]byte(s), &r) 1496} 1497 1498type DescribeTableGroupsRequest struct { 1499 *tchttp.BaseRequest 1500 1501 // 表格组所属集群ID 1502 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1503 1504 // 表格组ID列表 1505 TableGroupIds []*string `json:"TableGroupIds,omitempty" name:"TableGroupIds"` 1506 1507 // 过滤条件,本接口支持:TableGroupName,TableGroupId 1508 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` 1509 1510 // 查询列表偏移量 1511 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1512 1513 // 查询列表返回记录数 1514 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1515} 1516 1517func (r *DescribeTableGroupsRequest) ToJsonString() string { 1518 b, _ := json.Marshal(r) 1519 return string(b) 1520} 1521 1522// FromJsonString It is highly **NOT** recommended to use this function 1523// because it has no param check, nor strict type check 1524func (r *DescribeTableGroupsRequest) FromJsonString(s string) error { 1525 f := make(map[string]interface{}) 1526 if err := json.Unmarshal([]byte(s), &f); err != nil { 1527 return err 1528 } 1529 delete(f, "ClusterId") 1530 delete(f, "TableGroupIds") 1531 delete(f, "Filters") 1532 delete(f, "Offset") 1533 delete(f, "Limit") 1534 if len(f) > 0 { 1535 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTableGroupsRequest has unknown keys!", "") 1536 } 1537 return json.Unmarshal([]byte(s), &r) 1538} 1539 1540type DescribeTableGroupsResponse struct { 1541 *tchttp.BaseResponse 1542 Response *struct { 1543 1544 // 表格组数量 1545 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1546 1547 // 表格组信息列表 1548 TableGroups []*TableGroupInfo `json:"TableGroups,omitempty" name:"TableGroups"` 1549 1550 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1551 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1552 } `json:"Response"` 1553} 1554 1555func (r *DescribeTableGroupsResponse) ToJsonString() string { 1556 b, _ := json.Marshal(r) 1557 return string(b) 1558} 1559 1560// FromJsonString It is highly **NOT** recommended to use this function 1561// because it has no param check, nor strict type check 1562func (r *DescribeTableGroupsResponse) FromJsonString(s string) error { 1563 return json.Unmarshal([]byte(s), &r) 1564} 1565 1566type DescribeTableTagsRequest struct { 1567 *tchttp.BaseRequest 1568 1569 // 表格所属集群ID 1570 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1571 1572 // 表格列表 1573 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 1574} 1575 1576func (r *DescribeTableTagsRequest) ToJsonString() string { 1577 b, _ := json.Marshal(r) 1578 return string(b) 1579} 1580 1581// FromJsonString It is highly **NOT** recommended to use this function 1582// because it has no param check, nor strict type check 1583func (r *DescribeTableTagsRequest) FromJsonString(s string) error { 1584 f := make(map[string]interface{}) 1585 if err := json.Unmarshal([]byte(s), &f); err != nil { 1586 return err 1587 } 1588 delete(f, "ClusterId") 1589 delete(f, "SelectedTables") 1590 if len(f) > 0 { 1591 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTableTagsRequest has unknown keys!", "") 1592 } 1593 return json.Unmarshal([]byte(s), &r) 1594} 1595 1596type DescribeTableTagsResponse struct { 1597 *tchttp.BaseResponse 1598 Response *struct { 1599 1600 // 返回结果总数 1601 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1602 1603 // 表格标签信息列表 1604 Rows []*TagsInfoOfTable `json:"Rows,omitempty" name:"Rows"` 1605 1606 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1607 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1608 } `json:"Response"` 1609} 1610 1611func (r *DescribeTableTagsResponse) ToJsonString() string { 1612 b, _ := json.Marshal(r) 1613 return string(b) 1614} 1615 1616// FromJsonString It is highly **NOT** recommended to use this function 1617// because it has no param check, nor strict type check 1618func (r *DescribeTableTagsResponse) FromJsonString(s string) error { 1619 return json.Unmarshal([]byte(s), &r) 1620} 1621 1622type DescribeTablesInRecycleRequest struct { 1623 *tchttp.BaseRequest 1624 1625 // 待查询表格所属集群ID 1626 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1627 1628 // 待查询表格所属表格组ID列表 1629 TableGroupIds []*string `json:"TableGroupIds,omitempty" name:"TableGroupIds"` 1630 1631 // 过滤条件,本接口支持:TableName,TableInstanceId 1632 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` 1633 1634 // 查询结果偏移量 1635 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1636 1637 // 查询结果返回记录数量 1638 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1639} 1640 1641func (r *DescribeTablesInRecycleRequest) ToJsonString() string { 1642 b, _ := json.Marshal(r) 1643 return string(b) 1644} 1645 1646// FromJsonString It is highly **NOT** recommended to use this function 1647// because it has no param check, nor strict type check 1648func (r *DescribeTablesInRecycleRequest) FromJsonString(s string) error { 1649 f := make(map[string]interface{}) 1650 if err := json.Unmarshal([]byte(s), &f); err != nil { 1651 return err 1652 } 1653 delete(f, "ClusterId") 1654 delete(f, "TableGroupIds") 1655 delete(f, "Filters") 1656 delete(f, "Offset") 1657 delete(f, "Limit") 1658 if len(f) > 0 { 1659 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTablesInRecycleRequest has unknown keys!", "") 1660 } 1661 return json.Unmarshal([]byte(s), &r) 1662} 1663 1664type DescribeTablesInRecycleResponse struct { 1665 *tchttp.BaseResponse 1666 Response *struct { 1667 1668 // 表格数量 1669 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1670 1671 // 表格详情结果列表 1672 TableInfos []*TableInfoNew `json:"TableInfos,omitempty" name:"TableInfos"` 1673 1674 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1675 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1676 } `json:"Response"` 1677} 1678 1679func (r *DescribeTablesInRecycleResponse) ToJsonString() string { 1680 b, _ := json.Marshal(r) 1681 return string(b) 1682} 1683 1684// FromJsonString It is highly **NOT** recommended to use this function 1685// because it has no param check, nor strict type check 1686func (r *DescribeTablesInRecycleResponse) FromJsonString(s string) error { 1687 return json.Unmarshal([]byte(s), &r) 1688} 1689 1690type DescribeTablesRequest struct { 1691 *tchttp.BaseRequest 1692 1693 // 待查询表格所属集群ID 1694 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1695 1696 // 待查询表格所属表格组ID列表 1697 TableGroupIds []*string `json:"TableGroupIds,omitempty" name:"TableGroupIds"` 1698 1699 // 待查询表格信息列表 1700 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 1701 1702 // 过滤条件,本接口支持:TableName,TableInstanceId 1703 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` 1704 1705 // 查询结果偏移量 1706 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1707 1708 // 查询结果返回记录数量 1709 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1710} 1711 1712func (r *DescribeTablesRequest) ToJsonString() string { 1713 b, _ := json.Marshal(r) 1714 return string(b) 1715} 1716 1717// FromJsonString It is highly **NOT** recommended to use this function 1718// because it has no param check, nor strict type check 1719func (r *DescribeTablesRequest) FromJsonString(s string) error { 1720 f := make(map[string]interface{}) 1721 if err := json.Unmarshal([]byte(s), &f); err != nil { 1722 return err 1723 } 1724 delete(f, "ClusterId") 1725 delete(f, "TableGroupIds") 1726 delete(f, "SelectedTables") 1727 delete(f, "Filters") 1728 delete(f, "Offset") 1729 delete(f, "Limit") 1730 if len(f) > 0 { 1731 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTablesRequest has unknown keys!", "") 1732 } 1733 return json.Unmarshal([]byte(s), &r) 1734} 1735 1736type DescribeTablesResponse struct { 1737 *tchttp.BaseResponse 1738 Response *struct { 1739 1740 // 表格数量 1741 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1742 1743 // 表格详情结果列表 1744 TableInfos []*TableInfoNew `json:"TableInfos,omitempty" name:"TableInfos"` 1745 1746 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1747 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1748 } `json:"Response"` 1749} 1750 1751func (r *DescribeTablesResponse) ToJsonString() string { 1752 b, _ := json.Marshal(r) 1753 return string(b) 1754} 1755 1756// FromJsonString It is highly **NOT** recommended to use this function 1757// because it has no param check, nor strict type check 1758func (r *DescribeTablesResponse) FromJsonString(s string) error { 1759 return json.Unmarshal([]byte(s), &r) 1760} 1761 1762type DescribeTasksRequest struct { 1763 *tchttp.BaseRequest 1764 1765 // 需要查询任务所属的集群ID列表 1766 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` 1767 1768 // 需要查询的任务ID列表 1769 TaskIds []*string `json:"TaskIds,omitempty" name:"TaskIds"` 1770 1771 // 过滤条件,本接口支持:Content,TaskType, Operator, Time 1772 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` 1773 1774 // 查询列表偏移量 1775 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1776 1777 // 查询列表返回记录数 1778 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1779} 1780 1781func (r *DescribeTasksRequest) ToJsonString() string { 1782 b, _ := json.Marshal(r) 1783 return string(b) 1784} 1785 1786// FromJsonString It is highly **NOT** recommended to use this function 1787// because it has no param check, nor strict type check 1788func (r *DescribeTasksRequest) FromJsonString(s string) error { 1789 f := make(map[string]interface{}) 1790 if err := json.Unmarshal([]byte(s), &f); err != nil { 1791 return err 1792 } 1793 delete(f, "ClusterIds") 1794 delete(f, "TaskIds") 1795 delete(f, "Filters") 1796 delete(f, "Offset") 1797 delete(f, "Limit") 1798 if len(f) > 0 { 1799 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTasksRequest has unknown keys!", "") 1800 } 1801 return json.Unmarshal([]byte(s), &r) 1802} 1803 1804type DescribeTasksResponse struct { 1805 *tchttp.BaseResponse 1806 Response *struct { 1807 1808 // 任务数量 1809 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1810 1811 // 查询到的任务详情列表 1812 TaskInfos []*TaskInfoNew `json:"TaskInfos,omitempty" name:"TaskInfos"` 1813 1814 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1815 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1816 } `json:"Response"` 1817} 1818 1819func (r *DescribeTasksResponse) ToJsonString() string { 1820 b, _ := json.Marshal(r) 1821 return string(b) 1822} 1823 1824// FromJsonString It is highly **NOT** recommended to use this function 1825// because it has no param check, nor strict type check 1826func (r *DescribeTasksResponse) FromJsonString(s string) error { 1827 return json.Unmarshal([]byte(s), &r) 1828} 1829 1830type DescribeUinInWhitelistRequest struct { 1831 *tchttp.BaseRequest 1832} 1833 1834func (r *DescribeUinInWhitelistRequest) ToJsonString() string { 1835 b, _ := json.Marshal(r) 1836 return string(b) 1837} 1838 1839// FromJsonString It is highly **NOT** recommended to use this function 1840// because it has no param check, nor strict type check 1841func (r *DescribeUinInWhitelistRequest) FromJsonString(s string) error { 1842 f := make(map[string]interface{}) 1843 if err := json.Unmarshal([]byte(s), &f); err != nil { 1844 return err 1845 } 1846 if len(f) > 0 { 1847 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeUinInWhitelistRequest has unknown keys!", "") 1848 } 1849 return json.Unmarshal([]byte(s), &r) 1850} 1851 1852type DescribeUinInWhitelistResponse struct { 1853 *tchttp.BaseResponse 1854 Response *struct { 1855 1856 // 查询结果:`FALSE` 否;`TRUE` 是 1857 Result *string `json:"Result,omitempty" name:"Result"` 1858 1859 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1860 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1861 } `json:"Response"` 1862} 1863 1864func (r *DescribeUinInWhitelistResponse) ToJsonString() string { 1865 b, _ := json.Marshal(r) 1866 return string(b) 1867} 1868 1869// FromJsonString It is highly **NOT** recommended to use this function 1870// because it has no param check, nor strict type check 1871func (r *DescribeUinInWhitelistResponse) FromJsonString(s string) error { 1872 return json.Unmarshal([]byte(s), &r) 1873} 1874 1875type DisableRestProxyRequest struct { 1876 *tchttp.BaseRequest 1877 1878 // 对应appid 1879 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1880} 1881 1882func (r *DisableRestProxyRequest) ToJsonString() string { 1883 b, _ := json.Marshal(r) 1884 return string(b) 1885} 1886 1887// FromJsonString It is highly **NOT** recommended to use this function 1888// because it has no param check, nor strict type check 1889func (r *DisableRestProxyRequest) FromJsonString(s string) error { 1890 f := make(map[string]interface{}) 1891 if err := json.Unmarshal([]byte(s), &f); err != nil { 1892 return err 1893 } 1894 delete(f, "ClusterId") 1895 if len(f) > 0 { 1896 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisableRestProxyRequest has unknown keys!", "") 1897 } 1898 return json.Unmarshal([]byte(s), &r) 1899} 1900 1901type DisableRestProxyResponse struct { 1902 *tchttp.BaseResponse 1903 Response *struct { 1904 1905 // RestProxy的状态,0为关闭,1为开启中,2为开启,3为关闭中 1906 RestProxyStatus *uint64 `json:"RestProxyStatus,omitempty" name:"RestProxyStatus"` 1907 1908 // TaskId由 AppInstanceId-taskId 组成,以区分不同集群的任务 1909 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 1910 1911 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1912 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1913 } `json:"Response"` 1914} 1915 1916func (r *DisableRestProxyResponse) ToJsonString() string { 1917 b, _ := json.Marshal(r) 1918 return string(b) 1919} 1920 1921// FromJsonString It is highly **NOT** recommended to use this function 1922// because it has no param check, nor strict type check 1923func (r *DisableRestProxyResponse) FromJsonString(s string) error { 1924 return json.Unmarshal([]byte(s), &r) 1925} 1926 1927type EnableRestProxyRequest struct { 1928 *tchttp.BaseRequest 1929 1930 // 对应于appid 1931 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 1932} 1933 1934func (r *EnableRestProxyRequest) ToJsonString() string { 1935 b, _ := json.Marshal(r) 1936 return string(b) 1937} 1938 1939// FromJsonString It is highly **NOT** recommended to use this function 1940// because it has no param check, nor strict type check 1941func (r *EnableRestProxyRequest) FromJsonString(s string) error { 1942 f := make(map[string]interface{}) 1943 if err := json.Unmarshal([]byte(s), &f); err != nil { 1944 return err 1945 } 1946 delete(f, "ClusterId") 1947 if len(f) > 0 { 1948 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EnableRestProxyRequest has unknown keys!", "") 1949 } 1950 return json.Unmarshal([]byte(s), &r) 1951} 1952 1953type EnableRestProxyResponse struct { 1954 *tchttp.BaseResponse 1955 Response *struct { 1956 1957 // RestProxy的状态,0为关闭,1为开启中,2为开启,3为关闭中 1958 RestProxyStatus *uint64 `json:"RestProxyStatus,omitempty" name:"RestProxyStatus"` 1959 1960 // TaskId由 AppInstanceId-taskId 组成,以区分不同集群的任务 1961 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 1962 1963 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1964 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1965 } `json:"Response"` 1966} 1967 1968func (r *EnableRestProxyResponse) ToJsonString() string { 1969 b, _ := json.Marshal(r) 1970 return string(b) 1971} 1972 1973// FromJsonString It is highly **NOT** recommended to use this function 1974// because it has no param check, nor strict type check 1975func (r *EnableRestProxyResponse) FromJsonString(s string) error { 1976 return json.Unmarshal([]byte(s), &r) 1977} 1978 1979type ErrorInfo struct { 1980 1981 // 错误码 1982 Code *string `json:"Code,omitempty" name:"Code"` 1983 1984 // 错误信息 1985 Message *string `json:"Message,omitempty" name:"Message"` 1986} 1987 1988type FieldInfo struct { 1989 1990 // 表格字段名称 1991 FieldName *string `json:"FieldName,omitempty" name:"FieldName"` 1992 1993 // 字段是否是主键字段 1994 IsPrimaryKey *string `json:"IsPrimaryKey,omitempty" name:"IsPrimaryKey"` 1995 1996 // 字段类型 1997 FieldType *string `json:"FieldType,omitempty" name:"FieldType"` 1998 1999 // 字段长度 2000 FieldSize *int64 `json:"FieldSize,omitempty" name:"FieldSize"` 2001} 2002 2003type Filter struct { 2004 2005 // 过滤字段名 2006 Name *string `json:"Name,omitempty" name:"Name"` 2007 2008 // 过滤字段值 2009 Value *string `json:"Value,omitempty" name:"Value"` 2010 2011 // 过滤字段值 2012 Values []*string `json:"Values,omitempty" name:"Values"` 2013} 2014 2015type IdlFileInfo struct { 2016 2017 // 文件名称,不包含扩展名 2018 FileName *string `json:"FileName,omitempty" name:"FileName"` 2019 2020 // 数据描述语言(IDL)类型 2021 FileType *string `json:"FileType,omitempty" name:"FileType"` 2022 2023 // 文件扩展名 2024 FileExtType *string `json:"FileExtType,omitempty" name:"FileExtType"` 2025 2026 // 文件大小(Bytes) 2027 FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"` 2028 2029 // 文件ID,对于已上传的文件有意义 2030 // 注意:此字段可能返回 null,表示取不到有效值。 2031 FileId *int64 `json:"FileId,omitempty" name:"FileId"` 2032 2033 // 文件内容,对于本次新上传的文件有意义 2034 // 注意:此字段可能返回 null,表示取不到有效值。 2035 FileContent *string `json:"FileContent,omitempty" name:"FileContent"` 2036} 2037 2038type IdlFileInfoWithoutContent struct { 2039 2040 // 文件名称,不包含扩展名 2041 // 注意:此字段可能返回 null,表示取不到有效值。 2042 FileName *string `json:"FileName,omitempty" name:"FileName"` 2043 2044 // 数据描述语言(IDL)类型 2045 // 注意:此字段可能返回 null,表示取不到有效值。 2046 FileType *string `json:"FileType,omitempty" name:"FileType"` 2047 2048 // 文件扩展名 2049 // 注意:此字段可能返回 null,表示取不到有效值。 2050 FileExtType *string `json:"FileExtType,omitempty" name:"FileExtType"` 2051 2052 // 文件大小(Bytes) 2053 // 注意:此字段可能返回 null,表示取不到有效值。 2054 FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"` 2055 2056 // 文件ID 2057 // 注意:此字段可能返回 null,表示取不到有效值。 2058 FileId *int64 `json:"FileId,omitempty" name:"FileId"` 2059 2060 // 错误信息 2061 // 注意:此字段可能返回 null,表示取不到有效值。 2062 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 2063} 2064 2065type ImportSnapshotsRequest struct { 2066 *tchttp.BaseRequest 2067 2068 // 表格所属的集群id 2069 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2070 2071 // 用于导入的快照信息 2072 Snapshots *SnapshotInfo `json:"Snapshots,omitempty" name:"Snapshots"` 2073 2074 // 是否导入部分记录,TRUE表示导入部分记录,FALSE表示全表导入 2075 ImportSpecialKey *string `json:"ImportSpecialKey,omitempty" name:"ImportSpecialKey"` 2076 2077 // 是否导入到当前表,TRUE表示导入到当前表,FALSE表示导入到新表 2078 ImportOriginTable *string `json:"ImportOriginTable,omitempty" name:"ImportOriginTable"` 2079 2080 // 部分记录的key文件 2081 KeyFile *KeyFile `json:"KeyFile,omitempty" name:"KeyFile"` 2082 2083 // 如果导入到新表,此为新表所属的表格组id 2084 NewTableGroupId *string `json:"NewTableGroupId,omitempty" name:"NewTableGroupId"` 2085 2086 // 如果导入到新表,此为新表的表名,系统会以该名称自动创建一张结构相同的空表 2087 NewTableName *string `json:"NewTableName,omitempty" name:"NewTableName"` 2088} 2089 2090func (r *ImportSnapshotsRequest) ToJsonString() string { 2091 b, _ := json.Marshal(r) 2092 return string(b) 2093} 2094 2095// FromJsonString It is highly **NOT** recommended to use this function 2096// because it has no param check, nor strict type check 2097func (r *ImportSnapshotsRequest) FromJsonString(s string) error { 2098 f := make(map[string]interface{}) 2099 if err := json.Unmarshal([]byte(s), &f); err != nil { 2100 return err 2101 } 2102 delete(f, "ClusterId") 2103 delete(f, "Snapshots") 2104 delete(f, "ImportSpecialKey") 2105 delete(f, "ImportOriginTable") 2106 delete(f, "KeyFile") 2107 delete(f, "NewTableGroupId") 2108 delete(f, "NewTableName") 2109 if len(f) > 0 { 2110 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ImportSnapshotsRequest has unknown keys!", "") 2111 } 2112 return json.Unmarshal([]byte(s), &r) 2113} 2114 2115type ImportSnapshotsResponse struct { 2116 *tchttp.BaseResponse 2117 Response *struct { 2118 2119 // TaskId由 AppInstanceId-taskId 组成,以区分不同集群的任务 2120 // 注意:此字段可能返回 null,表示取不到有效值。 2121 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2122 2123 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2124 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2125 } `json:"Response"` 2126} 2127 2128func (r *ImportSnapshotsResponse) ToJsonString() string { 2129 b, _ := json.Marshal(r) 2130 return string(b) 2131} 2132 2133// FromJsonString It is highly **NOT** recommended to use this function 2134// because it has no param check, nor strict type check 2135func (r *ImportSnapshotsResponse) FromJsonString(s string) error { 2136 return json.Unmarshal([]byte(s), &r) 2137} 2138 2139type KeyFile struct { 2140 2141 // key文件名称 2142 FileName *string `json:"FileName,omitempty" name:"FileName"` 2143 2144 // key文件扩展名 2145 FileExtType *string `json:"FileExtType,omitempty" name:"FileExtType"` 2146 2147 // key文件内容 2148 FileContent *string `json:"FileContent,omitempty" name:"FileContent"` 2149 2150 // key文件大小 2151 FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"` 2152} 2153 2154type MachineInfo struct { 2155 2156 // 机器类型 2157 MachineType *string `json:"MachineType,omitempty" name:"MachineType"` 2158 2159 // 机器数量 2160 MachineNum *int64 `json:"MachineNum,omitempty" name:"MachineNum"` 2161} 2162 2163type MergeTableResult struct { 2164 2165 // 任务Id 2166 // 注意:此字段可能返回 null,表示取不到有效值。 2167 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2168 2169 // 成功时此字段返回 null,表示取不到有效值。 2170 // 注意:此字段可能返回 null,表示取不到有效值。 2171 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 2172 2173 // 对比的表格信息 2174 Table *CompareTablesInfo `json:"Table,omitempty" name:"Table"` 2175 2176 // 申请单Id 2177 // 注意:此字段可能返回 null,表示取不到有效值。 2178 ApplicationId *string `json:"ApplicationId,omitempty" name:"ApplicationId"` 2179} 2180 2181type MergeTablesDataRequest struct { 2182 *tchttp.BaseRequest 2183 2184 // 选取的表格 2185 SelectedTables []*MergeTablesInfo `json:"SelectedTables,omitempty" name:"SelectedTables"` 2186 2187 // true只做对比,false既对比又执行 2188 IsOnlyCompare *bool `json:"IsOnlyCompare,omitempty" name:"IsOnlyCompare"` 2189} 2190 2191func (r *MergeTablesDataRequest) ToJsonString() string { 2192 b, _ := json.Marshal(r) 2193 return string(b) 2194} 2195 2196// FromJsonString It is highly **NOT** recommended to use this function 2197// because it has no param check, nor strict type check 2198func (r *MergeTablesDataRequest) FromJsonString(s string) error { 2199 f := make(map[string]interface{}) 2200 if err := json.Unmarshal([]byte(s), &f); err != nil { 2201 return err 2202 } 2203 delete(f, "SelectedTables") 2204 delete(f, "IsOnlyCompare") 2205 if len(f) > 0 { 2206 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "MergeTablesDataRequest has unknown keys!", "") 2207 } 2208 return json.Unmarshal([]byte(s), &r) 2209} 2210 2211type MergeTablesDataResponse struct { 2212 *tchttp.BaseResponse 2213 Response *struct { 2214 2215 // 合服结果集 2216 Results []*MergeTableResult `json:"Results,omitempty" name:"Results"` 2217 2218 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2219 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2220 } `json:"Response"` 2221} 2222 2223func (r *MergeTablesDataResponse) ToJsonString() string { 2224 b, _ := json.Marshal(r) 2225 return string(b) 2226} 2227 2228// FromJsonString It is highly **NOT** recommended to use this function 2229// because it has no param check, nor strict type check 2230func (r *MergeTablesDataResponse) FromJsonString(s string) error { 2231 return json.Unmarshal([]byte(s), &r) 2232} 2233 2234type MergeTablesInfo struct { 2235 2236 // 合服的表格信息 2237 MergeTables *CompareTablesInfo `json:"MergeTables,omitempty" name:"MergeTables"` 2238 2239 // 是否检查索引 2240 CheckIndex *bool `json:"CheckIndex,omitempty" name:"CheckIndex"` 2241} 2242 2243type ModifyCensorshipRequest struct { 2244 *tchttp.BaseRequest 2245 2246 // 集群id 2247 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2248 2249 // 集群是否开启审核 0-关闭 1-开启 2250 Censorship *int64 `json:"Censorship,omitempty" name:"Censorship"` 2251 2252 // 审批人uin列表 2253 Uins []*string `json:"Uins,omitempty" name:"Uins"` 2254} 2255 2256func (r *ModifyCensorshipRequest) ToJsonString() string { 2257 b, _ := json.Marshal(r) 2258 return string(b) 2259} 2260 2261// FromJsonString It is highly **NOT** recommended to use this function 2262// because it has no param check, nor strict type check 2263func (r *ModifyCensorshipRequest) FromJsonString(s string) error { 2264 f := make(map[string]interface{}) 2265 if err := json.Unmarshal([]byte(s), &f); err != nil { 2266 return err 2267 } 2268 delete(f, "ClusterId") 2269 delete(f, "Censorship") 2270 delete(f, "Uins") 2271 if len(f) > 0 { 2272 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyCensorshipRequest has unknown keys!", "") 2273 } 2274 return json.Unmarshal([]byte(s), &r) 2275} 2276 2277type ModifyCensorshipResponse struct { 2278 *tchttp.BaseResponse 2279 Response *struct { 2280 2281 // 集群id 2282 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2283 2284 // 已加入审批人的uin 2285 // 注意:此字段可能返回 null,表示取不到有效值。 2286 Uins []*string `json:"Uins,omitempty" name:"Uins"` 2287 2288 // 集群是否开启审核 0-关闭 1-开启 2289 Censorship *int64 `json:"Censorship,omitempty" name:"Censorship"` 2290 2291 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2292 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2293 } `json:"Response"` 2294} 2295 2296func (r *ModifyCensorshipResponse) ToJsonString() string { 2297 b, _ := json.Marshal(r) 2298 return string(b) 2299} 2300 2301// FromJsonString It is highly **NOT** recommended to use this function 2302// because it has no param check, nor strict type check 2303func (r *ModifyCensorshipResponse) FromJsonString(s string) error { 2304 return json.Unmarshal([]byte(s), &r) 2305} 2306 2307type ModifyClusterMachineRequest struct { 2308 *tchttp.BaseRequest 2309 2310 // 集群id 2311 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2312 2313 // svr占用的机器 2314 ServerList []*MachineInfo `json:"ServerList,omitempty" name:"ServerList"` 2315 2316 // proxy占用的机器 2317 ProxyList []*MachineInfo `json:"ProxyList,omitempty" name:"ProxyList"` 2318 2319 // 集群类型1共享集群2独占集群 2320 ClusterType *int64 `json:"ClusterType,omitempty" name:"ClusterType"` 2321} 2322 2323func (r *ModifyClusterMachineRequest) ToJsonString() string { 2324 b, _ := json.Marshal(r) 2325 return string(b) 2326} 2327 2328// FromJsonString It is highly **NOT** recommended to use this function 2329// because it has no param check, nor strict type check 2330func (r *ModifyClusterMachineRequest) FromJsonString(s string) error { 2331 f := make(map[string]interface{}) 2332 if err := json.Unmarshal([]byte(s), &f); err != nil { 2333 return err 2334 } 2335 delete(f, "ClusterId") 2336 delete(f, "ServerList") 2337 delete(f, "ProxyList") 2338 delete(f, "ClusterType") 2339 if len(f) > 0 { 2340 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterMachineRequest has unknown keys!", "") 2341 } 2342 return json.Unmarshal([]byte(s), &r) 2343} 2344 2345type ModifyClusterMachineResponse struct { 2346 *tchttp.BaseResponse 2347 Response *struct { 2348 2349 // 集群id 2350 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2351 2352 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2353 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2354 } `json:"Response"` 2355} 2356 2357func (r *ModifyClusterMachineResponse) ToJsonString() string { 2358 b, _ := json.Marshal(r) 2359 return string(b) 2360} 2361 2362// FromJsonString It is highly **NOT** recommended to use this function 2363// because it has no param check, nor strict type check 2364func (r *ModifyClusterMachineResponse) FromJsonString(s string) error { 2365 return json.Unmarshal([]byte(s), &r) 2366} 2367 2368type ModifyClusterNameRequest struct { 2369 *tchttp.BaseRequest 2370 2371 // 需要修改名称的集群ID 2372 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2373 2374 // 需要修改的集群名称,可使用中文或英文字符,最大长度32个字符 2375 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` 2376} 2377 2378func (r *ModifyClusterNameRequest) ToJsonString() string { 2379 b, _ := json.Marshal(r) 2380 return string(b) 2381} 2382 2383// FromJsonString It is highly **NOT** recommended to use this function 2384// because it has no param check, nor strict type check 2385func (r *ModifyClusterNameRequest) FromJsonString(s string) error { 2386 f := make(map[string]interface{}) 2387 if err := json.Unmarshal([]byte(s), &f); err != nil { 2388 return err 2389 } 2390 delete(f, "ClusterId") 2391 delete(f, "ClusterName") 2392 if len(f) > 0 { 2393 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterNameRequest has unknown keys!", "") 2394 } 2395 return json.Unmarshal([]byte(s), &r) 2396} 2397 2398type ModifyClusterNameResponse struct { 2399 *tchttp.BaseResponse 2400 Response *struct { 2401 2402 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2403 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2404 } `json:"Response"` 2405} 2406 2407func (r *ModifyClusterNameResponse) ToJsonString() string { 2408 b, _ := json.Marshal(r) 2409 return string(b) 2410} 2411 2412// FromJsonString It is highly **NOT** recommended to use this function 2413// because it has no param check, nor strict type check 2414func (r *ModifyClusterNameResponse) FromJsonString(s string) error { 2415 return json.Unmarshal([]byte(s), &r) 2416} 2417 2418type ModifyClusterPasswordRequest struct { 2419 *tchttp.BaseRequest 2420 2421 // 需要修改密码的集群ID 2422 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2423 2424 // 集群旧密码 2425 OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"` 2426 2427 // 集群旧密码预期失效时间 2428 OldPasswordExpireTime *string `json:"OldPasswordExpireTime,omitempty" name:"OldPasswordExpireTime"` 2429 2430 // 集群新密码,密码必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母 2431 NewPassword *string `json:"NewPassword,omitempty" name:"NewPassword"` 2432 2433 // 更新模式: `1` 更新密码;`2` 更新旧密码失效时间,默认为`1` 模式 2434 Mode *string `json:"Mode,omitempty" name:"Mode"` 2435} 2436 2437func (r *ModifyClusterPasswordRequest) ToJsonString() string { 2438 b, _ := json.Marshal(r) 2439 return string(b) 2440} 2441 2442// FromJsonString It is highly **NOT** recommended to use this function 2443// because it has no param check, nor strict type check 2444func (r *ModifyClusterPasswordRequest) FromJsonString(s string) error { 2445 f := make(map[string]interface{}) 2446 if err := json.Unmarshal([]byte(s), &f); err != nil { 2447 return err 2448 } 2449 delete(f, "ClusterId") 2450 delete(f, "OldPassword") 2451 delete(f, "OldPasswordExpireTime") 2452 delete(f, "NewPassword") 2453 delete(f, "Mode") 2454 if len(f) > 0 { 2455 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterPasswordRequest has unknown keys!", "") 2456 } 2457 return json.Unmarshal([]byte(s), &r) 2458} 2459 2460type ModifyClusterPasswordResponse struct { 2461 *tchttp.BaseResponse 2462 Response *struct { 2463 2464 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2465 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2466 } `json:"Response"` 2467} 2468 2469func (r *ModifyClusterPasswordResponse) ToJsonString() string { 2470 b, _ := json.Marshal(r) 2471 return string(b) 2472} 2473 2474// FromJsonString It is highly **NOT** recommended to use this function 2475// because it has no param check, nor strict type check 2476func (r *ModifyClusterPasswordResponse) FromJsonString(s string) error { 2477 return json.Unmarshal([]byte(s), &r) 2478} 2479 2480type ModifyClusterTagsRequest struct { 2481 *tchttp.BaseRequest 2482 2483 // 待修改标签的集群ID 2484 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2485 2486 // 待增加或修改的标签列表 2487 ReplaceTags []*TagInfoUnit `json:"ReplaceTags,omitempty" name:"ReplaceTags"` 2488 2489 // 待删除的标签 2490 DeleteTags []*TagInfoUnit `json:"DeleteTags,omitempty" name:"DeleteTags"` 2491} 2492 2493func (r *ModifyClusterTagsRequest) ToJsonString() string { 2494 b, _ := json.Marshal(r) 2495 return string(b) 2496} 2497 2498// FromJsonString It is highly **NOT** recommended to use this function 2499// because it has no param check, nor strict type check 2500func (r *ModifyClusterTagsRequest) FromJsonString(s string) error { 2501 f := make(map[string]interface{}) 2502 if err := json.Unmarshal([]byte(s), &f); err != nil { 2503 return err 2504 } 2505 delete(f, "ClusterId") 2506 delete(f, "ReplaceTags") 2507 delete(f, "DeleteTags") 2508 if len(f) > 0 { 2509 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterTagsRequest has unknown keys!", "") 2510 } 2511 return json.Unmarshal([]byte(s), &r) 2512} 2513 2514type ModifyClusterTagsResponse struct { 2515 *tchttp.BaseResponse 2516 Response *struct { 2517 2518 // 任务ID 2519 // 注意:此字段可能返回 null,表示取不到有效值。 2520 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2521 2522 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2523 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2524 } `json:"Response"` 2525} 2526 2527func (r *ModifyClusterTagsResponse) ToJsonString() string { 2528 b, _ := json.Marshal(r) 2529 return string(b) 2530} 2531 2532// FromJsonString It is highly **NOT** recommended to use this function 2533// because it has no param check, nor strict type check 2534func (r *ModifyClusterTagsResponse) FromJsonString(s string) error { 2535 return json.Unmarshal([]byte(s), &r) 2536} 2537 2538type ModifySnapshotsRequest struct { 2539 *tchttp.BaseRequest 2540 2541 // 表格所属集群id 2542 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2543 2544 // 快照列表 2545 SelectedTables []*SnapshotInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 2546} 2547 2548func (r *ModifySnapshotsRequest) ToJsonString() string { 2549 b, _ := json.Marshal(r) 2550 return string(b) 2551} 2552 2553// FromJsonString It is highly **NOT** recommended to use this function 2554// because it has no param check, nor strict type check 2555func (r *ModifySnapshotsRequest) FromJsonString(s string) error { 2556 f := make(map[string]interface{}) 2557 if err := json.Unmarshal([]byte(s), &f); err != nil { 2558 return err 2559 } 2560 delete(f, "ClusterId") 2561 delete(f, "SelectedTables") 2562 if len(f) > 0 { 2563 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifySnapshotsRequest has unknown keys!", "") 2564 } 2565 return json.Unmarshal([]byte(s), &r) 2566} 2567 2568type ModifySnapshotsResponse struct { 2569 *tchttp.BaseResponse 2570 Response *struct { 2571 2572 // 批量创建的快照数量 2573 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 2574 2575 // 批量创建的快照结果列表 2576 TableResults []*SnapshotResult `json:"TableResults,omitempty" name:"TableResults"` 2577 2578 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2579 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2580 } `json:"Response"` 2581} 2582 2583func (r *ModifySnapshotsResponse) ToJsonString() string { 2584 b, _ := json.Marshal(r) 2585 return string(b) 2586} 2587 2588// FromJsonString It is highly **NOT** recommended to use this function 2589// because it has no param check, nor strict type check 2590func (r *ModifySnapshotsResponse) FromJsonString(s string) error { 2591 return json.Unmarshal([]byte(s), &r) 2592} 2593 2594type ModifyTableGroupNameRequest struct { 2595 *tchttp.BaseRequest 2596 2597 // 表格组所属的集群ID 2598 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2599 2600 // 待修改名称的表格组ID 2601 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 2602 2603 // 新的表格组名称,可以使用中英文字符和符号 2604 TableGroupName *string `json:"TableGroupName,omitempty" name:"TableGroupName"` 2605} 2606 2607func (r *ModifyTableGroupNameRequest) ToJsonString() string { 2608 b, _ := json.Marshal(r) 2609 return string(b) 2610} 2611 2612// FromJsonString It is highly **NOT** recommended to use this function 2613// because it has no param check, nor strict type check 2614func (r *ModifyTableGroupNameRequest) FromJsonString(s string) error { 2615 f := make(map[string]interface{}) 2616 if err := json.Unmarshal([]byte(s), &f); err != nil { 2617 return err 2618 } 2619 delete(f, "ClusterId") 2620 delete(f, "TableGroupId") 2621 delete(f, "TableGroupName") 2622 if len(f) > 0 { 2623 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTableGroupNameRequest has unknown keys!", "") 2624 } 2625 return json.Unmarshal([]byte(s), &r) 2626} 2627 2628type ModifyTableGroupNameResponse struct { 2629 *tchttp.BaseResponse 2630 Response *struct { 2631 2632 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2633 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2634 } `json:"Response"` 2635} 2636 2637func (r *ModifyTableGroupNameResponse) ToJsonString() string { 2638 b, _ := json.Marshal(r) 2639 return string(b) 2640} 2641 2642// FromJsonString It is highly **NOT** recommended to use this function 2643// because it has no param check, nor strict type check 2644func (r *ModifyTableGroupNameResponse) FromJsonString(s string) error { 2645 return json.Unmarshal([]byte(s), &r) 2646} 2647 2648type ModifyTableGroupTagsRequest struct { 2649 *tchttp.BaseRequest 2650 2651 // 待修改标签表格组所属集群ID 2652 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2653 2654 // 待修改标签表格组ID 2655 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 2656 2657 // 待增加或修改的标签列表 2658 ReplaceTags []*TagInfoUnit `json:"ReplaceTags,omitempty" name:"ReplaceTags"` 2659 2660 // 待删除的标签 2661 DeleteTags []*TagInfoUnit `json:"DeleteTags,omitempty" name:"DeleteTags"` 2662} 2663 2664func (r *ModifyTableGroupTagsRequest) ToJsonString() string { 2665 b, _ := json.Marshal(r) 2666 return string(b) 2667} 2668 2669// FromJsonString It is highly **NOT** recommended to use this function 2670// because it has no param check, nor strict type check 2671func (r *ModifyTableGroupTagsRequest) FromJsonString(s string) error { 2672 f := make(map[string]interface{}) 2673 if err := json.Unmarshal([]byte(s), &f); err != nil { 2674 return err 2675 } 2676 delete(f, "ClusterId") 2677 delete(f, "TableGroupId") 2678 delete(f, "ReplaceTags") 2679 delete(f, "DeleteTags") 2680 if len(f) > 0 { 2681 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTableGroupTagsRequest has unknown keys!", "") 2682 } 2683 return json.Unmarshal([]byte(s), &r) 2684} 2685 2686type ModifyTableGroupTagsResponse struct { 2687 *tchttp.BaseResponse 2688 Response *struct { 2689 2690 // 任务ID 2691 // 注意:此字段可能返回 null,表示取不到有效值。 2692 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2693 2694 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2695 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2696 } `json:"Response"` 2697} 2698 2699func (r *ModifyTableGroupTagsResponse) ToJsonString() string { 2700 b, _ := json.Marshal(r) 2701 return string(b) 2702} 2703 2704// FromJsonString It is highly **NOT** recommended to use this function 2705// because it has no param check, nor strict type check 2706func (r *ModifyTableGroupTagsResponse) FromJsonString(s string) error { 2707 return json.Unmarshal([]byte(s), &r) 2708} 2709 2710type ModifyTableMemosRequest struct { 2711 *tchttp.BaseRequest 2712 2713 // 表所属集群实例ID 2714 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2715 2716 // 选定表详情列表 2717 TableMemos []*SelectedTableInfoNew `json:"TableMemos,omitempty" name:"TableMemos"` 2718} 2719 2720func (r *ModifyTableMemosRequest) ToJsonString() string { 2721 b, _ := json.Marshal(r) 2722 return string(b) 2723} 2724 2725// FromJsonString It is highly **NOT** recommended to use this function 2726// because it has no param check, nor strict type check 2727func (r *ModifyTableMemosRequest) FromJsonString(s string) error { 2728 f := make(map[string]interface{}) 2729 if err := json.Unmarshal([]byte(s), &f); err != nil { 2730 return err 2731 } 2732 delete(f, "ClusterId") 2733 delete(f, "TableMemos") 2734 if len(f) > 0 { 2735 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTableMemosRequest has unknown keys!", "") 2736 } 2737 return json.Unmarshal([]byte(s), &r) 2738} 2739 2740type ModifyTableMemosResponse struct { 2741 *tchttp.BaseResponse 2742 Response *struct { 2743 2744 // 表备注修改结果数量 2745 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 2746 2747 // 表备注修改结果列表 2748 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 2749 2750 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2751 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2752 } `json:"Response"` 2753} 2754 2755func (r *ModifyTableMemosResponse) ToJsonString() string { 2756 b, _ := json.Marshal(r) 2757 return string(b) 2758} 2759 2760// FromJsonString It is highly **NOT** recommended to use this function 2761// because it has no param check, nor strict type check 2762func (r *ModifyTableMemosResponse) FromJsonString(s string) error { 2763 return json.Unmarshal([]byte(s), &r) 2764} 2765 2766type ModifyTableQuotasRequest struct { 2767 *tchttp.BaseRequest 2768 2769 // 带扩缩容表所属集群ID 2770 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2771 2772 // 已选中待修改的表配额列表 2773 TableQuotas []*SelectedTableInfoNew `json:"TableQuotas,omitempty" name:"TableQuotas"` 2774} 2775 2776func (r *ModifyTableQuotasRequest) ToJsonString() string { 2777 b, _ := json.Marshal(r) 2778 return string(b) 2779} 2780 2781// FromJsonString It is highly **NOT** recommended to use this function 2782// because it has no param check, nor strict type check 2783func (r *ModifyTableQuotasRequest) FromJsonString(s string) error { 2784 f := make(map[string]interface{}) 2785 if err := json.Unmarshal([]byte(s), &f); err != nil { 2786 return err 2787 } 2788 delete(f, "ClusterId") 2789 delete(f, "TableQuotas") 2790 if len(f) > 0 { 2791 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTableQuotasRequest has unknown keys!", "") 2792 } 2793 return json.Unmarshal([]byte(s), &r) 2794} 2795 2796type ModifyTableQuotasResponse struct { 2797 *tchttp.BaseResponse 2798 Response *struct { 2799 2800 // 扩缩容结果数量 2801 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 2802 2803 // 扩缩容结果列表 2804 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 2805 2806 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2807 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2808 } `json:"Response"` 2809} 2810 2811func (r *ModifyTableQuotasResponse) ToJsonString() string { 2812 b, _ := json.Marshal(r) 2813 return string(b) 2814} 2815 2816// FromJsonString It is highly **NOT** recommended to use this function 2817// because it has no param check, nor strict type check 2818func (r *ModifyTableQuotasResponse) FromJsonString(s string) error { 2819 return json.Unmarshal([]byte(s), &r) 2820} 2821 2822type ModifyTableTagsRequest struct { 2823 *tchttp.BaseRequest 2824 2825 // 待修改标签表格所属集群ID 2826 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2827 2828 // 待修改标签表格列表 2829 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 2830 2831 // 待增加或修改的标签列表 2832 ReplaceTags []*TagInfoUnit `json:"ReplaceTags,omitempty" name:"ReplaceTags"` 2833 2834 // 待删除的标签列表 2835 DeleteTags []*TagInfoUnit `json:"DeleteTags,omitempty" name:"DeleteTags"` 2836} 2837 2838func (r *ModifyTableTagsRequest) ToJsonString() string { 2839 b, _ := json.Marshal(r) 2840 return string(b) 2841} 2842 2843// FromJsonString It is highly **NOT** recommended to use this function 2844// because it has no param check, nor strict type check 2845func (r *ModifyTableTagsRequest) FromJsonString(s string) error { 2846 f := make(map[string]interface{}) 2847 if err := json.Unmarshal([]byte(s), &f); err != nil { 2848 return err 2849 } 2850 delete(f, "ClusterId") 2851 delete(f, "SelectedTables") 2852 delete(f, "ReplaceTags") 2853 delete(f, "DeleteTags") 2854 if len(f) > 0 { 2855 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTableTagsRequest has unknown keys!", "") 2856 } 2857 return json.Unmarshal([]byte(s), &r) 2858} 2859 2860type ModifyTableTagsResponse struct { 2861 *tchttp.BaseResponse 2862 Response *struct { 2863 2864 // 返回结果总数 2865 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2866 2867 // 返回结果 2868 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 2869 2870 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2871 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2872 } `json:"Response"` 2873} 2874 2875func (r *ModifyTableTagsResponse) ToJsonString() string { 2876 b, _ := json.Marshal(r) 2877 return string(b) 2878} 2879 2880// FromJsonString It is highly **NOT** recommended to use this function 2881// because it has no param check, nor strict type check 2882func (r *ModifyTableTagsResponse) FromJsonString(s string) error { 2883 return json.Unmarshal([]byte(s), &r) 2884} 2885 2886type ModifyTablesRequest struct { 2887 *tchttp.BaseRequest 2888 2889 // 待修改表格所在集群ID 2890 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 2891 2892 // 选中的改表IDL文件 2893 IdlFiles []*IdlFileInfo `json:"IdlFiles,omitempty" name:"IdlFiles"` 2894 2895 // 待改表格列表 2896 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 2897} 2898 2899func (r *ModifyTablesRequest) ToJsonString() string { 2900 b, _ := json.Marshal(r) 2901 return string(b) 2902} 2903 2904// FromJsonString It is highly **NOT** recommended to use this function 2905// because it has no param check, nor strict type check 2906func (r *ModifyTablesRequest) FromJsonString(s string) error { 2907 f := make(map[string]interface{}) 2908 if err := json.Unmarshal([]byte(s), &f); err != nil { 2909 return err 2910 } 2911 delete(f, "ClusterId") 2912 delete(f, "IdlFiles") 2913 delete(f, "SelectedTables") 2914 if len(f) > 0 { 2915 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTablesRequest has unknown keys!", "") 2916 } 2917 return json.Unmarshal([]byte(s), &r) 2918} 2919 2920type ModifyTablesResponse struct { 2921 *tchttp.BaseResponse 2922 Response *struct { 2923 2924 // 修改表结果数量 2925 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 2926 2927 // 修改表结果列表 2928 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 2929 2930 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2931 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2932 } `json:"Response"` 2933} 2934 2935func (r *ModifyTablesResponse) ToJsonString() string { 2936 b, _ := json.Marshal(r) 2937 return string(b) 2938} 2939 2940// FromJsonString It is highly **NOT** recommended to use this function 2941// because it has no param check, nor strict type check 2942func (r *ModifyTablesResponse) FromJsonString(s string) error { 2943 return json.Unmarshal([]byte(s), &r) 2944} 2945 2946type ParsedTableInfoNew struct { 2947 2948 // 表格描述语言类型:`PROTO`或`TDR` 2949 // 注意:此字段可能返回 null,表示取不到有效值。 2950 TableIdlType *string `json:"TableIdlType,omitempty" name:"TableIdlType"` 2951 2952 // 表格实例ID 2953 // 注意:此字段可能返回 null,表示取不到有效值。 2954 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 2955 2956 // 表格名称 2957 // 注意:此字段可能返回 null,表示取不到有效值。 2958 TableName *string `json:"TableName,omitempty" name:"TableName"` 2959 2960 // 表格数据结构类型:`GENERIC`或`LIST` 2961 // 注意:此字段可能返回 null,表示取不到有效值。 2962 TableType *string `json:"TableType,omitempty" name:"TableType"` 2963 2964 // 主键字段信息 2965 // 注意:此字段可能返回 null,表示取不到有效值。 2966 KeyFields *string `json:"KeyFields,omitempty" name:"KeyFields"` 2967 2968 // 原主键字段信息,改表校验时有效 2969 // 注意:此字段可能返回 null,表示取不到有效值。 2970 OldKeyFields *string `json:"OldKeyFields,omitempty" name:"OldKeyFields"` 2971 2972 // 非主键字段信息 2973 // 注意:此字段可能返回 null,表示取不到有效值。 2974 ValueFields *string `json:"ValueFields,omitempty" name:"ValueFields"` 2975 2976 // 原非主键字段信息,改表校验时有效 2977 // 注意:此字段可能返回 null,表示取不到有效值。 2978 OldValueFields *string `json:"OldValueFields,omitempty" name:"OldValueFields"` 2979 2980 // 所属表格组ID 2981 // 注意:此字段可能返回 null,表示取不到有效值。 2982 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 2983 2984 // 主键字段总大小 2985 // 注意:此字段可能返回 null,表示取不到有效值。 2986 SumKeyFieldSize *int64 `json:"SumKeyFieldSize,omitempty" name:"SumKeyFieldSize"` 2987 2988 // 非主键字段总大小 2989 // 注意:此字段可能返回 null,表示取不到有效值。 2990 SumValueFieldSize *int64 `json:"SumValueFieldSize,omitempty" name:"SumValueFieldSize"` 2991 2992 // 索引键集合 2993 // 注意:此字段可能返回 null,表示取不到有效值。 2994 IndexKeySet *string `json:"IndexKeySet,omitempty" name:"IndexKeySet"` 2995 2996 // 分表因子集合 2997 // 注意:此字段可能返回 null,表示取不到有效值。 2998 ShardingKeySet *string `json:"ShardingKeySet,omitempty" name:"ShardingKeySet"` 2999 3000 // TDR版本号 3001 // 注意:此字段可能返回 null,表示取不到有效值。 3002 TdrVersion *int64 `json:"TdrVersion,omitempty" name:"TdrVersion"` 3003 3004 // 错误信息 3005 // 注意:此字段可能返回 null,表示取不到有效值。 3006 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3007 3008 // LIST类型表格元素个数 3009 // 注意:此字段可能返回 null,表示取不到有效值。 3010 ListElementNum *int64 `json:"ListElementNum,omitempty" name:"ListElementNum"` 3011 3012 // SORTLIST类型表格排序字段个数 3013 // 注意:此字段可能返回 null,表示取不到有效值。 3014 SortFieldNum *int64 `json:"SortFieldNum,omitempty" name:"SortFieldNum"` 3015 3016 // SORTLIST类型表格排序顺序 3017 // 注意:此字段可能返回 null,表示取不到有效值。 3018 SortRule *int64 `json:"SortRule,omitempty" name:"SortRule"` 3019} 3020 3021type PoolInfo struct { 3022 3023 // 唯一id 3024 PoolUid *int64 `json:"PoolUid,omitempty" name:"PoolUid"` 3025 3026 // 是否支持ipv6 3027 Ipv6Enable *int64 `json:"Ipv6Enable,omitempty" name:"Ipv6Enable"` 3028 3029 // 剩余可用app 3030 AvailableAppCount *int64 `json:"AvailableAppCount,omitempty" name:"AvailableAppCount"` 3031 3032 // svr机器列表 3033 ServerList []*ServerMachineInfo `json:"ServerList,omitempty" name:"ServerList"` 3034 3035 // proxy机器列表 3036 ProxyList []*ProxyMachineInfo `json:"ProxyList,omitempty" name:"ProxyList"` 3037} 3038 3039type ProxyDetailInfo struct { 3040 3041 // proxy的唯一id 3042 ProxyUid *string `json:"ProxyUid,omitempty" name:"ProxyUid"` 3043 3044 // 机器类型 3045 MachineType *string `json:"MachineType,omitempty" name:"MachineType"` 3046 3047 // 请求包速度 3048 ProcessSpeed *int64 `json:"ProcessSpeed,omitempty" name:"ProcessSpeed"` 3049 3050 // 请求包时延 3051 AverageProcessDelay *int64 `json:"AverageProcessDelay,omitempty" name:"AverageProcessDelay"` 3052 3053 // 慢处理包速度 3054 SlowProcessSpeed *int64 `json:"SlowProcessSpeed,omitempty" name:"SlowProcessSpeed"` 3055} 3056 3057type ProxyMachineInfo struct { 3058 3059 // 唯一id 3060 ProxyUid *string `json:"ProxyUid,omitempty" name:"ProxyUid"` 3061 3062 // 机器类型 3063 MachineType *string `json:"MachineType,omitempty" name:"MachineType"` 3064} 3065 3066type RecoverRecycleTablesRequest struct { 3067 *tchttp.BaseRequest 3068 3069 // 表所在集群ID 3070 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3071 3072 // 待恢复表信息 3073 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 3074} 3075 3076func (r *RecoverRecycleTablesRequest) ToJsonString() string { 3077 b, _ := json.Marshal(r) 3078 return string(b) 3079} 3080 3081// FromJsonString It is highly **NOT** recommended to use this function 3082// because it has no param check, nor strict type check 3083func (r *RecoverRecycleTablesRequest) FromJsonString(s string) error { 3084 f := make(map[string]interface{}) 3085 if err := json.Unmarshal([]byte(s), &f); err != nil { 3086 return err 3087 } 3088 delete(f, "ClusterId") 3089 delete(f, "SelectedTables") 3090 if len(f) > 0 { 3091 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RecoverRecycleTablesRequest has unknown keys!", "") 3092 } 3093 return json.Unmarshal([]byte(s), &r) 3094} 3095 3096type RecoverRecycleTablesResponse struct { 3097 *tchttp.BaseResponse 3098 Response *struct { 3099 3100 // 恢复表结果数量 3101 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 3102 3103 // 恢复表信息列表 3104 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 3105 3106 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3107 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3108 } `json:"Response"` 3109} 3110 3111func (r *RecoverRecycleTablesResponse) ToJsonString() string { 3112 b, _ := json.Marshal(r) 3113 return string(b) 3114} 3115 3116// FromJsonString It is highly **NOT** recommended to use this function 3117// because it has no param check, nor strict type check 3118func (r *RecoverRecycleTablesResponse) FromJsonString(s string) error { 3119 return json.Unmarshal([]byte(s), &r) 3120} 3121 3122type RegionInfo struct { 3123 3124 // 地域Ap-Code 3125 RegionName *string `json:"RegionName,omitempty" name:"RegionName"` 3126 3127 // 地域缩写 3128 RegionAbbr *string `json:"RegionAbbr,omitempty" name:"RegionAbbr"` 3129 3130 // 地域ID 3131 RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` 3132 3133 // 是否支持ipv6,0:不支持,1:支持 3134 Ipv6Enable *uint64 `json:"Ipv6Enable,omitempty" name:"Ipv6Enable"` 3135} 3136 3137type RollbackTablesRequest struct { 3138 *tchttp.BaseRequest 3139 3140 // 待回档表格所在集群ID 3141 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3142 3143 // 待回档表格列表 3144 SelectedTables []*SelectedTableInfoNew `json:"SelectedTables,omitempty" name:"SelectedTables"` 3145 3146 // 待回档时间 3147 RollbackTime *string `json:"RollbackTime,omitempty" name:"RollbackTime"` 3148 3149 // 回档模式,支持:`KEYS` 3150 Mode *string `json:"Mode,omitempty" name:"Mode"` 3151} 3152 3153func (r *RollbackTablesRequest) ToJsonString() string { 3154 b, _ := json.Marshal(r) 3155 return string(b) 3156} 3157 3158// FromJsonString It is highly **NOT** recommended to use this function 3159// because it has no param check, nor strict type check 3160func (r *RollbackTablesRequest) FromJsonString(s string) error { 3161 f := make(map[string]interface{}) 3162 if err := json.Unmarshal([]byte(s), &f); err != nil { 3163 return err 3164 } 3165 delete(f, "ClusterId") 3166 delete(f, "SelectedTables") 3167 delete(f, "RollbackTime") 3168 delete(f, "Mode") 3169 if len(f) > 0 { 3170 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RollbackTablesRequest has unknown keys!", "") 3171 } 3172 return json.Unmarshal([]byte(s), &r) 3173} 3174 3175type RollbackTablesResponse struct { 3176 *tchttp.BaseResponse 3177 Response *struct { 3178 3179 // 表格回档任务结果数量 3180 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 3181 3182 // 表格回档任务结果列表 3183 TableResults []*TableRollbackResultNew `json:"TableResults,omitempty" name:"TableResults"` 3184 3185 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3186 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3187 } `json:"Response"` 3188} 3189 3190func (r *RollbackTablesResponse) ToJsonString() string { 3191 b, _ := json.Marshal(r) 3192 return string(b) 3193} 3194 3195// FromJsonString It is highly **NOT** recommended to use this function 3196// because it has no param check, nor strict type check 3197func (r *RollbackTablesResponse) FromJsonString(s string) error { 3198 return json.Unmarshal([]byte(s), &r) 3199} 3200 3201type SelectedTableInfoNew struct { 3202 3203 // 表所属表格组ID 3204 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3205 3206 // 表格名称 3207 TableName *string `json:"TableName,omitempty" name:"TableName"` 3208 3209 // 表实例ID 3210 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 3211 3212 // 表格描述语言类型:`PROTO`或`TDR` 3213 TableIdlType *string `json:"TableIdlType,omitempty" name:"TableIdlType"` 3214 3215 // 表格数据结构类型:`GENERIC`或`LIST` 3216 TableType *string `json:"TableType,omitempty" name:"TableType"` 3217 3218 // LIST表元素个数 3219 ListElementNum *int64 `json:"ListElementNum,omitempty" name:"ListElementNum"` 3220 3221 // 表格预留容量(GB) 3222 ReservedVolume *int64 `json:"ReservedVolume,omitempty" name:"ReservedVolume"` 3223 3224 // 表格预留读CU 3225 ReservedReadQps *int64 `json:"ReservedReadQps,omitempty" name:"ReservedReadQps"` 3226 3227 // 表格预留写CU 3228 ReservedWriteQps *int64 `json:"ReservedWriteQps,omitempty" name:"ReservedWriteQps"` 3229 3230 // 表格备注信息 3231 Memo *string `json:"Memo,omitempty" name:"Memo"` 3232 3233 // Key回档文件名,回档专用 3234 FileName *string `json:"FileName,omitempty" name:"FileName"` 3235 3236 // Key回档文件扩展名,回档专用 3237 FileExtType *string `json:"FileExtType,omitempty" name:"FileExtType"` 3238 3239 // Key回档文件大小,回档专用 3240 FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"` 3241 3242 // Key回档文件内容,回档专用 3243 FileContent *string `json:"FileContent,omitempty" name:"FileContent"` 3244} 3245 3246type SelectedTableWithField struct { 3247 3248 // 表所属表格组ID 3249 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3250 3251 // 表格名称 3252 TableName *string `json:"TableName,omitempty" name:"TableName"` 3253 3254 // 表实例ID 3255 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 3256 3257 // 表格描述语言类型:`PROTO`或`TDR` 3258 TableIdlType *string `json:"TableIdlType,omitempty" name:"TableIdlType"` 3259 3260 // 表格数据结构类型:`GENERIC`或`LIST` 3261 TableType *string `json:"TableType,omitempty" name:"TableType"` 3262 3263 // 待创建索引的字段列表 3264 SelectedFields []*FieldInfo `json:"SelectedFields,omitempty" name:"SelectedFields"` 3265 3266 // 索引分片数 3267 ShardNum *uint64 `json:"ShardNum,omitempty" name:"ShardNum"` 3268} 3269 3270type ServerDetailInfo struct { 3271 3272 // svr唯一id 3273 ServerUid *string `json:"ServerUid,omitempty" name:"ServerUid"` 3274 3275 // 机器类型 3276 MachineType *string `json:"MachineType,omitempty" name:"MachineType"` 3277 3278 // 内存占用量 3279 MemoryRate *int64 `json:"MemoryRate,omitempty" name:"MemoryRate"` 3280 3281 // 磁盘占用量 3282 DiskRate *int64 `json:"DiskRate,omitempty" name:"DiskRate"` 3283 3284 // 读次数 3285 ReadNum *int64 `json:"ReadNum,omitempty" name:"ReadNum"` 3286 3287 // 写次数 3288 WriteNum *int64 `json:"WriteNum,omitempty" name:"WriteNum"` 3289} 3290 3291type ServerMachineInfo struct { 3292 3293 // 机器唯一id 3294 ServerUid *string `json:"ServerUid,omitempty" name:"ServerUid"` 3295 3296 // 机器类型 3297 MachineType *string `json:"MachineType,omitempty" name:"MachineType"` 3298} 3299 3300type SetTableIndexRequest struct { 3301 *tchttp.BaseRequest 3302 3303 // 表所属集群实例ID 3304 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3305 3306 // 待创建分布式索引表格列表 3307 SelectedTables []*SelectedTableWithField `json:"SelectedTables,omitempty" name:"SelectedTables"` 3308} 3309 3310func (r *SetTableIndexRequest) ToJsonString() string { 3311 b, _ := json.Marshal(r) 3312 return string(b) 3313} 3314 3315// FromJsonString It is highly **NOT** recommended to use this function 3316// because it has no param check, nor strict type check 3317func (r *SetTableIndexRequest) FromJsonString(s string) error { 3318 f := make(map[string]interface{}) 3319 if err := json.Unmarshal([]byte(s), &f); err != nil { 3320 return err 3321 } 3322 delete(f, "ClusterId") 3323 delete(f, "SelectedTables") 3324 if len(f) > 0 { 3325 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetTableIndexRequest has unknown keys!", "") 3326 } 3327 return json.Unmarshal([]byte(s), &r) 3328} 3329 3330type SetTableIndexResponse struct { 3331 *tchttp.BaseResponse 3332 Response *struct { 3333 3334 // 表格分布式索引创建结果数量 3335 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 3336 3337 // 表格分布式索引创建结果列表 3338 TableResults []*TableResultNew `json:"TableResults,omitempty" name:"TableResults"` 3339 3340 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3341 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3342 } `json:"Response"` 3343} 3344 3345func (r *SetTableIndexResponse) ToJsonString() string { 3346 b, _ := json.Marshal(r) 3347 return string(b) 3348} 3349 3350// FromJsonString It is highly **NOT** recommended to use this function 3351// because it has no param check, nor strict type check 3352func (r *SetTableIndexResponse) FromJsonString(s string) error { 3353 return json.Unmarshal([]byte(s), &r) 3354} 3355 3356type SnapshotInfo struct { 3357 3358 // 所属表格组ID 3359 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3360 3361 // 表名称 3362 TableName *string `json:"TableName,omitempty" name:"TableName"` 3363 3364 // 快照名称 3365 SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` 3366 3367 // 快照时间点 3368 SnapshotTime *string `json:"SnapshotTime,omitempty" name:"SnapshotTime"` 3369 3370 // 快照过期时间点 3371 SnapshotDeadTime *string `json:"SnapshotDeadTime,omitempty" name:"SnapshotDeadTime"` 3372} 3373 3374type SnapshotInfoNew struct { 3375 3376 // 所属表格组ID 3377 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3378 3379 // 表名称 3380 TableName *string `json:"TableName,omitempty" name:"TableName"` 3381 3382 // 快照名称 3383 SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` 3384 3385 // 快照过期时间点 3386 SnapshotDeadTime *string `json:"SnapshotDeadTime,omitempty" name:"SnapshotDeadTime"` 3387} 3388 3389type SnapshotResult struct { 3390 3391 // 表格所属表格组ID 3392 // 注意:此字段可能返回 null,表示取不到有效值。 3393 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3394 3395 // 表格名称 3396 // 注意:此字段可能返回 null,表示取不到有效值。 3397 TableName *string `json:"TableName,omitempty" name:"TableName"` 3398 3399 // 任务ID,对于创建单任务的接口有效 3400 // 注意:此字段可能返回 null,表示取不到有效值。 3401 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 3402 3403 // 错误信息 3404 // 注意:此字段可能返回 null,表示取不到有效值。 3405 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3406 3407 // 快照名称 3408 // 注意:此字段可能返回 null,表示取不到有效值。 3409 SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` 3410 3411 // 快照的时间点 3412 // 注意:此字段可能返回 null,表示取不到有效值。 3413 SnapshotTime *string `json:"SnapshotTime,omitempty" name:"SnapshotTime"` 3414 3415 // 快照的过期时间点 3416 // 注意:此字段可能返回 null,表示取不到有效值。 3417 SnapshotDeadTime *string `json:"SnapshotDeadTime,omitempty" name:"SnapshotDeadTime"` 3418 3419 // 快照创建时间点 3420 // 注意:此字段可能返回 null,表示取不到有效值。 3421 SnapshotCreateTime *string `json:"SnapshotCreateTime,omitempty" name:"SnapshotCreateTime"` 3422 3423 // 快照大小 3424 // 注意:此字段可能返回 null,表示取不到有效值。 3425 SnapshotSize *uint64 `json:"SnapshotSize,omitempty" name:"SnapshotSize"` 3426 3427 // 快照状态,0 生成中 1 正常 2 删除中 3 已失效 4 回档使用中 3428 // 注意:此字段可能返回 null,表示取不到有效值。 3429 SnapshotStatus *uint64 `json:"SnapshotStatus,omitempty" name:"SnapshotStatus"` 3430} 3431 3432type TableGroupInfo struct { 3433 3434 // 表格组ID 3435 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3436 3437 // 表格组名称 3438 TableGroupName *string `json:"TableGroupName,omitempty" name:"TableGroupName"` 3439 3440 // 表格组创建时间 3441 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` 3442 3443 // 表格组包含的表格数量 3444 TableCount *uint64 `json:"TableCount,omitempty" name:"TableCount"` 3445 3446 // 表格组包含的表格存储总量(MB) 3447 TotalSize *uint64 `json:"TotalSize,omitempty" name:"TotalSize"` 3448} 3449 3450type TableInfoNew struct { 3451 3452 // 表格名称 3453 // 注意:此字段可能返回 null,表示取不到有效值。 3454 TableName *string `json:"TableName,omitempty" name:"TableName"` 3455 3456 // 表格实例ID 3457 // 注意:此字段可能返回 null,表示取不到有效值。 3458 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 3459 3460 // 表格数据结构类型,如:`GENERIC`或`LIST` 3461 // 注意:此字段可能返回 null,表示取不到有效值。 3462 TableType *string `json:"TableType,omitempty" name:"TableType"` 3463 3464 // 表格数据描述语言(IDL)类型,如:`PROTO`或`TDR` 3465 // 注意:此字段可能返回 null,表示取不到有效值。 3466 TableIdlType *string `json:"TableIdlType,omitempty" name:"TableIdlType"` 3467 3468 // 表格所属集群ID 3469 // 注意:此字段可能返回 null,表示取不到有效值。 3470 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3471 3472 // 表格所属集群名称 3473 // 注意:此字段可能返回 null,表示取不到有效值。 3474 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` 3475 3476 // 表格所属表格组ID 3477 // 注意:此字段可能返回 null,表示取不到有效值。 3478 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3479 3480 // 表格所属表格组名称 3481 // 注意:此字段可能返回 null,表示取不到有效值。 3482 TableGroupName *string `json:"TableGroupName,omitempty" name:"TableGroupName"` 3483 3484 // 表格主键字段结构json字符串 3485 // 注意:此字段可能返回 null,表示取不到有效值。 3486 KeyStruct *string `json:"KeyStruct,omitempty" name:"KeyStruct"` 3487 3488 // 表格非主键字段结构json字符串 3489 // 注意:此字段可能返回 null,表示取不到有效值。 3490 ValueStruct *string `json:"ValueStruct,omitempty" name:"ValueStruct"` 3491 3492 // 表格分表因子集合,对PROTO类型表格有效 3493 // 注意:此字段可能返回 null,表示取不到有效值。 3494 ShardingKeySet *string `json:"ShardingKeySet,omitempty" name:"ShardingKeySet"` 3495 3496 // 表格索引键字段集合,对PROTO类型表格有效 3497 // 注意:此字段可能返回 null,表示取不到有效值。 3498 IndexStruct *string `json:"IndexStruct,omitempty" name:"IndexStruct"` 3499 3500 // LIST类型表格元素个数 3501 // 注意:此字段可能返回 null,表示取不到有效值。 3502 ListElementNum *uint64 `json:"ListElementNum,omitempty" name:"ListElementNum"` 3503 3504 // 表格所关联IDL文件信息列表 3505 // 注意:此字段可能返回 null,表示取不到有效值。 3506 IdlFiles []*IdlFileInfo `json:"IdlFiles,omitempty" name:"IdlFiles"` 3507 3508 // 表格预留容量(GB) 3509 // 注意:此字段可能返回 null,表示取不到有效值。 3510 ReservedVolume *int64 `json:"ReservedVolume,omitempty" name:"ReservedVolume"` 3511 3512 // 表格预留读CU 3513 // 注意:此字段可能返回 null,表示取不到有效值。 3514 ReservedReadQps *int64 `json:"ReservedReadQps,omitempty" name:"ReservedReadQps"` 3515 3516 // 表格预留写CU 3517 // 注意:此字段可能返回 null,表示取不到有效值。 3518 ReservedWriteQps *int64 `json:"ReservedWriteQps,omitempty" name:"ReservedWriteQps"` 3519 3520 // 表格实际数据量大小(MB) 3521 // 注意:此字段可能返回 null,表示取不到有效值。 3522 TableSize *int64 `json:"TableSize,omitempty" name:"TableSize"` 3523 3524 // 表格状态 3525 // 注意:此字段可能返回 null,表示取不到有效值。 3526 Status *string `json:"Status,omitempty" name:"Status"` 3527 3528 // 表格创建时间 3529 // 注意:此字段可能返回 null,表示取不到有效值。 3530 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` 3531 3532 // 表格最后一次修改时间 3533 // 注意:此字段可能返回 null,表示取不到有效值。 3534 UpdatedTime *string `json:"UpdatedTime,omitempty" name:"UpdatedTime"` 3535 3536 // 表格备注信息 3537 // 注意:此字段可能返回 null,表示取不到有效值。 3538 Memo *string `json:"Memo,omitempty" name:"Memo"` 3539 3540 // 错误信息 3541 // 注意:此字段可能返回 null,表示取不到有效值。 3542 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3543 3544 // TcaplusDB SDK数据访问接入ID 3545 // 注意:此字段可能返回 null,表示取不到有效值。 3546 ApiAccessId *string `json:"ApiAccessId,omitempty" name:"ApiAccessId"` 3547 3548 // SORTLIST类型表格排序字段个数 3549 // 注意:此字段可能返回 null,表示取不到有效值。 3550 SortFieldNum *int64 `json:"SortFieldNum,omitempty" name:"SortFieldNum"` 3551 3552 // SORTLIST类型表格排序顺序 3553 // 注意:此字段可能返回 null,表示取不到有效值。 3554 SortRule *int64 `json:"SortRule,omitempty" name:"SortRule"` 3555 3556 // 表格分布式索引信息 3557 // 注意:此字段可能返回 null,表示取不到有效值。 3558 DbClusterInfoStruct *string `json:"DbClusterInfoStruct,omitempty" name:"DbClusterInfoStruct"` 3559} 3560 3561type TableResultNew struct { 3562 3563 // 表格实例ID,形如:tcaplus-3be64cbb 3564 // 注意:此字段可能返回 null,表示取不到有效值。 3565 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 3566 3567 // 任务ID,对于创建单任务的接口有效 3568 // 注意:此字段可能返回 null,表示取不到有效值。 3569 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 3570 3571 // 表格名称 3572 // 注意:此字段可能返回 null,表示取不到有效值。 3573 TableName *string `json:"TableName,omitempty" name:"TableName"` 3574 3575 // 表格数据结构类型,如:`GENERIC`或`LIST` 3576 // 注意:此字段可能返回 null,表示取不到有效值。 3577 TableType *string `json:"TableType,omitempty" name:"TableType"` 3578 3579 // 表数据描述语言(IDL)类型,如:`PROTO`或`TDR` 3580 // 注意:此字段可能返回 null,表示取不到有效值。 3581 TableIdlType *string `json:"TableIdlType,omitempty" name:"TableIdlType"` 3582 3583 // 表格所属表格组ID 3584 // 注意:此字段可能返回 null,表示取不到有效值。 3585 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3586 3587 // 错误信息 3588 // 注意:此字段可能返回 null,表示取不到有效值。 3589 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3590 3591 // 任务ID列表,对于创建多任务的接口有效 3592 // 注意:此字段可能返回 null,表示取不到有效值。 3593 TaskIds []*string `json:"TaskIds,omitempty" name:"TaskIds"` 3594 3595 // 腾讯云申请审核单Id 3596 // 注意:此字段可能返回 null,表示取不到有效值。 3597 ApplicationId *string `json:"ApplicationId,omitempty" name:"ApplicationId"` 3598} 3599 3600type TableRollbackResultNew struct { 3601 3602 // 表格实例ID,形如:tcaplus-3be64cbb 3603 // 注意:此字段可能返回 null,表示取不到有效值。 3604 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 3605 3606 // 任务ID,对于创建单任务的接口有效 3607 // 注意:此字段可能返回 null,表示取不到有效值。 3608 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 3609 3610 // 表格名称 3611 // 注意:此字段可能返回 null,表示取不到有效值。 3612 TableName *string `json:"TableName,omitempty" name:"TableName"` 3613 3614 // 表格数据结构类型,如:`GENERIC`或`LIST` 3615 // 注意:此字段可能返回 null,表示取不到有效值。 3616 TableType *string `json:"TableType,omitempty" name:"TableType"` 3617 3618 // 表格数据描述语言(IDL)类型,如:`PROTO`或`TDR` 3619 // 注意:此字段可能返回 null,表示取不到有效值。 3620 TableIdlType *string `json:"TableIdlType,omitempty" name:"TableIdlType"` 3621 3622 // 表格所属表格组ID 3623 // 注意:此字段可能返回 null,表示取不到有效值。 3624 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3625 3626 // 错误信息 3627 // 注意:此字段可能返回 null,表示取不到有效值。 3628 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3629 3630 // 任务ID列表,对于创建多任务的接口有效 3631 // 注意:此字段可能返回 null,表示取不到有效值。 3632 TaskIds []*string `json:"TaskIds,omitempty" name:"TaskIds"` 3633 3634 // 上传的key文件ID 3635 // 注意:此字段可能返回 null,表示取不到有效值。 3636 FileId *string `json:"FileId,omitempty" name:"FileId"` 3637 3638 // 校验成功Key数量 3639 // 注意:此字段可能返回 null,表示取不到有效值。 3640 SuccKeyNum *uint64 `json:"SuccKeyNum,omitempty" name:"SuccKeyNum"` 3641 3642 // Key文件中包含总的Key数量 3643 // 注意:此字段可能返回 null,表示取不到有效值。 3644 TotalKeyNum *uint64 `json:"TotalKeyNum,omitempty" name:"TotalKeyNum"` 3645} 3646 3647type TagInfoUnit struct { 3648 3649 // 标签键 3650 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` 3651 3652 // 标签值 3653 // 注意:此字段可能返回 null,表示取不到有效值。 3654 TagValue *string `json:"TagValue,omitempty" name:"TagValue"` 3655} 3656 3657type TagsInfoOfCluster struct { 3658 3659 // 集群ID 3660 // 注意:此字段可能返回 null,表示取不到有效值。 3661 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3662 3663 // 标签信息 3664 // 注意:此字段可能返回 null,表示取不到有效值。 3665 Tags []*TagInfoUnit `json:"Tags,omitempty" name:"Tags"` 3666 3667 // 错误信息 3668 // 注意:此字段可能返回 null,表示取不到有效值。 3669 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3670} 3671 3672type TagsInfoOfTable struct { 3673 3674 // 表格实例ID 3675 // 注意:此字段可能返回 null,表示取不到有效值。 3676 TableInstanceId *string `json:"TableInstanceId,omitempty" name:"TableInstanceId"` 3677 3678 // 表格名称 3679 // 注意:此字段可能返回 null,表示取不到有效值。 3680 TableName *string `json:"TableName,omitempty" name:"TableName"` 3681 3682 // 表格组ID 3683 // 注意:此字段可能返回 null,表示取不到有效值。 3684 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3685 3686 // 标签信息 3687 // 注意:此字段可能返回 null,表示取不到有效值。 3688 Tags []*TagInfoUnit `json:"Tags,omitempty" name:"Tags"` 3689 3690 // 错误信息 3691 // 注意:此字段可能返回 null,表示取不到有效值。 3692 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3693} 3694 3695type TagsInfoOfTableGroup struct { 3696 3697 // 集群ID 3698 // 注意:此字段可能返回 null,表示取不到有效值。 3699 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3700 3701 // 表格组ID 3702 // 注意:此字段可能返回 null,表示取不到有效值。 3703 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3704 3705 // 标签信息 3706 // 注意:此字段可能返回 null,表示取不到有效值。 3707 Tags []*TagInfoUnit `json:"Tags,omitempty" name:"Tags"` 3708 3709 // 错误信息 3710 // 注意:此字段可能返回 null,表示取不到有效值。 3711 Error *ErrorInfo `json:"Error,omitempty" name:"Error"` 3712} 3713 3714type TaskInfoNew struct { 3715 3716 // 任务ID 3717 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 3718 3719 // 任务类型 3720 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` 3721 3722 // 任务所关联的TcaplusDB内部事务ID 3723 TransId *string `json:"TransId,omitempty" name:"TransId"` 3724 3725 // 任务所属集群ID 3726 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3727 3728 // 任务所属集群名称 3729 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` 3730 3731 // 任务进度 3732 Progress *int64 `json:"Progress,omitempty" name:"Progress"` 3733 3734 // 任务创建时间 3735 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 3736 3737 // 任务最后更新时间 3738 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 3739 3740 // 操作者 3741 Operator *string `json:"Operator,omitempty" name:"Operator"` 3742 3743 // 任务详情 3744 Content *string `json:"Content,omitempty" name:"Content"` 3745} 3746 3747type UpdateApplyRequest struct { 3748 *tchttp.BaseRequest 3749 3750 // 申请单状态 3751 ApplyStatus []*ApplyStatus `json:"ApplyStatus,omitempty" name:"ApplyStatus"` 3752} 3753 3754func (r *UpdateApplyRequest) ToJsonString() string { 3755 b, _ := json.Marshal(r) 3756 return string(b) 3757} 3758 3759// FromJsonString It is highly **NOT** recommended to use this function 3760// because it has no param check, nor strict type check 3761func (r *UpdateApplyRequest) FromJsonString(s string) error { 3762 f := make(map[string]interface{}) 3763 if err := json.Unmarshal([]byte(s), &f); err != nil { 3764 return err 3765 } 3766 delete(f, "ApplyStatus") 3767 if len(f) > 0 { 3768 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateApplyRequest has unknown keys!", "") 3769 } 3770 return json.Unmarshal([]byte(s), &r) 3771} 3772 3773type UpdateApplyResponse struct { 3774 *tchttp.BaseResponse 3775 Response *struct { 3776 3777 // 已更新的申请单列表 3778 // 注意:此字段可能返回 null,表示取不到有效值。 3779 ApplyResults []*ApplyResult `json:"ApplyResults,omitempty" name:"ApplyResults"` 3780 3781 // 更新数量 3782 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 3783 3784 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3785 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3786 } `json:"Response"` 3787} 3788 3789func (r *UpdateApplyResponse) ToJsonString() string { 3790 b, _ := json.Marshal(r) 3791 return string(b) 3792} 3793 3794// FromJsonString It is highly **NOT** recommended to use this function 3795// because it has no param check, nor strict type check 3796func (r *UpdateApplyResponse) FromJsonString(s string) error { 3797 return json.Unmarshal([]byte(s), &r) 3798} 3799 3800type VerifyIdlFilesRequest struct { 3801 *tchttp.BaseRequest 3802 3803 // 待创建表格的集群ID 3804 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` 3805 3806 // 待创建表格的表格组ID 3807 TableGroupId *string `json:"TableGroupId,omitempty" name:"TableGroupId"` 3808 3809 // 曾经上传过的IDL文件信息列表,与NewIdlFiles至少有一者 3810 ExistingIdlFiles []*IdlFileInfo `json:"ExistingIdlFiles,omitempty" name:"ExistingIdlFiles"` 3811 3812 // 待上传的IDL文件信息列表,与ExistingIdlFiles至少有一者 3813 NewIdlFiles []*IdlFileInfo `json:"NewIdlFiles,omitempty" name:"NewIdlFiles"` 3814} 3815 3816func (r *VerifyIdlFilesRequest) ToJsonString() string { 3817 b, _ := json.Marshal(r) 3818 return string(b) 3819} 3820 3821// FromJsonString It is highly **NOT** recommended to use this function 3822// because it has no param check, nor strict type check 3823func (r *VerifyIdlFilesRequest) FromJsonString(s string) error { 3824 f := make(map[string]interface{}) 3825 if err := json.Unmarshal([]byte(s), &f); err != nil { 3826 return err 3827 } 3828 delete(f, "ClusterId") 3829 delete(f, "TableGroupId") 3830 delete(f, "ExistingIdlFiles") 3831 delete(f, "NewIdlFiles") 3832 if len(f) > 0 { 3833 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "VerifyIdlFilesRequest has unknown keys!", "") 3834 } 3835 return json.Unmarshal([]byte(s), &r) 3836} 3837 3838type VerifyIdlFilesResponse struct { 3839 *tchttp.BaseResponse 3840 Response *struct { 3841 3842 // 本次上传校验所有的IDL文件信息列表 3843 IdlFiles []*IdlFileInfo `json:"IdlFiles,omitempty" name:"IdlFiles"` 3844 3845 // 读取IDL描述文件后解析出的合法表数量,不包含已经创建的表 3846 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 3847 3848 // 读取IDL描述文件后解析出的合法表列表,不包含已经创建的表 3849 TableInfos []*ParsedTableInfoNew `json:"TableInfos,omitempty" name:"TableInfos"` 3850 3851 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3852 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3853 } `json:"Response"` 3854} 3855 3856func (r *VerifyIdlFilesResponse) ToJsonString() string { 3857 b, _ := json.Marshal(r) 3858 return string(b) 3859} 3860 3861// FromJsonString It is highly **NOT** recommended to use this function 3862// because it has no param check, nor strict type check 3863func (r *VerifyIdlFilesResponse) FromJsonString(s string) error { 3864 return json.Unmarshal([]byte(s), &r) 3865} 3866