Class: TencentCloud::Yunjing::V20180228::DescribeOpenPortsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Yunjing::V20180228::DescribeOpenPortsResponse
- Defined in:
- lib/v20180228/models.rb
Overview
DescribeOpenPorts返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, openports = nil, requestid = nil) ⇒ DescribeOpenPortsResponse
constructor
A new instance of DescribeOpenPortsResponse.
Constructor Details
#initialize(totalcount = nil, openports = nil, requestid = nil) ⇒ DescribeOpenPortsResponse
Returns a new instance of DescribeOpenPortsResponse.
2864 2865 2866 2867 2868 |
# File 'lib/v20180228/models.rb', line 2864 def initialize(totalcount=nil, openports=nil, requestid=nil) @TotalCount = totalcount @OpenPorts = openports @RequestId = requestid end |
Instance Attribute Details
#OpenPorts ⇒ Object
2862 2863 2864 |
# File 'lib/v20180228/models.rb', line 2862 def OpenPorts @OpenPorts end |
#RequestId ⇒ Object
2862 2863 2864 |
# File 'lib/v20180228/models.rb', line 2862 def RequestId @RequestId end |
#TotalCount ⇒ Object
2862 2863 2864 |
# File 'lib/v20180228/models.rb', line 2862 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 |
# File 'lib/v20180228/models.rb', line 2870 def deserialize(params) @TotalCount = params['TotalCount'] unless params['OpenPorts'].nil? @OpenPorts = [] params['OpenPorts'].each do |i| openport_tmp = OpenPort.new openport_tmp.deserialize(i) @OpenPorts << openport_tmp end end @RequestId = params['RequestId'] end |