Class: TencentCloud::Mna::V20210119::GetDevicesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mna::V20210119::GetDevicesResponse
- Defined in:
- lib/v20210119/models.rb
Overview
GetDevices返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(deviceinfos = nil, length = nil, totalpage = nil, requestid = nil) ⇒ GetDevicesResponse
constructor
A new instance of GetDevicesResponse.
Constructor Details
#initialize(deviceinfos = nil, length = nil, totalpage = nil, requestid = nil) ⇒ GetDevicesResponse
Returns a new instance of GetDevicesResponse.
1096 1097 1098 1099 1100 1101 |
# File 'lib/v20210119/models.rb', line 1096 def initialize(deviceinfos=nil, length=nil, totalpage=nil, requestid=nil) @DeviceInfos = deviceinfos @Length = length @TotalPage = totalpage @RequestId = requestid end |
Instance Attribute Details
#DeviceInfos ⇒ Object
1094 1095 1096 |
# File 'lib/v20210119/models.rb', line 1094 def DeviceInfos @DeviceInfos end |
#Length ⇒ Object
1094 1095 1096 |
# File 'lib/v20210119/models.rb', line 1094 def Length @Length end |
#RequestId ⇒ Object
1094 1095 1096 |
# File 'lib/v20210119/models.rb', line 1094 def RequestId @RequestId end |
#TotalPage ⇒ Object
1094 1095 1096 |
# File 'lib/v20210119/models.rb', line 1094 def TotalPage @TotalPage end |
Instance Method Details
#deserialize(params) ⇒ Object
1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 |
# File 'lib/v20210119/models.rb', line 1103 def deserialize(params) unless params['DeviceInfos'].nil? @DeviceInfos = [] params['DeviceInfos'].each do |i| devicebaseinfo_tmp = DeviceBaseInfo.new devicebaseinfo_tmp.deserialize(i) @DeviceInfos << devicebaseinfo_tmp end end @Length = params['Length'] @TotalPage = params['TotalPage'] @RequestId = params['RequestId'] end |