Class: TencentCloud::Tke::V20180525::PrometheusClusterAgentPodConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PrometheusClusterAgentPodConfig
- Defined in:
- lib/v20180525/models.rb
Overview
关联集群时在集群内部署组件的pod额外配置
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(hostnet = nil, nodeselector = nil, tolerations = nil) ⇒ PrometheusClusterAgentPodConfig
constructor
A new instance of PrometheusClusterAgentPodConfig.
Constructor Details
#initialize(hostnet = nil, nodeselector = nil, tolerations = nil) ⇒ PrometheusClusterAgentPodConfig
Returns a new instance of PrometheusClusterAgentPodConfig.
16039 16040 16041 16042 16043 |
# File 'lib/v20180525/models.rb', line 16039 def initialize(hostnet=nil, nodeselector=nil, tolerations=nil) @HostNet = hostnet @NodeSelector = nodeselector @Tolerations = tolerations end |
Instance Attribute Details
#HostNet ⇒ Object
16037 16038 16039 |
# File 'lib/v20180525/models.rb', line 16037 def HostNet @HostNet end |
#NodeSelector ⇒ Object
16037 16038 16039 |
# File 'lib/v20180525/models.rb', line 16037 def NodeSelector @NodeSelector end |
#Tolerations ⇒ Object
16037 16038 16039 |
# File 'lib/v20180525/models.rb', line 16037 def Tolerations @Tolerations end |
Instance Method Details
#deserialize(params) ⇒ Object
16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 |
# File 'lib/v20180525/models.rb', line 16045 def deserialize(params) @HostNet = params['HostNet'] unless params['NodeSelector'].nil? @NodeSelector = [] params['NodeSelector'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @NodeSelector << label_tmp end end unless params['Tolerations'].nil? @Tolerations = [] params['Tolerations'].each do |i| toleration_tmp = Toleration.new toleration_tmp.deserialize(i) @Tolerations << toleration_tmp end end end |