Class: TencentCloud::Cvm::V20170312::DescribeHostsResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::DescribeHostsResponse
- Defined in:
- lib/v20170312/models.rb
Overview
DescribeHosts返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, hostset = nil, requestid = nil) ⇒ DescribeHostsResponse
constructor
A new instance of DescribeHostsResponse.
Constructor Details
#initialize(totalcount = nil, hostset = nil, requestid = nil) ⇒ DescribeHostsResponse
Returns a new instance of DescribeHostsResponse.
1910 1911 1912 1913 1914 |
# File 'lib/v20170312/models.rb', line 1910 def initialize(totalcount=nil, hostset=nil, requestid=nil) @TotalCount = totalcount @HostSet = hostset @RequestId = requestid end |
Instance Attribute Details
#HostSet ⇒ Object
1908 1909 1910 |
# File 'lib/v20170312/models.rb', line 1908 def HostSet @HostSet end |
#RequestId ⇒ Object
1908 1909 1910 |
# File 'lib/v20170312/models.rb', line 1908 def RequestId @RequestId end |
#TotalCount ⇒ Object
1908 1909 1910 |
# File 'lib/v20170312/models.rb', line 1908 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 |
# File 'lib/v20170312/models.rb', line 1916 def deserialize(params) @TotalCount = params['TotalCount'] unless params['HostSet'].nil? @HostSet = [] params['HostSet'].each do |i| hostitem_tmp = HostItem.new hostitem_tmp.deserialize(i) @HostSet << hostitem_tmp end end @RequestId = params['RequestId'] end |