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.



15483
15484
15485
15486
15487
# File 'lib/v20180525/models.rb', line 15483

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:

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



15481
15482
15483
# File 'lib/v20180525/models.rb', line 15481

def ClusterId
  @ClusterId
end

#SyncSubresourceObject

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

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    集群标签:

  • SyncSubresource:

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



15481
15482
15483
# File 'lib/v20180525/models.rb', line 15481

def SyncSubresource
  @SyncSubresource
end

#TagsObject

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

Parameters:

  • ClusterId:

    集群ID

  • Tags:

    集群标签:

  • SyncSubresource:

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



15481
15482
15483
# File 'lib/v20180525/models.rb', line 15481

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
# File 'lib/v20180525/models.rb', line 15489

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