Class: TencentCloud::Cvm::V20170312::DescribeReservedInstancesOfferingsResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::DescribeReservedInstancesOfferingsResponse
- Defined in:
- lib/v20170312/models.rb
Overview
DescribeReservedInstancesOfferings返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, reservedinstancesofferingsset = nil, requestid = nil) ⇒ DescribeReservedInstancesOfferingsResponse
constructor
A new instance of DescribeReservedInstancesOfferingsResponse.
Constructor Details
#initialize(totalcount = nil, reservedinstancesofferingsset = nil, requestid = nil) ⇒ DescribeReservedInstancesOfferingsResponse
Returns a new instance of DescribeReservedInstancesOfferingsResponse.
3102 3103 3104 3105 3106 |
# File 'lib/v20170312/models.rb', line 3102 def initialize(totalcount=nil, reservedinstancesofferingsset=nil, requestid=nil) @TotalCount = totalcount @ReservedInstancesOfferingsSet = reservedinstancesofferingsset @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
3100 3101 3102 |
# File 'lib/v20170312/models.rb', line 3100 def RequestId @RequestId end |
#ReservedInstancesOfferingsSet ⇒ Object
3100 3101 3102 |
# File 'lib/v20170312/models.rb', line 3100 def ReservedInstancesOfferingsSet @ReservedInstancesOfferingsSet end |
#TotalCount ⇒ Object
3100 3101 3102 |
# File 'lib/v20170312/models.rb', line 3100 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 |
# File 'lib/v20170312/models.rb', line 3108 def deserialize(params) @TotalCount = params['TotalCount'] unless params['ReservedInstancesOfferingsSet'].nil? @ReservedInstancesOfferingsSet = [] params['ReservedInstancesOfferingsSet'].each do |i| reservedinstancesoffering_tmp = ReservedInstancesOffering.new reservedinstancesoffering_tmp.deserialize(i) @ReservedInstancesOfferingsSet << reservedinstancesoffering_tmp end end @RequestId = params['RequestId'] end |