Class: TencentCloud::Tcaplusdb::V20190823::TagsInfoOfCluster

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190823/models.rb

Overview

集群的标签信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, tags = nil, error = nil) ⇒ TagsInfoOfCluster

Returns a new instance of TagsInfoOfCluster.



4549
4550
4551
4552
4553
# File 'lib/v20190823/models.rb', line 4549

def initialize(clusterid=nil, tags=nil, error=nil)
  @ClusterId = clusterid
  @Tags = tags
  @Error = error
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    标签信息

  • Error:

    错误信息



4547
4548
4549
# File 'lib/v20190823/models.rb', line 4547

def ClusterId
  @ClusterId
end

#ErrorObject

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    标签信息

  • Error:

    错误信息



4547
4548
4549
# File 'lib/v20190823/models.rb', line 4547

def Error
  @Error
end

#TagsObject

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    标签信息

  • Error:

    错误信息



4547
4548
4549
# File 'lib/v20190823/models.rb', line 4547

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
# File 'lib/v20190823/models.rb', line 4555

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      taginfounit_tmp = TagInfoUnit.new
      taginfounit_tmp.deserialize(i)
      @Tags << taginfounit_tmp
    end
  end
  unless params['Error'].nil?
    @Error = ErrorInfo.new
    @Error.deserialize(params['Error'])
  end
end