Class: TencentCloud::Dasb::V20191018::SessionCommand

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20191018/models.rb

Overview

命令和所属会话

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ApCodeObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def ApCode
  @ApCode
end

#CommandsObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def Commands
  @Commands
end

#CountObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def Count
  @Count
end

#DeviceNameObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def DeviceName
  @DeviceName
end

#EndTimeObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def EndTime
  @EndTime
end

#IdObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def Id
  @Id
end

#InstanceIdObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def InstanceId
  @InstanceId
end

#PrivateIpObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def PrivateIp
  @PrivateIp
end

#PublicIpObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def PublicIp
  @PublicIp
end

#RealNameObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def RealName
  @RealName
end

#StartTimeObject



5207
5208
5209
# File 'lib/v20191018/models.rb', line 5207

def StartTime
  @StartTime
end

#UserNameObject



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