Class: TencentCloud::Batch::V20170312::Application
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Batch::V20170312::Application
- Defined in:
- lib/v20170312/models.rb
Overview
应用程序信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(deliveryform = nil, command = nil, packagepath = nil, docker = nil, commands = nil) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(deliveryform = nil, command = nil, packagepath = nil, docker = nil, commands = nil) ⇒ Application
Returns a new instance of Application.
152 153 154 155 156 157 158 |
# File 'lib/v20170312/models.rb', line 152 def initialize(deliveryform=nil, command=nil, packagepath=nil, docker=nil, commands=nil) @DeliveryForm = deliveryform @Command = command @PackagePath = packagepath @Docker = docker @Commands = commands end |
Instance Attribute Details
#Command ⇒ Object
150 151 152 |
# File 'lib/v20170312/models.rb', line 150 def Command @Command end |
#Commands ⇒ Object
150 151 152 |
# File 'lib/v20170312/models.rb', line 150 def Commands @Commands end |
#DeliveryForm ⇒ Object
150 151 152 |
# File 'lib/v20170312/models.rb', line 150 def DeliveryForm @DeliveryForm end |
#Docker ⇒ Object
150 151 152 |
# File 'lib/v20170312/models.rb', line 150 def Docker @Docker end |
#PackagePath ⇒ Object
150 151 152 |
# File 'lib/v20170312/models.rb', line 150 def PackagePath @PackagePath end |
Instance Method Details
#deserialize(params) ⇒ Object
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/v20170312/models.rb', line 160 def deserialize(params) @DeliveryForm = params['DeliveryForm'] @Command = params['Command'] @PackagePath = params['PackagePath'] unless params['Docker'].nil? @Docker = Docker.new @Docker.deserialize(params['Docker']) end unless params['Commands'].nil? @Commands = [] params['Commands'].each do |i| commandline_tmp = CommandLine.new commandline_tmp.deserialize(i) @Commands << commandline_tmp end end end |