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.



12513
12514
12515
12516
12517
# File 'lib/v20180525/models.rb', line 12513

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:

    各组件日志采集配置,目前支持的组件有:kube-apiserver、kube-controller-manager、kube-scheduler、cluster-autoscaler、kapenter



12511
12512
12513
# File 'lib/v20180525/models.rb', line 12511

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • ClusterId:

    集群ID

  • ClusterType:

    集群类型。当前只支持tke

  • Components:

    各组件日志采集配置,目前支持的组件有:kube-apiserver、kube-controller-manager、kube-scheduler、cluster-autoscaler、kapenter



12511
12512
12513
# File 'lib/v20180525/models.rb', line 12511

def ClusterType
  @ClusterType
end

#ComponentsObject

Parameters:

  • ClusterId:

    集群ID

  • ClusterType:

    集群类型。当前只支持tke

  • Components:

    各组件日志采集配置,目前支持的组件有:kube-apiserver、kube-controller-manager、kube-scheduler、cluster-autoscaler、kapenter



12511
12512
12513
# File 'lib/v20180525/models.rb', line 12511

def Components
  @Components
end

Instance Method Details

#deserialize(params) ⇒ Object



12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
# File 'lib/v20180525/models.rb', line 12519

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