Class: TencentCloud::Tke::V20180525::CreatePrometheusClusterAgentRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreatePrometheusClusterAgentRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreatePrometheusClusterAgent请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, agents = nil) ⇒ CreatePrometheusClusterAgentRequest
constructor
A new instance of CreatePrometheusClusterAgentRequest.
Constructor Details
#initialize(instanceid = nil, agents = nil) ⇒ CreatePrometheusClusterAgentRequest
Returns a new instance of CreatePrometheusClusterAgentRequest.
3337 3338 3339 3340 |
# File 'lib/v20180525/models.rb', line 3337 def initialize(instanceid=nil, agents=nil) @InstanceId = instanceid @Agents = agents end |
Instance Attribute Details
#Agents ⇒ Object
3335 3336 3337 |
# File 'lib/v20180525/models.rb', line 3335 def Agents @Agents end |
#InstanceId ⇒ Object
3335 3336 3337 |
# File 'lib/v20180525/models.rb', line 3335 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 |
# File 'lib/v20180525/models.rb', line 3342 def deserialize(params) @InstanceId = params['InstanceId'] unless params['Agents'].nil? @Agents = [] params['Agents'].each do |i| prometheusclusteragentbasic_tmp = PrometheusClusterAgentBasic.new prometheusclusteragentbasic_tmp.deserialize(i) @Agents << prometheusclusteragentbasic_tmp end end end |