Class: TencentCloud::Smh::V20210712::DescribeTrafficPackagesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Smh::V20210712::DescribeTrafficPackagesResponse
- Defined in:
- lib/v20210712/models.rb
Overview
DescribeTrafficPackages返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(list = nil, totalcount = nil, requestid = nil) ⇒ DescribeTrafficPackagesResponse
constructor
A new instance of DescribeTrafficPackagesResponse.
Constructor Details
#initialize(list = nil, totalcount = nil, requestid = nil) ⇒ DescribeTrafficPackagesResponse
Returns a new instance of DescribeTrafficPackagesResponse.
612 613 614 615 616 |
# File 'lib/v20210712/models.rb', line 612 def initialize(list=nil, totalcount=nil, requestid=nil) @List = list @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#List ⇒ Object
610 611 612 |
# File 'lib/v20210712/models.rb', line 610 def List @List end |
#RequestId ⇒ Object
610 611 612 |
# File 'lib/v20210712/models.rb', line 610 def RequestId @RequestId end |
#TotalCount ⇒ Object
610 611 612 |
# File 'lib/v20210712/models.rb', line 610 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
618 619 620 621 622 623 624 625 626 627 628 629 |
# File 'lib/v20210712/models.rb', line 618 def deserialize(params) unless params['List'].nil? @List = [] params['List'].each do |i| trafficpackage_tmp = TrafficPackage.new trafficpackage_tmp.deserialize(i) @List << trafficpackage_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end |