Class: TencentCloud::Dayu::V20180709::DescribleL4RulesResponse

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

Overview

DescribleL4Rules返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules = nil, total = nil, healths = nil, requestid = nil) ⇒ DescribleL4RulesResponse

Returns a new instance of DescribleL4RulesResponse.



5847
5848
5849
5850
5851
5852
# File 'lib/v20180709/models.rb', line 5847

def initialize(rules=nil, total=nil, healths=nil, requestid=nil)
  @Rules = rules
  @Total = total
  @Healths = healths
  @RequestId = requestid
end

Instance Attribute Details

#HealthsObject

Parameters:

  • Rules:

    转发规则列表

  • Total:

    总规则数

  • Healths:

    健康检查配置列表

  • RequestId:

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



5845
5846
5847
# File 'lib/v20180709/models.rb', line 5845

def Healths
  @Healths
end

#RequestIdObject

Parameters:

  • Rules:

    转发规则列表

  • Total:

    总规则数

  • Healths:

    健康检查配置列表

  • RequestId:

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



5845
5846
5847
# File 'lib/v20180709/models.rb', line 5845

def RequestId
  @RequestId
end

#RulesObject

Parameters:

  • Rules:

    转发规则列表

  • Total:

    总规则数

  • Healths:

    健康检查配置列表

  • RequestId:

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



5845
5846
5847
# File 'lib/v20180709/models.rb', line 5845

def Rules
  @Rules
end

#TotalObject

Parameters:

  • Rules:

    转发规则列表

  • Total:

    总规则数

  • Healths:

    健康检查配置列表

  • RequestId:

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



5845
5846
5847
# File 'lib/v20180709/models.rb', line 5845

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
# File 'lib/v20180709/models.rb', line 5854

def deserialize(params)
  unless params['Rules'].nil?
    @Rules = []
    params['Rules'].each do |i|
      l4ruleentry_tmp = L4RuleEntry.new
      l4ruleentry_tmp.deserialize(i)
      @Rules << l4ruleentry_tmp
    end
  end
  @Total = params['Total']
  unless params['Healths'].nil?
    @Healths = []
    params['Healths'].each do |i|
      l4rulehealth_tmp = L4RuleHealth.new
      l4rulehealth_tmp.deserialize(i)
      @Healths << l4rulehealth_tmp
    end
  end
  @RequestId = params['RequestId']
end