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.



14426
14427
14428
14429
14430
# File 'lib/v20180525/models.rb', line 14426

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

Instance Attribute Details

#ClusterIdObject

“TagKey”:“env”,“TagValue”:“dev”]}

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    集群标签:

  • SyncSubresource:

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



14424
14425
14426
# File 'lib/v20180525/models.rb', line 14424

def ClusterId
  @ClusterId
end

#SyncSubresourceObject

“TagKey”:“env”,“TagValue”:“dev”]}

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    集群标签:

  • SyncSubresource:

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



14424
14425
14426
# File 'lib/v20180525/models.rb', line 14424

def SyncSubresource
  @SyncSubresource
end

#TagsObject

“TagKey”:“env”,“TagValue”:“dev”]}

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    集群标签:

  • SyncSubresource:

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



14424
14425
14426
# File 'lib/v20180525/models.rb', line 14424

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
# File 'lib/v20180525/models.rb', line 14432

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