Class: TencentCloud::Tat::V20201028::Command
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tat::V20201028::Command
- Defined in:
- lib/v20201028/models.rb
Overview
命令详情。
Instance Attribute Summary collapse
- #CommandId ⇒ Object
- #CommandName ⇒ Object
- #CommandType ⇒ Object
- #Content ⇒ Object
- #CreatedBy ⇒ Object
- #CreatedTime ⇒ Object
- #DefaultParameterConfs ⇒ Object
- #DefaultParameters ⇒ Object
- #Description ⇒ Object
- #EnableParameter ⇒ Object
- #FormattedDescription ⇒ Object
- #OutputCOSBucketUrl ⇒ Object
- #OutputCOSKeyPrefix ⇒ Object
- #Scenes ⇒ Object
- #Tags ⇒ Object
- #Timeout ⇒ Object
- #UpdatedTime ⇒ Object
- #Username ⇒ Object
- #WorkingDirectory ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(commandid = nil, commandname = nil, description = nil, content = nil, commandtype = nil, workingdirectory = nil, timeout = nil, createdtime = nil, updatedtime = nil, enableparameter = nil, defaultparameters = nil, defaultparameterconfs = nil, scenes = nil, formatteddescription = nil, createdby = nil, tags = nil, username = nil, outputcosbucketurl = nil, outputcoskeyprefix = nil) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(commandid = nil, commandname = nil, description = nil, content = nil, commandtype = nil, workingdirectory = nil, timeout = nil, createdtime = nil, updatedtime = nil, enableparameter = nil, defaultparameters = nil, defaultparameterconfs = nil, scenes = nil, formatteddescription = nil, createdby = nil, tags = nil, username = nil, outputcosbucketurl = nil, outputcoskeyprefix = nil) ⇒ Command
Returns a new instance of Command.
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/v20201028/models.rb', line 143 def initialize(commandid=nil, commandname=nil, description=nil, content=nil, commandtype=nil, workingdirectory=nil, timeout=nil, createdtime=nil, updatedtime=nil, enableparameter=nil, defaultparameters=nil, defaultparameterconfs=nil, scenes=nil, formatteddescription=nil, createdby=nil, =nil, username=nil, outputcosbucketurl=nil, outputcoskeyprefix=nil) @CommandId = commandid @CommandName = commandname @Description = description @Content = content @CommandType = commandtype @WorkingDirectory = workingdirectory @Timeout = timeout @CreatedTime = createdtime @UpdatedTime = updatedtime @EnableParameter = enableparameter @DefaultParameters = defaultparameters @DefaultParameterConfs = defaultparameterconfs @Scenes = scenes @FormattedDescription = formatteddescription @CreatedBy = createdby @Tags = @Username = username @OutputCOSBucketUrl = outputcosbucketurl @OutputCOSKeyPrefix = outputcoskeyprefix end |
Instance Attribute Details
#CommandId ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def CommandId @CommandId end |
#CommandName ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def CommandName @CommandName end |
#CommandType ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def CommandType @CommandType end |
#Content ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def Content @Content end |
#CreatedBy ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def CreatedBy @CreatedBy end |
#CreatedTime ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def CreatedTime @CreatedTime end |
#DefaultParameterConfs ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def DefaultParameterConfs @DefaultParameterConfs end |
#DefaultParameters ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def DefaultParameters @DefaultParameters end |
#Description ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def Description @Description end |
#EnableParameter ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def EnableParameter @EnableParameter end |
#FormattedDescription ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def FormattedDescription @FormattedDescription end |
#OutputCOSBucketUrl ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def OutputCOSBucketUrl @OutputCOSBucketUrl end |
#OutputCOSKeyPrefix ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def OutputCOSKeyPrefix @OutputCOSKeyPrefix end |
#Scenes ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def Scenes @Scenes end |
#Tags ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def Tags @Tags end |
#Timeout ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def Timeout @Timeout end |
#UpdatedTime ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def UpdatedTime @UpdatedTime end |
#Username ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def Username @Username end |
#WorkingDirectory ⇒ Object
141 142 143 |
# File 'lib/v20201028/models.rb', line 141 def WorkingDirectory @WorkingDirectory end |
Instance Method Details
#deserialize(params) ⇒ Object
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/v20201028/models.rb', line 165 def deserialize(params) @CommandId = params['CommandId'] @CommandName = params['CommandName'] @Description = params['Description'] @Content = params['Content'] @CommandType = params['CommandType'] @WorkingDirectory = params['WorkingDirectory'] @Timeout = params['Timeout'] @CreatedTime = params['CreatedTime'] @UpdatedTime = params['UpdatedTime'] @EnableParameter = params['EnableParameter'] @DefaultParameters = params['DefaultParameters'] unless params['DefaultParameterConfs'].nil? @DefaultParameterConfs = [] params['DefaultParameterConfs'].each do |i| defaultparameterconf_tmp = DefaultParameterConf.new defaultparameterconf_tmp.deserialize(i) @DefaultParameterConfs << defaultparameterconf_tmp end end @Scenes = params['Scenes'] @FormattedDescription = params['FormattedDescription'] @CreatedBy = params['CreatedBy'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @Username = params['Username'] @OutputCOSBucketUrl = params['OutputCOSBucketUrl'] @OutputCOSKeyPrefix = params['OutputCOSKeyPrefix'] end |