# frozen_string_literal: true # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module TencentCloud module Cdwch module V20200915 # ActionAlterCkUser请求参数结构体 class ActionAlterCkUserRequest < TencentCloud::Common::AbstractModel # @param UserInfo: 用户信息 # @type UserInfo: :class:`Tencentcloud::Cdwch.v20200915.models.CkUserAlterInfo` # @param ApiType: api接口类型, # AddSystemUser新增用户,UpdateSystemUser,修改用户 # @type ApiType: String attr_accessor :UserInfo, :ApiType def initialize(userinfo=nil, apitype=nil) @UserInfo = userinfo @ApiType = apitype end def deserialize(params) unless params['UserInfo'].nil? @UserInfo = CkUserAlterInfo.new @UserInfo.deserialize(params['UserInfo']) end @ApiType = params['ApiType'] end end # ActionAlterCkUser返回参数结构体 class ActionAlterCkUserResponse < TencentCloud::Common::AbstractModel # @param ErrMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ErrMsg, :RequestId def initialize(errmsg=nil, requestid=nil) @ErrMsg = errmsg @RequestId = requestid end def deserialize(params) @ErrMsg = params['ErrMsg'] @RequestId = params['RequestId'] end end # 集群内节点的规格磁盘规格描述 class AttachCBSSpec < TencentCloud::Common::AbstractModel # @param DiskType: 节点磁盘类型,例如“CLOUD_SSD”\"CLOUD_PREMIUM" # @type DiskType: String # @param DiskSize: 磁盘容量,单位G # @type DiskSize: Integer # @param DiskCount: 磁盘总数 # @type DiskCount: Integer # @param DiskDesc: 描述 # @type DiskDesc: String attr_accessor :DiskType, :DiskSize, :DiskCount, :DiskDesc def initialize(disktype=nil, disksize=nil, diskcount=nil, diskdesc=nil) @DiskType = disktype @DiskSize = disksize @DiskCount = diskcount @DiskDesc = diskdesc end def deserialize(params) @DiskType = params['DiskType'] @DiskSize = params['DiskSize'] @DiskCount = params['DiskCount'] @DiskDesc = params['DiskDesc'] end end # 备份表信息 class BackupTableContent < TencentCloud::Common::AbstractModel # @param Database: 数据库 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Database: String # @param Table: 表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Table: String # @param TotalBytes: 表总字节数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TotalBytes: Integer # @param VCluster: 虚拟cluster # 注意:此字段可能返回 null,表示取不到有效值。 # @type VCluster: String # @param Ips: 表ip # 注意:此字段可能返回 null,表示取不到有效值。 # @type Ips: String # @param ZooPath: zk路径 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ZooPath: String # @param Rip: cvm的ip地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Rip: String attr_accessor :Database, :Table, :TotalBytes, :VCluster, :Ips, :ZooPath, :Rip def initialize(database=nil, table=nil, totalbytes=nil, vcluster=nil, ips=nil, zoopath=nil, rip=nil) @Database = database @Table = table @TotalBytes = totalbytes @VCluster = vcluster @Ips = ips @ZooPath = zoopath @Rip = rip end def deserialize(params) @Database = params['Database'] @Table = params['Table'] @TotalBytes = params['TotalBytes'] @VCluster = params['VCluster'] @Ips = params['Ips'] @ZooPath = params['ZooPath'] @Rip = params['Rip'] end end # 集群计费相关信息 class Charge < TencentCloud::Common::AbstractModel # @param ChargeType: 计费类型,“PREPAID” 预付费,“POSTPAID_BY_HOUR” 后付费 # @type ChargeType: String # @param RenewFlag: PREPAID需要传递,是否自动续费,1表示自动续费开启 # @type RenewFlag: Integer # @param TimeSpan: 预付费需要传递,计费时间长度,多少个月 # @type TimeSpan: Integer attr_accessor :ChargeType, :RenewFlag, :TimeSpan def initialize(chargetype=nil, renewflag=nil, timespan=nil) @ChargeType = chargetype @RenewFlag = renewflag @TimeSpan = timespan end def deserialize(params) @ChargeType = params['ChargeType'] @RenewFlag = params['RenewFlag'] @TimeSpan = params['TimeSpan'] end end # 新增或是修改ck用户 class CkUserAlterInfo < TencentCloud::Common::AbstractModel # @param InstanceId: 集群实例id # @type InstanceId: String # @param UserName: 用户名 # @type UserName: String # @param PassWord: 密码 # @type PassWord: String # @param Describe: 描述 # @type Describe: String attr_accessor :InstanceId, :UserName, :PassWord, :Describe def initialize(instanceid=nil, username=nil, password=nil, describe=nil) @InstanceId = instanceid @UserName = username @PassWord = password @Describe = describe end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @PassWord = params['PassWord'] @Describe = params['Describe'] end end # 用于返回XML格式的配置文件和内容以及其他配置文件有关的信息 class ClusterConfigsInfoFromEMR < TencentCloud::Common::AbstractModel # @param FileName: 配置文件名称 # @type FileName: String # @param FileConf: 配置文件对应的相关属性信息 # @type FileConf: String # @param KeyConf: 配置文件对应的其他属性信息 # @type KeyConf: String # @param OriParam: 配置文件的内容,base64编码 # @type OriParam: String # @param NeedRestart: 用于表示当前配置文件是不是有过修改后没有重启,提醒用户需要重启 # @type NeedRestart: Integer # @param FilePath: 保存配置文件的路径 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FilePath: String attr_accessor :FileName, :FileConf, :KeyConf, :OriParam, :NeedRestart, :FilePath def initialize(filename=nil, fileconf=nil, keyconf=nil, oriparam=nil, needrestart=nil, filepath=nil) @FileName = filename @FileConf = fileconf @KeyConf = keyconf @OriParam = oriparam @NeedRestart = needrestart @FilePath = filepath end def deserialize(params) @FileName = params['FileName'] @FileConf = params['FileConf'] @KeyConf = params['KeyConf'] @OriParam = params['OriParam'] @NeedRestart = params['NeedRestart'] @FilePath = params['FilePath'] end end # clickhouse vcluster信息 class ClusterInfo < TencentCloud::Common::AbstractModel # @param ClusterName: vcluster名字 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ClusterName: String # @param NodeIps: 当前cluster的IP列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NodeIps: Array attr_accessor :ClusterName, :NodeIps def initialize(clustername=nil, nodeips=nil) @ClusterName = clustername @NodeIps = nodeips end def deserialize(params) @ClusterName = params['ClusterName'] @NodeIps = params['NodeIps'] end end # 配置文件修改信息 class ConfigSubmitContext < TencentCloud::Common::AbstractModel # @param FileName: 配置文件名称 # @type FileName: String # @param OldConfValue: 配置文件旧内容,base64编码 # @type OldConfValue: String # @param NewConfValue: 配置文件新内容,base64编码 # @type NewConfValue: String # @param FilePath: 保存配置文件的路径 # @type FilePath: String attr_accessor :FileName, :OldConfValue, :NewConfValue, :FilePath def initialize(filename=nil, oldconfvalue=nil, newconfvalue=nil, filepath=nil) @FileName = filename @OldConfValue = oldconfvalue @NewConfValue = newconfvalue @FilePath = filepath end def deserialize(params) @FileName = params['FileName'] @OldConfValue = params['OldConfValue'] @NewConfValue = params['NewConfValue'] @FilePath = params['FilePath'] end end # CreateBackUpSchedule请求参数结构体 class CreateBackUpScheduleRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群id # @type InstanceId: String # @param ScheduleType: 策略类型 meta(元数据) data (表数据) # @type ScheduleType: String # @param OperationType: 操作类型 create(创建) update(编辑修改) # @type OperationType: String # @param RetainDays: 保留天数 例如7 # @type RetainDays: Integer # @param ScheduleId: 编辑时需要传 # @type ScheduleId: Integer # @param WeekDays: 选择的星期 逗号分隔,例如 2 代表周二 # @type WeekDays: String # @param ExecuteHour: 执行小时 # @type ExecuteHour: Integer # @param BackUpTables: 备份表列表 # @type BackUpTables: Array attr_accessor :InstanceId, :ScheduleType, :OperationType, :RetainDays, :ScheduleId, :WeekDays, :ExecuteHour, :BackUpTables def initialize(instanceid=nil, scheduletype=nil, operationtype=nil, retaindays=nil, scheduleid=nil, weekdays=nil, executehour=nil, backuptables=nil) @InstanceId = instanceid @ScheduleType = scheduletype @OperationType = operationtype @RetainDays = retaindays @ScheduleId = scheduleid @WeekDays = weekdays @ExecuteHour = executehour @BackUpTables = backuptables end def deserialize(params) @InstanceId = params['InstanceId'] @ScheduleType = params['ScheduleType'] @OperationType = params['OperationType'] @RetainDays = params['RetainDays'] @ScheduleId = params['ScheduleId'] @WeekDays = params['WeekDays'] @ExecuteHour = params['ExecuteHour'] unless params['BackUpTables'].nil? @BackUpTables = [] params['BackUpTables'].each do |i| backuptablecontent_tmp = BackupTableContent.new backuptablecontent_tmp.deserialize(i) @BackUpTables << backuptablecontent_tmp end end end end # CreateBackUpSchedule返回参数结构体 class CreateBackUpScheduleResponse < TencentCloud::Common::AbstractModel # @param ErrorMsg: 错误描述 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ErrorMsg, :RequestId def initialize(errormsg=nil, requestid=nil) @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # CreateInstanceNew请求参数结构体 class CreateInstanceNewRequest < TencentCloud::Common::AbstractModel # @param Zone: 可用区 # @type Zone: String # @param HaFlag: 是否高可用 # @type HaFlag: Boolean # @param UserVPCId: 私有网络 # @type UserVPCId: String # @param UserSubnetId: 子网 # @type UserSubnetId: String # @param ProductVersion: 版本 # @type ProductVersion: String # @param ChargeProperties: 计费方式 # @type ChargeProperties: :class:`Tencentcloud::Cdwch.v20200915.models.Charge` # @param InstanceName: 实例名称 # @type InstanceName: String # @param DataSpec: 数据节点 # @type DataSpec: :class:`Tencentcloud::Cdwch.v20200915.models.NodeSpec` # @param Tags: 标签列表 # @type Tags: :class:`Tencentcloud::Cdwch.v20200915.models.Tag` # @param ClsLogSetId: 日志主题ID # @type ClsLogSetId: String # @param CosBucketName: COS桶名称 # @type CosBucketName: String # @param MountDiskType: 是否是裸盘挂载 # @type MountDiskType: Integer # @param HAZk: 是否是ZK高可用 # @type HAZk: Boolean # @param CommonSpec: ZK节点 # @type CommonSpec: :class:`Tencentcloud::Cdwch.v20200915.models.NodeSpec` attr_accessor :Zone, :HaFlag, :UserVPCId, :UserSubnetId, :ProductVersion, :ChargeProperties, :InstanceName, :DataSpec, :Tags, :ClsLogSetId, :CosBucketName, :MountDiskType, :HAZk, :CommonSpec def initialize(zone=nil, haflag=nil, uservpcid=nil, usersubnetid=nil, productversion=nil, chargeproperties=nil, instancename=nil, dataspec=nil, tags=nil, clslogsetid=nil, cosbucketname=nil, mountdisktype=nil, hazk=nil, commonspec=nil) @Zone = zone @HaFlag = haflag @UserVPCId = uservpcid @UserSubnetId = usersubnetid @ProductVersion = productversion @ChargeProperties = chargeproperties @InstanceName = instancename @DataSpec = dataspec @Tags = tags @ClsLogSetId = clslogsetid @CosBucketName = cosbucketname @MountDiskType = mountdisktype @HAZk = hazk @CommonSpec = commonspec end def deserialize(params) @Zone = params['Zone'] @HaFlag = params['HaFlag'] @UserVPCId = params['UserVPCId'] @UserSubnetId = params['UserSubnetId'] @ProductVersion = params['ProductVersion'] unless params['ChargeProperties'].nil? @ChargeProperties = Charge.new @ChargeProperties.deserialize(params['ChargeProperties']) end @InstanceName = params['InstanceName'] unless params['DataSpec'].nil? @DataSpec = NodeSpec.new @DataSpec.deserialize(params['DataSpec']) end unless params['Tags'].nil? @Tags = Tag.new @Tags.deserialize(params['Tags']) end @ClsLogSetId = params['ClsLogSetId'] @CosBucketName = params['CosBucketName'] @MountDiskType = params['MountDiskType'] @HAZk = params['HAZk'] unless params['CommonSpec'].nil? @CommonSpec = NodeSpec.new @CommonSpec.deserialize(params['CommonSpec']) end end end # CreateInstanceNew返回参数结构体 class CreateInstanceNewResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: String # @param InstanceId: 实例ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String # @param ErrorMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :InstanceId, :ErrorMsg, :RequestId def initialize(flowid=nil, instanceid=nil, errormsg=nil, requestid=nil) @FlowId = flowid @InstanceId = instanceid @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @InstanceId = params['InstanceId'] @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # DescribeBackUpSchedule请求参数结构体 class DescribeBackUpScheduleRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群id # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeBackUpSchedule返回参数结构体 class DescribeBackUpScheduleResponse < TencentCloud::Common::AbstractModel # @param BackUpOpened: 备份是否开启 # @type BackUpOpened: Boolean # @param MetaStrategy: 元数据备份策略 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MetaStrategy: :class:`Tencentcloud::Cdwch.v20200915.models.ScheduleStrategy` # @param DataStrategy: 表数据备份策略 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DataStrategy: :class:`Tencentcloud::Cdwch.v20200915.models.ScheduleStrategy` # @param BackUpContents: 备份表列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type BackUpContents: Array # @param BackUpStatus: 备份的状态 # @type BackUpStatus: Integer # @param ErrorMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :BackUpOpened, :MetaStrategy, :DataStrategy, :BackUpContents, :BackUpStatus, :ErrorMsg, :RequestId def initialize(backupopened=nil, metastrategy=nil, datastrategy=nil, backupcontents=nil, backupstatus=nil, errormsg=nil, requestid=nil) @BackUpOpened = backupopened @MetaStrategy = metastrategy @DataStrategy = datastrategy @BackUpContents = backupcontents @BackUpStatus = backupstatus @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @BackUpOpened = params['BackUpOpened'] unless params['MetaStrategy'].nil? @MetaStrategy = ScheduleStrategy.new @MetaStrategy.deserialize(params['MetaStrategy']) end unless params['DataStrategy'].nil? @DataStrategy = ScheduleStrategy.new @DataStrategy.deserialize(params['DataStrategy']) end unless params['BackUpContents'].nil? @BackUpContents = [] params['BackUpContents'].each do |i| backuptablecontent_tmp = BackupTableContent.new backuptablecontent_tmp.deserialize(i) @BackUpContents << backuptablecontent_tmp end end @BackUpStatus = params['BackUpStatus'] @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # DescribeCkSqlApis请求参数结构体 class DescribeCkSqlApisRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例id # @type InstanceId: String # @param ApiType: api接口名称,GetClusters:获取集群cluster列表 # GetSystemUsers:获取系统用户列表 # CheckNodeCluster: 检查节点是否隶属一个cluster # GetClusterDatabases: 获取一个cluster下的数据库列表 # GetClusterTables: 获取一个cluster下的数据库表列表 # GetPrivilegeUsers: 获取授权的用户列表 # GET_USER_CLUSTER_PRIVILEGES:获取用户cluster下的权限 # GetUserClusterNewPrivileges:获取用户cluster下的权限 (新版) # RevokeClusterUser:解绑cluster用户 # DeleteSystemUser:删除系统用户 —— 必须所有cluster先解绑 # GetUserOptionMessages:获取用户配置备注信息 # GET_USER_CONFIGS:获取用户配置列表 QUOTA、PROFILE、POLICY # @type ApiType: String # @param Cluster: 集群名称,GET_SYSTEM_USERS,GET_PRIVILEGE_USERS,GET_CLUSTER_DATABASES,GET_CLUSTER_TABLES 必填 # @type Cluster: String # @param UserName: 用户名称,api与user相关的必填 # @type UserName: String attr_accessor :InstanceId, :ApiType, :Cluster, :UserName def initialize(instanceid=nil, apitype=nil, cluster=nil, username=nil) @InstanceId = instanceid @ApiType = apitype @Cluster = cluster @UserName = username end def deserialize(params) @InstanceId = params['InstanceId'] @ApiType = params['ApiType'] @Cluster = params['Cluster'] @UserName = params['UserName'] end end # DescribeCkSqlApis返回参数结构体 class DescribeCkSqlApisResponse < TencentCloud::Common::AbstractModel # @param ReturnData: 返回的查询数据,大部分情况是list,也可能是bool # 注意:此字段可能返回 null,表示取不到有效值。 # @type ReturnData: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ReturnData, :RequestId def initialize(returndata=nil, requestid=nil) @ReturnData = returndata @RequestId = requestid end def deserialize(params) @ReturnData = params['ReturnData'] @RequestId = params['RequestId'] end end # DescribeClusterConfigs请求参数结构体 class DescribeClusterConfigsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群实例ID # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeClusterConfigs返回参数结构体 class DescribeClusterConfigsResponse < TencentCloud::Common::AbstractModel # @param ClusterConfList: 返回实例的配置文件相关的信息 # @type ClusterConfList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ClusterConfList, :RequestId def initialize(clusterconflist=nil, requestid=nil) @ClusterConfList = clusterconflist @RequestId = requestid end def deserialize(params) unless params['ClusterConfList'].nil? @ClusterConfList = [] params['ClusterConfList'].each do |i| clusterconfigsinfofromemr_tmp = ClusterConfigsInfoFromEMR.new clusterconfigsinfofromemr_tmp.deserialize(i) @ClusterConfList << clusterconfigsinfofromemr_tmp end end @RequestId = params['RequestId'] end end # DescribeInstanceClusters请求参数结构体 class DescribeInstanceClustersRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeInstanceClusters返回参数结构体 class DescribeInstanceClustersResponse < TencentCloud::Common::AbstractModel # @param Clusters: cluster列表 # @type Clusters: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Clusters, :RequestId def initialize(clusters=nil, requestid=nil) @Clusters = clusters @RequestId = requestid end def deserialize(params) unless params['Clusters'].nil? @Clusters = [] params['Clusters'].each do |i| clusterinfo_tmp = ClusterInfo.new clusterinfo_tmp.deserialize(i) @Clusters << clusterinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeInstanceKeyValConfigs请求参数结构体 class DescribeInstanceKeyValConfigsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群实例ID # @type InstanceId: String # @param SearchConfigName: 搜索的配置项名称 # @type SearchConfigName: String attr_accessor :InstanceId, :SearchConfigName def initialize(instanceid=nil, searchconfigname=nil) @InstanceId = instanceid @SearchConfigName = searchconfigname end def deserialize(params) @InstanceId = params['InstanceId'] @SearchConfigName = params['SearchConfigName'] end end # DescribeInstanceKeyValConfigs返回参数结构体 class DescribeInstanceKeyValConfigsResponse < TencentCloud::Common::AbstractModel # @param ConfigItems: 参数列表 # @type ConfigItems: Array # @param UnConfigItems: 未配置的参数列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type UnConfigItems: Array # @param MapConfigItems: 配置的多层级参数列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MapConfigItems: Array # @param ErrorMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ConfigItems, :UnConfigItems, :MapConfigItems, :ErrorMsg, :RequestId def initialize(configitems=nil, unconfigitems=nil, mapconfigitems=nil, errormsg=nil, requestid=nil) @ConfigItems = configitems @UnConfigItems = unconfigitems @MapConfigItems = mapconfigitems @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) unless params['ConfigItems'].nil? @ConfigItems = [] params['ConfigItems'].each do |i| instanceconfiginfo_tmp = InstanceConfigInfo.new instanceconfiginfo_tmp.deserialize(i) @ConfigItems << instanceconfiginfo_tmp end end unless params['UnConfigItems'].nil? @UnConfigItems = [] params['UnConfigItems'].each do |i| instanceconfiginfo_tmp = InstanceConfigInfo.new instanceconfiginfo_tmp.deserialize(i) @UnConfigItems << instanceconfiginfo_tmp end end unless params['MapConfigItems'].nil? @MapConfigItems = [] params['MapConfigItems'].each do |i| mapconfigitem_tmp = MapConfigItem.new mapconfigitem_tmp.deserialize(i) @MapConfigItems << mapconfigitem_tmp end end @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # DescribeInstance请求参数结构体 class DescribeInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群实例ID # @type InstanceId: String # @param IsOpenApi: 是否是open api查询 # @type IsOpenApi: Boolean attr_accessor :InstanceId, :IsOpenApi def initialize(instanceid=nil, isopenapi=nil) @InstanceId = instanceid @IsOpenApi = isopenapi end def deserialize(params) @InstanceId = params['InstanceId'] @IsOpenApi = params['IsOpenApi'] end end # DescribeInstance返回参数结构体 class DescribeInstanceResponse < TencentCloud::Common::AbstractModel # @param InstanceInfo: 实例描述信息 # @type InstanceInfo: :class:`Tencentcloud::Cdwch.v20200915.models.InstanceInfo` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceInfo, :RequestId def initialize(instanceinfo=nil, requestid=nil) @InstanceInfo = instanceinfo @RequestId = requestid end def deserialize(params) unless params['InstanceInfo'].nil? @InstanceInfo = InstanceInfo.new @InstanceInfo.deserialize(params['InstanceInfo']) end @RequestId = params['RequestId'] end end # DescribeInstanceShards请求参数结构体 class DescribeInstanceShardsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群实例ID # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeInstanceShards返回参数结构体 class DescribeInstanceShardsResponse < TencentCloud::Common::AbstractModel # @param InstanceShardsList: 实例shard信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceShardsList: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceShardsList, :RequestId def initialize(instanceshardslist=nil, requestid=nil) @InstanceShardsList = instanceshardslist @RequestId = requestid end def deserialize(params) @InstanceShardsList = params['InstanceShardsList'] @RequestId = params['RequestId'] end end # DescribeInstanceState请求参数结构体 class DescribeInstanceStateRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群实例名称 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeInstanceState返回参数结构体 class DescribeInstanceStateResponse < TencentCloud::Common::AbstractModel # @param InstanceState: 集群状态,例如:Serving # @type InstanceState: String # @param FlowCreateTime: 集群操作创建时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowCreateTime: String # @param FlowName: 集群操作名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowName: String # @param FlowProgress: 集群操作进度 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowProgress: Float # @param InstanceStateDesc: 集群状态描述,例如:运行中 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceStateDesc: String # @param FlowMsg: 集群流程错误信息,例如:“创建失败,资源不足” # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceState, :FlowCreateTime, :FlowName, :FlowProgress, :InstanceStateDesc, :FlowMsg, :RequestId def initialize(instancestate=nil, flowcreatetime=nil, flowname=nil, flowprogress=nil, instancestatedesc=nil, flowmsg=nil, requestid=nil) @InstanceState = instancestate @FlowCreateTime = flowcreatetime @FlowName = flowname @FlowProgress = flowprogress @InstanceStateDesc = instancestatedesc @FlowMsg = flowmsg @RequestId = requestid end def deserialize(params) @InstanceState = params['InstanceState'] @FlowCreateTime = params['FlowCreateTime'] @FlowName = params['FlowName'] @FlowProgress = params['FlowProgress'] @InstanceStateDesc = params['InstanceStateDesc'] @FlowMsg = params['FlowMsg'] @RequestId = params['RequestId'] end end # DescribeInstancesNew请求参数结构体 class DescribeInstancesNewRequest < TencentCloud::Common::AbstractModel # @param SearchInstanceId: 搜索的集群id名称 # @type SearchInstanceId: String # @param SearchInstanceName: 搜索的集群name # @type SearchInstanceName: String # @param Offset: 分页参数,第一页为0,第二页为10 # @type Offset: Integer # @param Limit: 分页参数,分页步长,默认为10 # @type Limit: Integer # @param SearchTags: 搜索标签列表 # @type SearchTags: Array # @param IsSimple: 信息详细与否 # @type IsSimple: Boolean attr_accessor :SearchInstanceId, :SearchInstanceName, :Offset, :Limit, :SearchTags, :IsSimple def initialize(searchinstanceid=nil, searchinstancename=nil, offset=nil, limit=nil, searchtags=nil, issimple=nil) @SearchInstanceId = searchinstanceid @SearchInstanceName = searchinstancename @Offset = offset @Limit = limit @SearchTags = searchtags @IsSimple = issimple end def deserialize(params) @SearchInstanceId = params['SearchInstanceId'] @SearchInstanceName = params['SearchInstanceName'] @Offset = params['Offset'] @Limit = params['Limit'] unless params['SearchTags'].nil? @SearchTags = [] params['SearchTags'].each do |i| searchtags_tmp = SearchTags.new searchtags_tmp.deserialize(i) @SearchTags << searchtags_tmp end end @IsSimple = params['IsSimple'] end end # DescribeInstancesNew返回参数结构体 class DescribeInstancesNewResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 实例总数 # @type TotalCount: Integer # @param InstancesList: 实例数组 # @type InstancesList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :InstancesList, :RequestId def initialize(totalcount=nil, instanceslist=nil, requestid=nil) @TotalCount = totalcount @InstancesList = instanceslist @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['InstancesList'].nil? @InstancesList = [] params['InstancesList'].each do |i| instanceinfo_tmp = InstanceInfo.new instanceinfo_tmp.deserialize(i) @InstancesList << instanceinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeSpec请求参数结构体 class DescribeSpecRequest < TencentCloud::Common::AbstractModel # @param Zone: 地域信息,例如"ap-guangzhou-1" # @type Zone: String # @param PayMode: 计费类型,PREPAID 包年包月,POSTPAID_BY_HOUR 按量计费 # @type PayMode: String # @param IsElastic: 是否弹性ck # @type IsElastic: Boolean attr_accessor :Zone, :PayMode, :IsElastic def initialize(zone=nil, paymode=nil, iselastic=nil) @Zone = zone @PayMode = paymode @IsElastic = iselastic end def deserialize(params) @Zone = params['Zone'] @PayMode = params['PayMode'] @IsElastic = params['IsElastic'] end end # DescribeSpec返回参数结构体 class DescribeSpecResponse < TencentCloud::Common::AbstractModel # @param CommonSpec: zookeeper节点规格描述 # @type CommonSpec: Array # @param DataSpec: 数据节点规格描述 # @type DataSpec: Array # @param AttachCBSSpec: 云盘列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AttachCBSSpec: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :CommonSpec, :DataSpec, :AttachCBSSpec, :RequestId def initialize(commonspec=nil, dataspec=nil, attachcbsspec=nil, requestid=nil) @CommonSpec = commonspec @DataSpec = dataspec @AttachCBSSpec = attachcbsspec @RequestId = requestid end def deserialize(params) unless params['CommonSpec'].nil? @CommonSpec = [] params['CommonSpec'].each do |i| resourcespec_tmp = ResourceSpec.new resourcespec_tmp.deserialize(i) @CommonSpec << resourcespec_tmp end end unless params['DataSpec'].nil? @DataSpec = [] params['DataSpec'].each do |i| resourcespec_tmp = ResourceSpec.new resourcespec_tmp.deserialize(i) @DataSpec << resourcespec_tmp end end unless params['AttachCBSSpec'].nil? @AttachCBSSpec = [] params['AttachCBSSpec'].each do |i| diskspec_tmp = DiskSpec.new diskspec_tmp.deserialize(i) @AttachCBSSpec << diskspec_tmp end end @RequestId = params['RequestId'] end end # DestroyInstance请求参数结构体 class DestroyInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群id # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DestroyInstance返回参数结构体 class DestroyInstanceResponse < TencentCloud::Common::AbstractModel # @param FlowID: 作业id # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowID: String # @param InstanceID: 集群id # @type InstanceID: String # @param ErrorMsg: 错误信息 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowID, :InstanceID, :ErrorMsg, :RequestId def initialize(flowid=nil, instanceid=nil, errormsg=nil, requestid=nil) @FlowID = flowid @InstanceID = instanceid @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @FlowID = params['FlowID'] @InstanceID = params['InstanceID'] @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # 磁盘规格描述 class DiskSpec < TencentCloud::Common::AbstractModel # @param DiskType: 磁盘类型,例如“CLOUD_SSD", "LOCAL_SSD"等 # @type DiskType: String # @param DiskDesc: 磁盘类型说明,例如"云SSD", "本地SSD"等 # @type DiskDesc: String # @param MinDiskSize: 磁盘最小规格大小,单位G # @type MinDiskSize: Integer # @param MaxDiskSize: 磁盘最大规格大小,单位G # @type MaxDiskSize: Integer # @param DiskCount: 磁盘数目 # @type DiskCount: Integer attr_accessor :DiskType, :DiskDesc, :MinDiskSize, :MaxDiskSize, :DiskCount def initialize(disktype=nil, diskdesc=nil, mindisksize=nil, maxdisksize=nil, diskcount=nil) @DiskType = disktype @DiskDesc = diskdesc @MinDiskSize = mindisksize @MaxDiskSize = maxdisksize @DiskCount = diskcount end def deserialize(params) @DiskType = params['DiskType'] @DiskDesc = params['DiskDesc'] @MinDiskSize = params['MinDiskSize'] @MaxDiskSize = params['MaxDiskSize'] @DiskCount = params['DiskCount'] end end # 集群配置信息 class InstanceConfigInfo < TencentCloud::Common::AbstractModel # @param ConfKey: 配置项名称 # @type ConfKey: String # @param ConfValue: 配置项内容 # @type ConfValue: String # @param DefaultValue: 默认值 # @type DefaultValue: String # @param NeedRestart: 是否需要重启 # @type NeedRestart: Boolean # @param Editable: 是否可编辑 # @type Editable: Boolean # @param ConfDesc: 配置项解释 # @type ConfDesc: String # @param FileName: 文件名称 # @type FileName: String # @param ModifyRuleType: 规则名称类型 # @type ModifyRuleType: String # @param ModifyRuleValue: 规则名称内容 # @type ModifyRuleValue: String # @param Uin: 修改人的uin # @type Uin: String # @param ModifyTime: 修改时间 # @type ModifyTime: String attr_accessor :ConfKey, :ConfValue, :DefaultValue, :NeedRestart, :Editable, :ConfDesc, :FileName, :ModifyRuleType, :ModifyRuleValue, :Uin, :ModifyTime def initialize(confkey=nil, confvalue=nil, defaultvalue=nil, needrestart=nil, editable=nil, confdesc=nil, filename=nil, modifyruletype=nil, modifyrulevalue=nil, uin=nil, modifytime=nil) @ConfKey = confkey @ConfValue = confvalue @DefaultValue = defaultvalue @NeedRestart = needrestart @Editable = editable @ConfDesc = confdesc @FileName = filename @ModifyRuleType = modifyruletype @ModifyRuleValue = modifyrulevalue @Uin = uin @ModifyTime = modifytime end def deserialize(params) @ConfKey = params['ConfKey'] @ConfValue = params['ConfValue'] @DefaultValue = params['DefaultValue'] @NeedRestart = params['NeedRestart'] @Editable = params['Editable'] @ConfDesc = params['ConfDesc'] @FileName = params['FileName'] @ModifyRuleType = params['ModifyRuleType'] @ModifyRuleValue = params['ModifyRuleValue'] @Uin = params['Uin'] @ModifyTime = params['ModifyTime'] end end # KV配置 class InstanceConfigItem < TencentCloud::Common::AbstractModel # @param ConfKey: key # @type ConfKey: String # @param ConfValue: value # @type ConfValue: String attr_accessor :ConfKey, :ConfValue def initialize(confkey=nil, confvalue=nil) @ConfKey = confkey @ConfValue = confvalue end def deserialize(params) @ConfKey = params['ConfKey'] @ConfValue = params['ConfValue'] end end # 实例描述信息 class InstanceInfo < TencentCloud::Common::AbstractModel # @param InstanceId: 集群实例ID, "cdw-xxxx" 字符串类型 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String # @param InstanceName: 集群实例名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceName: String # @param Status: 状态, # Init 创建中; Serving 运行中; # Deleted已销毁;Deleting 销毁中; # Modify 集群变更中; # 注意:此字段可能返回 null,表示取不到有效值。 # @type Status: String # @param Version: 版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Version: String # @param Region: 地域, ap-guangzhou # 注意:此字段可能返回 null,表示取不到有效值。 # @type Region: String # @param Zone: 可用区, ap-guangzhou-3 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Zone: String # @param VpcId: 私有网络名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VpcId: String # @param SubnetId: 子网名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SubnetId: String # @param PayMode: 付费类型,"hour", "prepay" # 注意:此字段可能返回 null,表示取不到有效值。 # @type PayMode: String # @param CreateTime: 创建时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CreateTime: String # @param ExpireTime: 过期时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ExpireTime: String # @param MasterSummary: 数据节点描述信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MasterSummary: :class:`Tencentcloud::Cdwch.v20200915.models.NodesSummary` # @param CommonSummary: zookeeper节点描述信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CommonSummary: :class:`Tencentcloud::Cdwch.v20200915.models.NodesSummary` # @param HA: 高可用,“true" "false" # 注意:此字段可能返回 null,表示取不到有效值。 # @type HA: String # @param AccessInfo: 访问地址,例如 "10.0.0.1:9000" # 注意:此字段可能返回 null,表示取不到有效值。 # @type AccessInfo: String # @param Id: 记录ID,数值型 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Id: Integer # @param RegionId: regionId, 表示地域 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RegionId: Integer # @param ZoneDesc: 可用区说明,例如 "广州二区" # 注意:此字段可能返回 null,表示取不到有效值。 # @type ZoneDesc: String # @param FlowMsg: 错误流程说明信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowMsg: String # @param StatusDesc: 状态描述,例如“运行中”等 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StatusDesc: String # @param RenewFlag: 自动续费标记 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RenewFlag: Boolean # @param Tags: 标签列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Tags: Array # @param Monitor: 监控信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Monitor: String # @param HasClsTopic: 是否开通日志 # 注意:此字段可能返回 null,表示取不到有效值。 # @type HasClsTopic: Boolean # @param ClsTopicId: 日志主题ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ClsTopicId: String # @param ClsLogSetId: 日志集ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ClsLogSetId: String # @param EnableXMLConfig: 是否支持xml配置管理 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EnableXMLConfig: Integer # @param RegionDesc: 区域 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RegionDesc: String # @param Eip: 弹性网卡地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Eip: String # @param CosMoveFactor: 冷热分层系数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CosMoveFactor: Integer # @param Kind: external/local/yunti # 注意:此字段可能返回 null,表示取不到有效值。 # @type Kind: String # @param IsElastic: 是否弹性ck # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsElastic: Boolean # @param InstanceStateInfo: 集群详细状态 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceStateInfo: :class:`Tencentcloud::Cdwch.v20200915.models.InstanceStateInfo` # @param HAZk: ZK高可用 # 注意:此字段可能返回 null,表示取不到有效值。 # @type HAZk: Boolean # @param MountDiskType: 挂载盘,默认0:没有类型;1:裸盘;2:lvm # 注意:此字段可能返回 null,表示取不到有效值。 # @type MountDiskType: Integer # @param CHProxyVip: 无 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CHProxyVip: String # @param CosBucketName: cos buket的名字 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CosBucketName: String # @param CanAttachCbs: 是否可以挂载云盘 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CanAttachCbs: Boolean # @param CanAttachCbsLvm: 是否可以挂载云盘阵列 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CanAttachCbsLvm: Boolean # @param CanAttachCos: 是否可以挂载cos # 注意:此字段可能返回 null,表示取不到有效值。 # @type CanAttachCos: Boolean # @param Components: 服务信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Components: Array # @param UpgradeVersions: 可升级的内核版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type UpgradeVersions: String # @param EsIndexId: ex-index # 注意:此字段可能返回 null,表示取不到有效值。 # @type EsIndexId: String # @param EsIndexUsername: username # 注意:此字段可能返回 null,表示取不到有效值。 # @type EsIndexUsername: String # @param EsIndexPassword: password # 注意:此字段可能返回 null,表示取不到有效值。 # @type EsIndexPassword: String # @param HasEsIndex: true # 注意:此字段可能返回 null,表示取不到有效值。 # @type HasEsIndex: Boolean attr_accessor :InstanceId, :InstanceName, :Status, :Version, :Region, :Zone, :VpcId, :SubnetId, :PayMode, :CreateTime, :ExpireTime, :MasterSummary, :CommonSummary, :HA, :AccessInfo, :Id, :RegionId, :ZoneDesc, :FlowMsg, :StatusDesc, :RenewFlag, :Tags, :Monitor, :HasClsTopic, :ClsTopicId, :ClsLogSetId, :EnableXMLConfig, :RegionDesc, :Eip, :CosMoveFactor, :Kind, :IsElastic, :InstanceStateInfo, :HAZk, :MountDiskType, :CHProxyVip, :CosBucketName, :CanAttachCbs, :CanAttachCbsLvm, :CanAttachCos, :Components, :UpgradeVersions, :EsIndexId, :EsIndexUsername, :EsIndexPassword, :HasEsIndex def initialize(instanceid=nil, instancename=nil, status=nil, version=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, paymode=nil, createtime=nil, expiretime=nil, mastersummary=nil, commonsummary=nil, ha=nil, accessinfo=nil, id=nil, regionid=nil, zonedesc=nil, flowmsg=nil, statusdesc=nil, renewflag=nil, tags=nil, monitor=nil, hasclstopic=nil, clstopicid=nil, clslogsetid=nil, enablexmlconfig=nil, regiondesc=nil, eip=nil, cosmovefactor=nil, kind=nil, iselastic=nil, instancestateinfo=nil, hazk=nil, mountdisktype=nil, chproxyvip=nil, cosbucketname=nil, canattachcbs=nil, canattachcbslvm=nil, canattachcos=nil, components=nil, upgradeversions=nil, esindexid=nil, esindexusername=nil, esindexpassword=nil, hasesindex=nil) @InstanceId = instanceid @InstanceName = instancename @Status = status @Version = version @Region = region @Zone = zone @VpcId = vpcid @SubnetId = subnetid @PayMode = paymode @CreateTime = createtime @ExpireTime = expiretime @MasterSummary = mastersummary @CommonSummary = commonsummary @HA = ha @AccessInfo = accessinfo @Id = id @RegionId = regionid @ZoneDesc = zonedesc @FlowMsg = flowmsg @StatusDesc = statusdesc @RenewFlag = renewflag @Tags = tags @Monitor = monitor @HasClsTopic = hasclstopic @ClsTopicId = clstopicid @ClsLogSetId = clslogsetid @EnableXMLConfig = enablexmlconfig @RegionDesc = regiondesc @Eip = eip @CosMoveFactor = cosmovefactor @Kind = kind @IsElastic = iselastic @InstanceStateInfo = instancestateinfo @HAZk = hazk @MountDiskType = mountdisktype @CHProxyVip = chproxyvip @CosBucketName = cosbucketname @CanAttachCbs = canattachcbs @CanAttachCbsLvm = canattachcbslvm @CanAttachCos = canattachcos @Components = components @UpgradeVersions = upgradeversions @EsIndexId = esindexid @EsIndexUsername = esindexusername @EsIndexPassword = esindexpassword @HasEsIndex = hasesindex end def deserialize(params) @InstanceId = params['InstanceId'] @InstanceName = params['InstanceName'] @Status = params['Status'] @Version = params['Version'] @Region = params['Region'] @Zone = params['Zone'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @PayMode = params['PayMode'] @CreateTime = params['CreateTime'] @ExpireTime = params['ExpireTime'] unless params['MasterSummary'].nil? @MasterSummary = NodesSummary.new @MasterSummary.deserialize(params['MasterSummary']) end unless params['CommonSummary'].nil? @CommonSummary = NodesSummary.new @CommonSummary.deserialize(params['CommonSummary']) end @HA = params['HA'] @AccessInfo = params['AccessInfo'] @Id = params['Id'] @RegionId = params['RegionId'] @ZoneDesc = params['ZoneDesc'] @FlowMsg = params['FlowMsg'] @StatusDesc = params['StatusDesc'] @RenewFlag = params['RenewFlag'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @Monitor = params['Monitor'] @HasClsTopic = params['HasClsTopic'] @ClsTopicId = params['ClsTopicId'] @ClsLogSetId = params['ClsLogSetId'] @EnableXMLConfig = params['EnableXMLConfig'] @RegionDesc = params['RegionDesc'] @Eip = params['Eip'] @CosMoveFactor = params['CosMoveFactor'] @Kind = params['Kind'] @IsElastic = params['IsElastic'] unless params['InstanceStateInfo'].nil? @InstanceStateInfo = InstanceStateInfo.new @InstanceStateInfo.deserialize(params['InstanceStateInfo']) end @HAZk = params['HAZk'] @MountDiskType = params['MountDiskType'] @CHProxyVip = params['CHProxyVip'] @CosBucketName = params['CosBucketName'] @CanAttachCbs = params['CanAttachCbs'] @CanAttachCbsLvm = params['CanAttachCbsLvm'] @CanAttachCos = params['CanAttachCos'] unless params['Components'].nil? @Components = [] params['Components'].each do |i| serviceinfo_tmp = ServiceInfo.new serviceinfo_tmp.deserialize(i) @Components << serviceinfo_tmp end end @UpgradeVersions = params['UpgradeVersions'] @EsIndexId = params['EsIndexId'] @EsIndexUsername = params['EsIndexUsername'] @EsIndexPassword = params['EsIndexPassword'] @HasEsIndex = params['HasEsIndex'] end end # 集群状态抽象后的结构体 class InstanceStateInfo < TencentCloud::Common::AbstractModel # @param InstanceState: 集群状态,例如:Serving # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceState: String # @param FlowCreateTime: 集群操作创建时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowCreateTime: String # @param FlowName: 集群操作名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowName: String # @param FlowProgress: 集群操作进度 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowProgress: Integer # @param InstanceStateDesc: 集群状态描述,例如:运行中 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceStateDesc: String # @param FlowMsg: 集群流程错误信息,例如:“创建失败,资源不足” # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowMsg: String # @param ProcessName: 当前步骤的名称,例如:”购买资源中“ # 注意:此字段可能返回 null,表示取不到有效值。 # @type ProcessName: String # @param RequestId: 请求id # 注意:此字段可能返回 null,表示取不到有效值。 # @type RequestId: String # @param ProcessSubName: 流程的二级名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ProcessSubName: String attr_accessor :InstanceState, :FlowCreateTime, :FlowName, :FlowProgress, :InstanceStateDesc, :FlowMsg, :ProcessName, :RequestId, :ProcessSubName def initialize(instancestate=nil, flowcreatetime=nil, flowname=nil, flowprogress=nil, instancestatedesc=nil, flowmsg=nil, processname=nil, requestid=nil, processsubname=nil) @InstanceState = instancestate @FlowCreateTime = flowcreatetime @FlowName = flowname @FlowProgress = flowprogress @InstanceStateDesc = instancestatedesc @FlowMsg = flowmsg @ProcessName = processname @RequestId = requestid @ProcessSubName = processsubname end def deserialize(params) @InstanceState = params['InstanceState'] @FlowCreateTime = params['FlowCreateTime'] @FlowName = params['FlowName'] @FlowProgress = params['FlowProgress'] @InstanceStateDesc = params['InstanceStateDesc'] @FlowMsg = params['FlowMsg'] @ProcessName = params['ProcessName'] @RequestId = params['RequestId'] @ProcessSubName = params['ProcessSubName'] end end # kv配置,多层级item class MapConfigItem < TencentCloud::Common::AbstractModel # @param ConfKey: key # @type ConfKey: String # @param Items: 列表 # @type Items: Array attr_accessor :ConfKey, :Items def initialize(confkey=nil, items=nil) @ConfKey = confkey @Items = items end def deserialize(params) @ConfKey = params['ConfKey'] unless params['Items'].nil? @Items = [] params['Items'].each do |i| instanceconfiginfo_tmp = InstanceConfigInfo.new instanceconfiginfo_tmp.deserialize(i) @Items << instanceconfiginfo_tmp end end end end # ModifyClusterConfigs请求参数结构体 class ModifyClusterConfigsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群ID,例如cdwch-xxxx # @type InstanceId: String # @param ModifyConfContext: 配置文件修改信息 # @type ModifyConfContext: Array # @param Remark: 修改原因 # @type Remark: String attr_accessor :InstanceId, :ModifyConfContext, :Remark def initialize(instanceid=nil, modifyconfcontext=nil, remark=nil) @InstanceId = instanceid @ModifyConfContext = modifyconfcontext @Remark = remark end def deserialize(params) @InstanceId = params['InstanceId'] unless params['ModifyConfContext'].nil? @ModifyConfContext = [] params['ModifyConfContext'].each do |i| configsubmitcontext_tmp = ConfigSubmitContext.new configsubmitcontext_tmp.deserialize(i) @ModifyConfContext << configsubmitcontext_tmp end end @Remark = params['Remark'] end end # ModifyClusterConfigs返回参数结构体 class ModifyClusterConfigsResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程相关信息 # @type FlowId: Integer # @param ErrorMsg: 错误信息 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :ErrorMsg, :RequestId def initialize(flowid=nil, errormsg=nil, requestid=nil) @FlowId = flowid @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # ModifyInstanceKeyValConfigs请求参数结构体 class ModifyInstanceKeyValConfigsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param AddItems: 新增配置列表 # @type AddItems: Array # @param UpdateItems: 更新配置列表 # @type UpdateItems: Array # @param DeleteItems: 删除配置列表 # @type DeleteItems: :class:`Tencentcloud::Cdwch.v20200915.models.InstanceConfigItem` # @param DelItems: 删除配置列表 # @type DelItems: Array # @param Remark: 备注 # @type Remark: String attr_accessor :InstanceId, :AddItems, :UpdateItems, :DeleteItems, :DelItems, :Remark def initialize(instanceid=nil, additems=nil, updateitems=nil, deleteitems=nil, delitems=nil, remark=nil) @InstanceId = instanceid @AddItems = additems @UpdateItems = updateitems @DeleteItems = deleteitems @DelItems = delitems @Remark = remark end def deserialize(params) @InstanceId = params['InstanceId'] unless params['AddItems'].nil? @AddItems = [] params['AddItems'].each do |i| instanceconfigitem_tmp = InstanceConfigItem.new instanceconfigitem_tmp.deserialize(i) @AddItems << instanceconfigitem_tmp end end unless params['UpdateItems'].nil? @UpdateItems = [] params['UpdateItems'].each do |i| instanceconfigitem_tmp = InstanceConfigItem.new instanceconfigitem_tmp.deserialize(i) @UpdateItems << instanceconfigitem_tmp end end unless params['DeleteItems'].nil? @DeleteItems = InstanceConfigItem.new @DeleteItems.deserialize(params['DeleteItems']) end unless params['DelItems'].nil? @DelItems = [] params['DelItems'].each do |i| instanceconfigitem_tmp = InstanceConfigItem.new instanceconfigitem_tmp.deserialize(i) @DelItems << instanceconfigitem_tmp end end @Remark = params['Remark'] end end # ModifyInstanceKeyValConfigs返回参数结构体 class ModifyInstanceKeyValConfigsResponse < TencentCloud::Common::AbstractModel # @param ErrorMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorMsg: String # @param FlowId: ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ErrorMsg, :FlowId, :RequestId def initialize(errormsg=nil, flowid=nil, requestid=nil) @ErrorMsg = errormsg @FlowId = flowid @RequestId = requestid end def deserialize(params) @ErrorMsg = params['ErrorMsg'] @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # ModifyUserNewPrivilege请求参数结构体 class ModifyUserNewPrivilegeRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # ModifyUserNewPrivilege返回参数结构体 class ModifyUserNewPrivilegeResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 创建集群时的规格 class NodeSpec < TencentCloud::Common::AbstractModel # @param SpecName: 规格名称 # @type SpecName: String # @param Count: 数量 # @type Count: Integer # @param DiskSize: 云盘大小 # @type DiskSize: Integer attr_accessor :SpecName, :Count, :DiskSize def initialize(specname=nil, count=nil, disksize=nil) @SpecName = specname @Count = count @DiskSize = disksize end def deserialize(params) @SpecName = params['SpecName'] @Count = params['Count'] @DiskSize = params['DiskSize'] end end # 节点角色描述信息 class NodesSummary < TencentCloud::Common::AbstractModel # @param Spec: 机型,如 S1 # @type Spec: String # @param NodeSize: 节点数目 # @type NodeSize: Integer # @param Core: cpu核数,单位个 # @type Core: Integer # @param Memory: 内存大小,单位G # @type Memory: Integer # @param Disk: 磁盘大小,单位G # @type Disk: Integer # @param DiskType: 磁盘类型 # @type DiskType: String # @param DiskDesc: 磁盘描述 # @type DiskDesc: String # @param AttachCBSSpec: 挂载云盘信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AttachCBSSpec: :class:`Tencentcloud::Cdwch.v20200915.models.AttachCBSSpec` # @param SubProductType: 子产品类型 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SubProductType: String # @param SpecCore: 规格对应的核数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SpecCore: Integer # @param SpecMemory: 规格对应的内存大小 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SpecMemory: Integer # @param DiskCount: 磁盘的数量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DiskCount: Integer # @param MaxDiskSize: 磁盘的最大大小 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MaxDiskSize: Integer # @param Encrypt: 是否为加密云盘 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Encrypt: Integer attr_accessor :Spec, :NodeSize, :Core, :Memory, :Disk, :DiskType, :DiskDesc, :AttachCBSSpec, :SubProductType, :SpecCore, :SpecMemory, :DiskCount, :MaxDiskSize, :Encrypt def initialize(spec=nil, nodesize=nil, core=nil, memory=nil, disk=nil, disktype=nil, diskdesc=nil, attachcbsspec=nil, subproducttype=nil, speccore=nil, specmemory=nil, diskcount=nil, maxdisksize=nil, encrypt=nil) @Spec = spec @NodeSize = nodesize @Core = core @Memory = memory @Disk = disk @DiskType = disktype @DiskDesc = diskdesc @AttachCBSSpec = attachcbsspec @SubProductType = subproducttype @SpecCore = speccore @SpecMemory = specmemory @DiskCount = diskcount @MaxDiskSize = maxdisksize @Encrypt = encrypt end def deserialize(params) @Spec = params['Spec'] @NodeSize = params['NodeSize'] @Core = params['Core'] @Memory = params['Memory'] @Disk = params['Disk'] @DiskType = params['DiskType'] @DiskDesc = params['DiskDesc'] unless params['AttachCBSSpec'].nil? @AttachCBSSpec = AttachCBSSpec.new @AttachCBSSpec.deserialize(params['AttachCBSSpec']) end @SubProductType = params['SubProductType'] @SpecCore = params['SpecCore'] @SpecMemory = params['SpecMemory'] @DiskCount = params['DiskCount'] @MaxDiskSize = params['MaxDiskSize'] @Encrypt = params['Encrypt'] end end # OpenBackUp请求参数结构体 class OpenBackUpRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 集群id # @type InstanceId: String # @param OperationType: OPEN 或者CLOSE # @type OperationType: String # @param CosBucketName: 桶名字 # @type CosBucketName: String attr_accessor :InstanceId, :OperationType, :CosBucketName def initialize(instanceid=nil, operationtype=nil, cosbucketname=nil) @InstanceId = instanceid @OperationType = operationtype @CosBucketName = cosbucketname end def deserialize(params) @InstanceId = params['InstanceId'] @OperationType = params['OperationType'] @CosBucketName = params['CosBucketName'] end end # OpenBackUp返回参数结构体 class OpenBackUpResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ResizeDisk请求参数结构体 class ResizeDiskRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例唯一ID # @type InstanceId: String # @param Type: 节点类型,DATA:clickhouse节点,COMMON:为zookeeper节点 # @type Type: String # @param DiskSize: 磁盘扩容后容量,不能小于原有用量。clickhouse最小200,且为100的整数倍。 zk最小100,且为10的整数倍; # @type DiskSize: Integer attr_accessor :InstanceId, :Type, :DiskSize def initialize(instanceid=nil, type=nil, disksize=nil) @InstanceId = instanceid @Type = type @DiskSize = disksize end def deserialize(params) @InstanceId = params['InstanceId'] @Type = params['Type'] @DiskSize = params['DiskSize'] end end # ResizeDisk返回参数结构体 class ResizeDiskResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: String # @param InstanceId: 实例ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String # @param ErrorMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :InstanceId, :ErrorMsg, :RequestId def initialize(flowid=nil, instanceid=nil, errormsg=nil, requestid=nil) @FlowId = flowid @InstanceId = instanceid @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @InstanceId = params['InstanceId'] @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # 资源规格描述信息 class ResourceSpec < TencentCloud::Common::AbstractModel # @param Name: 规格名称,例如“SCH1" # @type Name: String # @param Cpu: cpu核数 # @type Cpu: Integer # @param Mem: 内存大小,单位G # @type Mem: Integer # @param Type: 分类标记,STANDARD/BIGDATA/HIGHIO分别表示标准型/大数据型/高IO # @type Type: String # @param SystemDisk: 系统盘描述信息 # @type SystemDisk: :class:`Tencentcloud::Cdwch.v20200915.models.DiskSpec` # @param DataDisk: 数据盘描述信息 # @type DataDisk: :class:`Tencentcloud::Cdwch.v20200915.models.DiskSpec` # @param MaxNodeSize: 最大节点数目限制 # @type MaxNodeSize: Integer # @param Available: 是否可用,false代表售罄 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Available: Boolean # @param ComputeSpecDesc: 规格描述信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ComputeSpecDesc: String # @param DisplayName: 规格名 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DisplayName: String # @param InstanceQuota: 库存数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceQuota: Integer attr_accessor :Name, :Cpu, :Mem, :Type, :SystemDisk, :DataDisk, :MaxNodeSize, :Available, :ComputeSpecDesc, :DisplayName, :InstanceQuota def initialize(name=nil, cpu=nil, mem=nil, type=nil, systemdisk=nil, datadisk=nil, maxnodesize=nil, available=nil, computespecdesc=nil, displayname=nil, instancequota=nil) @Name = name @Cpu = cpu @Mem = mem @Type = type @SystemDisk = systemdisk @DataDisk = datadisk @MaxNodeSize = maxnodesize @Available = available @ComputeSpecDesc = computespecdesc @DisplayName = displayname @InstanceQuota = instancequota end def deserialize(params) @Name = params['Name'] @Cpu = params['Cpu'] @Mem = params['Mem'] @Type = params['Type'] unless params['SystemDisk'].nil? @SystemDisk = DiskSpec.new @SystemDisk.deserialize(params['SystemDisk']) end unless params['DataDisk'].nil? @DataDisk = DiskSpec.new @DataDisk.deserialize(params['DataDisk']) end @MaxNodeSize = params['MaxNodeSize'] @Available = params['Available'] @ComputeSpecDesc = params['ComputeSpecDesc'] @DisplayName = params['DisplayName'] @InstanceQuota = params['InstanceQuota'] end end # ScaleOutInstance请求参数结构体 class ScaleOutInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例唯一ID # @type InstanceId: String # @param Type: 节点类型,DATA:clickhouse节点,COMMON:为zookeeper节点 # @type Type: String # @param NodeCount: 调整clickhouse节点数量 # @type NodeCount: Integer # @param ScaleOutCluster: v_cluster分组, # 新增扩容节点将加入到已选择的v_cluster分组中,提交同步VIP生效. # @type ScaleOutCluster: String # @param UserSubnetIPNum: 子网剩余ip数量,用于判断当前实例子网剩余ip数是否能扩容。需要根据实际填写 # @type UserSubnetIPNum: Integer # @param ScaleOutNodeIp: 同步元数据节点IP (uip),扩容的时候必填 # @type ScaleOutNodeIp: String # @param ReduceShardInfo: 缩容节点shard的节点IP (uip),其中ha集群需要主副节点ip都传入以逗号分隔,缩容的时候必填 # @type ReduceShardInfo: Array attr_accessor :InstanceId, :Type, :NodeCount, :ScaleOutCluster, :UserSubnetIPNum, :ScaleOutNodeIp, :ReduceShardInfo def initialize(instanceid=nil, type=nil, nodecount=nil, scaleoutcluster=nil, usersubnetipnum=nil, scaleoutnodeip=nil, reduceshardinfo=nil) @InstanceId = instanceid @Type = type @NodeCount = nodecount @ScaleOutCluster = scaleoutcluster @UserSubnetIPNum = usersubnetipnum @ScaleOutNodeIp = scaleoutnodeip @ReduceShardInfo = reduceshardinfo end def deserialize(params) @InstanceId = params['InstanceId'] @Type = params['Type'] @NodeCount = params['NodeCount'] @ScaleOutCluster = params['ScaleOutCluster'] @UserSubnetIPNum = params['UserSubnetIPNum'] @ScaleOutNodeIp = params['ScaleOutNodeIp'] @ReduceShardInfo = params['ReduceShardInfo'] end end # ScaleOutInstance返回参数结构体 class ScaleOutInstanceResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: String # @param InstanceId: 实例ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String # @param ErrorMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :InstanceId, :ErrorMsg, :RequestId def initialize(flowid=nil, instanceid=nil, errormsg=nil, requestid=nil) @FlowId = flowid @InstanceId = instanceid @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @InstanceId = params['InstanceId'] @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # ScaleUpInstance请求参数结构体 class ScaleUpInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例唯一ID # @type InstanceId: String # @param Type: 节点类型,DATA:clickhouse节点,COMMON:为zookeeper节点 # @type Type: String # @param SpecName: clickhouse节点规格。 # @type SpecName: String # @param ScaleUpEnableRolling: 是否滚动重启,false为不滚动重启,true为滚动重启 # @type ScaleUpEnableRolling: Boolean attr_accessor :InstanceId, :Type, :SpecName, :ScaleUpEnableRolling def initialize(instanceid=nil, type=nil, specname=nil, scaleupenablerolling=nil) @InstanceId = instanceid @Type = type @SpecName = specname @ScaleUpEnableRolling = scaleupenablerolling end def deserialize(params) @InstanceId = params['InstanceId'] @Type = params['Type'] @SpecName = params['SpecName'] @ScaleUpEnableRolling = params['ScaleUpEnableRolling'] end end # ScaleUpInstance返回参数结构体 class ScaleUpInstanceResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: String # @param InstanceId: 实例ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String # @param ErrorMsg: 错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorMsg: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :InstanceId, :ErrorMsg, :RequestId def initialize(flowid=nil, instanceid=nil, errormsg=nil, requestid=nil) @FlowId = flowid @InstanceId = instanceid @ErrorMsg = errormsg @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @InstanceId = params['InstanceId'] @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end end # 策略详情 class ScheduleStrategy < TencentCloud::Common::AbstractModel # @param CosBucketName: 备份桶列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CosBucketName: String # @param RetainDays: 备份保留天数 # @type RetainDays: Integer # @param WeekDays: 备份的天 # @type WeekDays: String # @param ExecuteHour: 备份小时 # @type ExecuteHour: Integer # @param ScheduleId: 策略id # @type ScheduleId: Integer # @param NextBackupTime: 下次备份时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NextBackupTime: String attr_accessor :CosBucketName, :RetainDays, :WeekDays, :ExecuteHour, :ScheduleId, :NextBackupTime def initialize(cosbucketname=nil, retaindays=nil, weekdays=nil, executehour=nil, scheduleid=nil, nextbackuptime=nil) @CosBucketName = cosbucketname @RetainDays = retaindays @WeekDays = weekdays @ExecuteHour = executehour @ScheduleId = scheduleid @NextBackupTime = nextbackuptime end def deserialize(params) @CosBucketName = params['CosBucketName'] @RetainDays = params['RetainDays'] @WeekDays = params['WeekDays'] @ExecuteHour = params['ExecuteHour'] @ScheduleId = params['ScheduleId'] @NextBackupTime = params['NextBackupTime'] end end # 列表页搜索的标记列表 class SearchTags < TencentCloud::Common::AbstractModel # @param TagKey: 标签的键 # @type TagKey: String # @param TagValue: 标签的值 # @type TagValue: String # @param AllValue: 1表示只输入标签的键,没有输入值;0表示输入键时且输入值 # @type AllValue: Integer attr_accessor :TagKey, :TagValue, :AllValue def initialize(tagkey=nil, tagvalue=nil, allvalue=nil) @TagKey = tagkey @TagValue = tagvalue @AllValue = allvalue end def deserialize(params) @TagKey = params['TagKey'] @TagValue = params['TagValue'] @AllValue = params['AllValue'] end end # 服务详细信息描述。 class ServiceInfo < TencentCloud::Common::AbstractModel # @param Name: 服务名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Name: String # @param Version: 服务的版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Version: String attr_accessor :Name, :Version def initialize(name=nil, version=nil) @Name = name @Version = version end def deserialize(params) @Name = params['Name'] @Version = params['Version'] end end # 标签描述 class Tag < TencentCloud::Common::AbstractModel # @param TagKey: 标签的键 # @type TagKey: String # @param TagValue: 标签的值 # @type TagValue: String attr_accessor :TagKey, :TagValue def initialize(tagkey=nil, tagvalue=nil) @TagKey = tagkey @TagValue = tagvalue end def deserialize(params) @TagKey = params['TagKey'] @TagValue = params['TagValue'] end end end end end