Class: TencentCloud::Apigateway::V20180808::ServiceEnvironmentStrategyStatus

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, environmentlist = nil) ⇒ ServiceEnvironmentStrategyStatus

Returns a new instance of ServiceEnvironmentStrategyStatus.



8799
8800
8801
8802
# File 'lib/v20180808/models.rb', line 8799

def initialize(totalcount=nil, environmentlist=nil)
  @TotalCount = totalcount
  @EnvironmentList = environmentlist
end

Instance Attribute Details

#EnvironmentListObject

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

Parameters:

  • TotalCount:

    限流策略数量。

  • EnvironmentList:

    限流策略列表。



8797
8798
8799
# File 'lib/v20180808/models.rb', line 8797

def EnvironmentList
  @EnvironmentList
end

#TotalCountObject

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

Parameters:

  • TotalCount:

    限流策略数量。

  • EnvironmentList:

    限流策略列表。



8797
8798
8799
# File 'lib/v20180808/models.rb', line 8797

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
# File 'lib/v20180808/models.rb', line 8804

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['EnvironmentList'].nil?
    @EnvironmentList = []
    params['EnvironmentList'].each do |i|
      serviceenvironmentstrategy_tmp = ServiceEnvironmentStrategy.new
      serviceenvironmentstrategy_tmp.deserialize(i)
      @EnvironmentList << serviceenvironmentstrategy_tmp
    end
  end
end