Class: TencentCloud::Tke::V20180525::EnableControlPlaneLogsRequest

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

Overview

EnableControlPlaneLogs请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, clustertype = nil, components = nil) ⇒ EnableControlPlaneLogsRequest

Returns a new instance of EnableControlPlaneLogsRequest.



12625
12626
12627
12628
12629
# File 'lib/v20180525/models.rb', line 12625

def initialize(clusterid=nil, clustertype=nil, components=nil)
  @ClusterId = clusterid
  @ClusterType = clustertype
  @Components = components
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • ClusterType:

    集群类型。当前只支持tke

  • Components:

    组件名称列表,目前支持的组件有:cluster-autoscaler、kapenter



12623
12624
12625
# File 'lib/v20180525/models.rb', line 12623

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • ClusterId:

    集群ID

  • ClusterType:

    集群类型。当前只支持tke

  • Components:

    组件名称列表,目前支持的组件有:cluster-autoscaler、kapenter



12623
12624
12625
# File 'lib/v20180525/models.rb', line 12623

def ClusterType
  @ClusterType
end

#ComponentsObject

Parameters:

  • ClusterId:

    集群ID

  • ClusterType:

    集群类型。当前只支持tke

  • Components:

    组件名称列表,目前支持的组件有:cluster-autoscaler、kapenter



12623
12624
12625
# File 'lib/v20180525/models.rb', line 12623

def Components
  @Components
end

Instance Method Details

#deserialize(params) ⇒ Object



12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
# File 'lib/v20180525/models.rb', line 12631

def deserialize(params)
  @ClusterId = params['ClusterId']
  @ClusterType = params['ClusterType']
  unless params['Components'].nil?
    @Components = []
    params['Components'].each do |i|
      componentlogconfig_tmp = ComponentLogConfig.new
      componentlogconfig_tmp.deserialize(i)
      @Components << componentlogconfig_tmp
    end
  end
end