Class: TencentCloud::Tke::V20180525::ModifyClusterTagsRequest

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

Overview

ModifyClusterTags请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, tags = nil, syncsubresource = nil) ⇒ ModifyClusterTagsRequest

Returns a new instance of ModifyClusterTagsRequest.



15700
15701
15702
15703
15704
# File 'lib/v20180525/models.rb', line 15700

def initialize(clusterid=nil, tags=nil, syncsubresource=nil)
  @ClusterId = clusterid
  @Tags = tags
  @SyncSubresource = syncsubresource
end

Instance Attribute Details

#ClusterIdObject

["TagKey":"env","TagValue":"dev"]}]

Parameters:

  • 集群ID

  • 集群标签:

  • 是否同步集群内子资源标签



15698
15699
15700
# File 'lib/v20180525/models.rb', line 15698

def ClusterId
  @ClusterId
end

#SyncSubresourceObject

["TagKey":"env","TagValue":"dev"]}]

Parameters:

  • 集群ID

  • 集群标签:

  • 是否同步集群内子资源标签



15698
15699
15700
# File 'lib/v20180525/models.rb', line 15698

def SyncSubresource
  @SyncSubresource
end

#TagsObject

["TagKey":"env","TagValue":"dev"]}]

Parameters:

  • 集群ID

  • 集群标签:

  • 是否同步集群内子资源标签



15698
15699
15700
# File 'lib/v20180525/models.rb', line 15698

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
# File 'lib/v20180525/models.rb', line 15706

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @SyncSubresource = params['SyncSubresource']
end