lib/v20200915/models.rb in tencentcloud-sdk-cdwch-3.0.794 vs lib/v20200915/models.rb in tencentcloud-sdk-cdwch-3.0.795

- old
+ new

@@ -402,27 +402,34 @@ # @param ChargeProperties: 计费方式 # @type ChargeProperties: :class:`Tencentcloud::Cdwch.v20200915.models.Charge` # @param InstanceName: 实例名称 # @type InstanceName: String # @param DataSpec: 数据节点 + # SpecName从DescribeSpec接口中返回的DataSpec.Name获取 # @type DataSpec: :class:`Tencentcloud::Cdwch.v20200915.models.NodeSpec` - # @param Tags: 标签列表 + # @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节点 + # SpecName从DescribeSpec接口中返回的CommonSpec.Name(ZK节点)获取 # @type CommonSpec: :class:`Tencentcloud::Cdwch.v20200915.models.NodeSpec` + # @param TagItems: 标签列表 + # @type TagItems: Array - attr_accessor :Zone, :HaFlag, :UserVPCId, :UserSubnetId, :ProductVersion, :ChargeProperties, :InstanceName, :DataSpec, :Tags, :ClsLogSetId, :CosBucketName, :MountDiskType, :HAZk, :CommonSpec + attr_accessor :Zone, :HaFlag, :UserVPCId, :UserSubnetId, :ProductVersion, :ChargeProperties, :InstanceName, :DataSpec, :Tags, :ClsLogSetId, :CosBucketName, :MountDiskType, :HAZk, :CommonSpec, :TagItems + extend Gem::Deprecate + deprecate :Tags, :none, 2024, 4 + deprecate :Tags=, :none, 2024, 4 - 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) + 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, tagitems=nil) @Zone = zone @HaFlag = haflag @UserVPCId = uservpcid @UserSubnetId = usersubnetid @ProductVersion = productversion @@ -433,10 +440,11 @@ @ClsLogSetId = clslogsetid @CosBucketName = cosbucketname @MountDiskType = mountdisktype @HAZk = hazk @CommonSpec = commonspec + @TagItems = tagitems end def deserialize(params) @Zone = params['Zone'] @HaFlag = params['HaFlag'] @@ -461,9 +469,17 @@ @MountDiskType = params['MountDiskType'] @HAZk = params['HAZk'] unless params['CommonSpec'].nil? @CommonSpec = NodeSpec.new @CommonSpec.deserialize(params['CommonSpec']) + end + unless params['TagItems'].nil? + @TagItems = [] + params['TagItems'].each do |i| + tag_tmp = Tag.new + tag_tmp.deserialize(i) + @TagItems << tag_tmp + end end end end # CreateInstanceNew返回参数结构体