Class: TencentCloud::Cwp::V20180228::DescribeAssetPortInfoListResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::DescribeAssetPortInfoListResponse
- Defined in:
- lib/v20180228/models.rb
Overview
DescribeAssetPortInfoList返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(total = nil, ports = nil, requestid = nil) ⇒ DescribeAssetPortInfoListResponse
constructor
A new instance of DescribeAssetPortInfoListResponse.
Constructor Details
#initialize(total = nil, ports = nil, requestid = nil) ⇒ DescribeAssetPortInfoListResponse
Returns a new instance of DescribeAssetPortInfoListResponse.
9528 9529 9530 9531 9532 |
# File 'lib/v20180228/models.rb', line 9528 def initialize(total=nil, ports=nil, requestid=nil) @Total = total @Ports = ports @RequestId = requestid end |
Instance Attribute Details
#Ports ⇒ Object
9526 9527 9528 |
# File 'lib/v20180228/models.rb', line 9526 def Ports @Ports end |
#RequestId ⇒ Object
9526 9527 9528 |
# File 'lib/v20180228/models.rb', line 9526 def RequestId @RequestId end |
#Total ⇒ Object
9526 9527 9528 |
# File 'lib/v20180228/models.rb', line 9526 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 |
# File 'lib/v20180228/models.rb', line 9534 def deserialize(params) @Total = params['Total'] unless params['Ports'].nil? @Ports = [] params['Ports'].each do |i| assetportbaseinfo_tmp = AssetPortBaseInfo.new assetportbaseinfo_tmp.deserialize(i) @Ports << assetportbaseinfo_tmp end end @RequestId = params['RequestId'] end |