Class: TencentCloud::Cvm::V20170312::DescribeChcHostsResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::DescribeChcHostsResponse
- Defined in:
- lib/v20170312/models.rb
Overview
DescribeChcHosts返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, chchostset = nil, requestid = nil) ⇒ DescribeChcHostsResponse
constructor
A new instance of DescribeChcHostsResponse.
Constructor Details
#initialize(totalcount = nil, chchostset = nil, requestid = nil) ⇒ DescribeChcHostsResponse
Returns a new instance of DescribeChcHostsResponse.
1952 1953 1954 1955 1956 |
# File 'lib/v20170312/models.rb', line 1952 def initialize(totalcount=nil, chchostset=nil, requestid=nil) @TotalCount = totalcount @ChcHostSet = chchostset @RequestId = requestid end |
Instance Attribute Details
#ChcHostSet ⇒ Object
1950 1951 1952 |
# File 'lib/v20170312/models.rb', line 1950 def ChcHostSet @ChcHostSet end |
#RequestId ⇒ Object
1950 1951 1952 |
# File 'lib/v20170312/models.rb', line 1950 def RequestId @RequestId end |
#TotalCount ⇒ Object
1950 1951 1952 |
# File 'lib/v20170312/models.rb', line 1950 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 |
# File 'lib/v20170312/models.rb', line 1958 def deserialize(params) @TotalCount = params['TotalCount'] unless params['ChcHostSet'].nil? @ChcHostSet = [] params['ChcHostSet'].each do |i| chchost_tmp = ChcHost.new chchost_tmp.deserialize(i) @ChcHostSet << chchost_tmp end end @RequestId = params['RequestId'] end |