Class: TencentCloud::Tke::V20180525::DescribeReservedInstancesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribeReservedInstancesResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribeReservedInstances返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, reservedinstanceset = nil, requestid = nil) ⇒ DescribeReservedInstancesResponse
constructor
A new instance of DescribeReservedInstancesResponse.
Constructor Details
#initialize(totalcount = nil, reservedinstanceset = nil, requestid = nil) ⇒ DescribeReservedInstancesResponse
Returns a new instance of DescribeReservedInstancesResponse.
9961 9962 9963 9964 9965 |
# File 'lib/v20180525/models.rb', line 9961 def initialize(totalcount=nil, reservedinstanceset=nil, requestid=nil) @TotalCount = totalcount @ReservedInstanceSet = reservedinstanceset @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
9959 9960 9961 |
# File 'lib/v20180525/models.rb', line 9959 def RequestId @RequestId end |
#ReservedInstanceSet ⇒ Object
9959 9960 9961 |
# File 'lib/v20180525/models.rb', line 9959 def ReservedInstanceSet @ReservedInstanceSet end |
#TotalCount ⇒ Object
9959 9960 9961 |
# File 'lib/v20180525/models.rb', line 9959 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 |
# File 'lib/v20180525/models.rb', line 9967 def deserialize(params) @TotalCount = params['TotalCount'] unless params['ReservedInstanceSet'].nil? @ReservedInstanceSet = [] params['ReservedInstanceSet'].each do |i| reservedinstance_tmp = ReservedInstance.new reservedinstance_tmp.deserialize(i) @ReservedInstanceSet << reservedinstance_tmp end end @RequestId = params['RequestId'] end |