Class: TencentCloud::Tdai::V20250717::CreateAgentInstanceRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdai::V20250717::CreateAgentInstanceRequest
- Defined in:
- lib/v20250717/models.rb
Overview
CreateAgentInstance请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(agentid = nil, agentversion = nil, instancename = nil, parameters = nil, tags = nil) ⇒ CreateAgentInstanceRequest
constructor
A new instance of CreateAgentInstanceRequest.
Constructor Details
#initialize(agentid = nil, agentversion = nil, instancename = nil, parameters = nil, tags = nil) ⇒ CreateAgentInstanceRequest
Returns a new instance of CreateAgentInstanceRequest.
317 318 319 320 321 322 323 |
# File 'lib/v20250717/models.rb', line 317 def initialize(agentid=nil, agentversion=nil, instancename=nil, parameters=nil, =nil) @AgentId = agentid @AgentVersion = agentversion @InstanceName = instancename @Parameters = parameters @Tags = end |
Instance Attribute Details
#AgentId ⇒ Object
315 316 317 |
# File 'lib/v20250717/models.rb', line 315 def AgentId @AgentId end |
#AgentVersion ⇒ Object
315 316 317 |
# File 'lib/v20250717/models.rb', line 315 def AgentVersion @AgentVersion end |
#InstanceName ⇒ Object
315 316 317 |
# File 'lib/v20250717/models.rb', line 315 def InstanceName @InstanceName end |
#Parameters ⇒ Object
315 316 317 |
# File 'lib/v20250717/models.rb', line 315 def Parameters @Parameters end |
#Tags ⇒ Object
315 316 317 |
# File 'lib/v20250717/models.rb', line 315 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/v20250717/models.rb', line 325 def deserialize(params) @AgentId = params['AgentId'] @AgentVersion = params['AgentVersion'] @InstanceName = params['InstanceName'] unless params['Parameters'].nil? @Parameters = [] params['Parameters'].each do |i| parameter_tmp = Parameter.new parameter_tmp.deserialize(i) @Parameters << parameter_tmp end end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagitem_tmp = TagItem.new tagitem_tmp.deserialize(i) @Tags << tagitem_tmp end end end |