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.
9507 9508 9509 9510 9511 |
# File 'lib/v20180228/models.rb', line 9507 def initialize(total=nil, ports=nil, requestid=nil) @Total = total @Ports = ports @RequestId = requestid end |
Instance Attribute Details
#Ports ⇒ Object
9505 9506 9507 |
# File 'lib/v20180228/models.rb', line 9505 def Ports @Ports end |
#RequestId ⇒ Object
9505 9506 9507 |
# File 'lib/v20180228/models.rb', line 9505 def RequestId @RequestId end |
#Total ⇒ Object
9505 9506 9507 |
# File 'lib/v20180228/models.rb', line 9505 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 |
# File 'lib/v20180228/models.rb', line 9513 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 |