Class: TencentCloud::Dasb::V20191018::SessionCommand
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dasb::V20191018::SessionCommand
- Defined in:
- lib/v20191018/models.rb
Overview
命令和所属会话
Instance Attribute Summary collapse
- #ApCode ⇒ Object
- #Commands ⇒ Object
- #Count ⇒ Object
- #DeviceName ⇒ Object
- #EndTime ⇒ Object
- #Id ⇒ Object
- #InstanceId ⇒ Object
- #PrivateIp ⇒ Object
- #PublicIp ⇒ Object
- #RealName ⇒ Object
- #StartTime ⇒ Object
- #UserName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(starttime = nil, endtime = nil, username = nil, realname = nil, devicename = nil, privateip = nil, publicip = nil, commands = nil, count = nil, id = nil, instanceid = nil, apcode = nil) ⇒ SessionCommand
constructor
A new instance of SessionCommand.
Constructor Details
#initialize(starttime = nil, endtime = nil, username = nil, realname = nil, devicename = nil, privateip = nil, publicip = nil, commands = nil, count = nil, id = nil, instanceid = nil, apcode = nil) ⇒ SessionCommand
5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 |
# File 'lib/v20191018/models.rb', line 5209 def initialize(starttime=nil, endtime=nil, username=nil, realname=nil, devicename=nil, privateip=nil, publicip=nil, commands=nil, count=nil, id=nil, instanceid=nil, apcode=nil) @StartTime = starttime @EndTime = endtime @UserName = username @RealName = realname @DeviceName = devicename @PrivateIp = privateip @PublicIp = publicip @Commands = commands @Count = count @Id = id @InstanceId = instanceid @ApCode = apcode end |
Instance Attribute Details
#ApCode ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def ApCode @ApCode end |
#Commands ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def Commands @Commands end |
#Count ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def Count @Count end |
#DeviceName ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def DeviceName @DeviceName end |
#EndTime ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def EndTime @EndTime end |
#Id ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def Id @Id end |
#InstanceId ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def InstanceId @InstanceId end |
#PrivateIp ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def PrivateIp @PrivateIp end |
#PublicIp ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def PublicIp @PublicIp end |
#RealName ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def RealName @RealName end |
#StartTime ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def StartTime @StartTime end |
#UserName ⇒ Object
5207 5208 5209 |
# File 'lib/v20191018/models.rb', line 5207 def UserName @UserName end |
Instance Method Details
#deserialize(params) ⇒ Object
5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 |
# File 'lib/v20191018/models.rb', line 5224 def deserialize(params) @StartTime = params['StartTime'] @EndTime = params['EndTime'] @UserName = params['UserName'] @RealName = params['RealName'] @DeviceName = params['DeviceName'] @PrivateIp = params['PrivateIp'] @PublicIp = params['PublicIp'] unless params['Commands'].nil? @Commands = [] params['Commands'].each do |i| command_tmp = Command.new command_tmp.deserialize(i) @Commands << command_tmp end end @Count = params['Count'] @Id = params['Id'] @InstanceId = params['InstanceId'] @ApCode = params['ApCode'] end |