Class: TencentCloud::Ame::V20190916::DescribeStationsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ame::V20190916::DescribeStationsResponse
- Defined in:
- lib/v20190916/models.rb
Overview
DescribeStations返回参数结构体
Instance Attribute Summary collapse
-
#HaveMore ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Offset ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Size ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Stations ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(total = nil, offset = nil, size = nil, havemore = nil, stations = nil, requestid = nil) ⇒ DescribeStationsResponse
constructor
A new instance of DescribeStationsResponse.
Constructor Details
#initialize(total = nil, offset = nil, size = nil, havemore = nil, stations = nil, requestid = nil) ⇒ DescribeStationsResponse
Returns a new instance of DescribeStationsResponse.
1506 1507 1508 1509 1510 1511 1512 1513 |
# File 'lib/v20190916/models.rb', line 1506 def initialize(total=nil, offset=nil, size=nil, havemore=nil, stations=nil, requestid=nil) @Total = total @Offset = offset @Size = size @HaveMore = havemore @Stations = stations @RequestId = requestid end |
Instance Attribute Details
#HaveMore ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1504 1505 1506 |
# File 'lib/v20190916/models.rb', line 1504 def HaveMore @HaveMore end |
#Offset ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1504 1505 1506 |
# File 'lib/v20190916/models.rb', line 1504 def Offset @Offset end |
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1504 1505 1506 |
# File 'lib/v20190916/models.rb', line 1504 def RequestId @RequestId end |
#Size ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1504 1505 1506 |
# File 'lib/v20190916/models.rb', line 1504 def Size @Size end |
#Stations ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1504 1505 1506 |
# File 'lib/v20190916/models.rb', line 1504 def Stations @Stations end |
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1504 1505 1506 |
# File 'lib/v20190916/models.rb', line 1504 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 |
# File 'lib/v20190916/models.rb', line 1515 def deserialize(params) @Total = params['Total'] @Offset = params['Offset'] @Size = params['Size'] @HaveMore = params['HaveMore'] unless params['Stations'].nil? @Stations = [] params['Stations'].each do |i| station_tmp = Station.new station_tmp.deserialize(i) @Stations << station_tmp end end @RequestId = params['RequestId'] end |