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.



4674
4675
4676
4677
4678
# File 'lib/v20190823/models.rb', line 4674

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

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    标签信息

  • Error:

    错误信息



4672
4673
4674
# File 'lib/v20190823/models.rb', line 4672

def ClusterId
  @ClusterId
end

#ErrorObject

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    标签信息

  • Error:

    错误信息



4672
4673
4674
# File 'lib/v20190823/models.rb', line 4672

def Error
  @Error
end

#TagsObject

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    标签信息

  • Error:

    错误信息



4672
4673
4674
# File 'lib/v20190823/models.rb', line 4672

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
# File 'lib/v20190823/models.rb', line 4680

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