Class: TencentCloud::Cdn::V20180606::DescribeTrafficPackagesResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::DescribeTrafficPackagesResponse
- Defined in:
- lib/v20180606/models.rb
Overview
DescribeTrafficPackages返回参数结构体
Instance Attribute Summary collapse
- #EnabledCount ⇒ Object
- #ExpiringCount ⇒ Object
- #PaidCount ⇒ Object
- #RequestId ⇒ Object
- #TotalCount ⇒ Object
- #TrafficPackages ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, trafficpackages = nil, expiringcount = nil, enabledcount = nil, paidcount = nil, requestid = nil) ⇒ DescribeTrafficPackagesResponse
constructor
A new instance of DescribeTrafficPackagesResponse.
Constructor Details
#initialize(totalcount = nil, trafficpackages = nil, expiringcount = nil, enabledcount = nil, paidcount = nil, requestid = nil) ⇒ DescribeTrafficPackagesResponse
Returns a new instance of DescribeTrafficPackagesResponse.
6117 6118 6119 6120 6121 6122 6123 6124 |
# File 'lib/v20180606/models.rb', line 6117 def initialize(totalcount=nil, trafficpackages=nil, expiringcount=nil, enabledcount=nil, paidcount=nil, requestid=nil) @TotalCount = totalcount @TrafficPackages = trafficpackages @ExpiringCount = expiringcount @EnabledCount = enabledcount @PaidCount = paidcount @RequestId = requestid end |
Instance Attribute Details
#EnabledCount ⇒ Object
6115 6116 6117 |
# File 'lib/v20180606/models.rb', line 6115 def EnabledCount @EnabledCount end |
#ExpiringCount ⇒ Object
6115 6116 6117 |
# File 'lib/v20180606/models.rb', line 6115 def ExpiringCount @ExpiringCount end |
#PaidCount ⇒ Object
6115 6116 6117 |
# File 'lib/v20180606/models.rb', line 6115 def PaidCount @PaidCount end |
#RequestId ⇒ Object
6115 6116 6117 |
# File 'lib/v20180606/models.rb', line 6115 def RequestId @RequestId end |
#TotalCount ⇒ Object
6115 6116 6117 |
# File 'lib/v20180606/models.rb', line 6115 def TotalCount @TotalCount end |
#TrafficPackages ⇒ Object
6115 6116 6117 |
# File 'lib/v20180606/models.rb', line 6115 def TrafficPackages @TrafficPackages end |
Instance Method Details
#deserialize(params) ⇒ Object
6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 |
# File 'lib/v20180606/models.rb', line 6126 def deserialize(params) @TotalCount = params['TotalCount'] unless params['TrafficPackages'].nil? @TrafficPackages = [] params['TrafficPackages'].each do |i| trafficpackage_tmp = TrafficPackage.new trafficpackage_tmp.deserialize(i) @TrafficPackages << trafficpackage_tmp end end @ExpiringCount = params['ExpiringCount'] @EnabledCount = params['EnabledCount'] @PaidCount = params['PaidCount'] @RequestId = params['RequestId'] end |