Class: TencentCloud::Cloudstudio::V20230508::LifeCycle
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cloudstudio::V20230508::LifeCycle
- Defined in:
- lib/v20230508/models.rb
Overview
工作空间生命周期自动执行脚本
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(init = nil, start = nil, destroy = nil) ⇒ LifeCycle
constructor
A new instance of LifeCycle.
Constructor Details
#initialize(init = nil, start = nil, destroy = nil) ⇒ LifeCycle
Returns a new instance of LifeCycle.
361 362 363 364 365 |
# File 'lib/v20230508/models.rb', line 361 def initialize(init=nil, start=nil, destroy=nil) @Init = init @Start = start @Destroy = destroy end |
Instance Attribute Details
#Destroy ⇒ Object
359 360 361 |
# File 'lib/v20230508/models.rb', line 359 def Destroy @Destroy end |
#Init ⇒ Object
359 360 361 |
# File 'lib/v20230508/models.rb', line 359 def Init @Init end |
#Start ⇒ Object
359 360 361 |
# File 'lib/v20230508/models.rb', line 359 def Start @Start end |
Instance Method Details
#deserialize(params) ⇒ Object
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/v20230508/models.rb', line 367 def deserialize(params) unless params['Init'].nil? @Init = [] params['Init'].each do |i| lifecyclecommand_tmp = LifeCycleCommand.new lifecyclecommand_tmp.deserialize(i) @Init << lifecyclecommand_tmp end end unless params['Start'].nil? @Start = [] params['Start'].each do |i| lifecyclecommand_tmp = LifeCycleCommand.new lifecyclecommand_tmp.deserialize(i) @Start << lifecyclecommand_tmp end end unless params['Destroy'].nil? @Destroy = [] params['Destroy'].each do |i| lifecyclecommand_tmp = LifeCycleCommand.new lifecyclecommand_tmp.deserialize(i) @Destroy << lifecyclecommand_tmp end end end |