Class: TencentCloud::Apigateway::V20180808::IPStrategiesStatus

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

Overview

策略列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, strategyset = nil) ⇒ IPStrategiesStatus

Returns a new instance of IPStrategiesStatus.



6449
6450
6451
6452
# File 'lib/v20180808/models.rb', line 6449

def initialize(totalcount=nil, strategyset=nil)
  @TotalCount = totalcount
  @StrategySet = strategyset
end

Instance Attribute Details

#StrategySetObject

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

Parameters:

  • TotalCount:

    策略数量。

  • StrategySet:

    策略列表。



6447
6448
6449
# File 'lib/v20180808/models.rb', line 6447

def StrategySet
  @StrategySet
end

#TotalCountObject

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

Parameters:

  • TotalCount:

    策略数量。

  • StrategySet:

    策略列表。



6447
6448
6449
# File 'lib/v20180808/models.rb', line 6447

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
# File 'lib/v20180808/models.rb', line 6454

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['StrategySet'].nil?
    @StrategySet = []
    params['StrategySet'].each do |i|
      ipstrategy_tmp = IPStrategy.new
      ipstrategy_tmp.deserialize(i)
      @StrategySet << ipstrategy_tmp
    end
  end
end