Class: TencentCloud::Ame::V20190916::DescribeStationsResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190916/models.rb

Overview

DescribeStations返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#HaveMoreObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数量

  • Offset:

    分页偏移量

  • Size:

    当前页station数量

  • HaveMore:

    剩余数量(total-offset-size),通过这个值判断是否还有下一页

  • Stations:

    Stations 素材库列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1504
1505
1506
# File 'lib/v20190916/models.rb', line 1504

def HaveMore
  @HaveMore
end

#OffsetObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数量

  • Offset:

    分页偏移量

  • Size:

    当前页station数量

  • HaveMore:

    剩余数量(total-offset-size),通过这个值判断是否还有下一页

  • Stations:

    Stations 素材库列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1504
1505
1506
# File 'lib/v20190916/models.rb', line 1504

def Offset
  @Offset
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数量

  • Offset:

    分页偏移量

  • Size:

    当前页station数量

  • HaveMore:

    剩余数量(total-offset-size),通过这个值判断是否还有下一页

  • Stations:

    Stations 素材库列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1504
1505
1506
# File 'lib/v20190916/models.rb', line 1504

def RequestId
  @RequestId
end

#SizeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数量

  • Offset:

    分页偏移量

  • Size:

    当前页station数量

  • HaveMore:

    剩余数量(total-offset-size),通过这个值判断是否还有下一页

  • Stations:

    Stations 素材库列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1504
1505
1506
# File 'lib/v20190916/models.rb', line 1504

def Size
  @Size
end

#StationsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数量

  • Offset:

    分页偏移量

  • Size:

    当前页station数量

  • HaveMore:

    剩余数量(total-offset-size),通过这个值判断是否还有下一页

  • Stations:

    Stations 素材库列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1504
1505
1506
# File 'lib/v20190916/models.rb', line 1504

def Stations
  @Stations
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    总数量

  • Offset:

    分页偏移量

  • Size:

    当前页station数量

  • HaveMore:

    剩余数量(total-offset-size),通过这个值判断是否还有下一页

  • Stations:

    Stations 素材库列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



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