Class: TencentCloud::Monitor::V20180724::PrometheusClusterAgentPodConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::PrometheusClusterAgentPodConfig
- Defined in:
- lib/v20180724/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.
13274 13275 13276 13277 13278 |
# File 'lib/v20180724/models.rb', line 13274 def initialize(hostnet=nil, nodeselector=nil, tolerations=nil) @HostNet = hostnet @NodeSelector = nodeselector @Tolerations = tolerations end |
Instance Attribute Details
#HostNet ⇒ Object
13272 13273 13274 |
# File 'lib/v20180724/models.rb', line 13272 def HostNet @HostNet end |
#NodeSelector ⇒ Object
13272 13273 13274 |
# File 'lib/v20180724/models.rb', line 13272 def NodeSelector @NodeSelector end |
#Tolerations ⇒ Object
13272 13273 13274 |
# File 'lib/v20180724/models.rb', line 13272 def Tolerations @Tolerations end |
Instance Method Details
#deserialize(params) ⇒ Object
13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 |
# File 'lib/v20180724/models.rb', line 13280 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 |