Class: TencentCloud::Bmlb::V20180625::ModifyL7LocationsRequest

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

Overview

ModifyL7Locations请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerid = nil, listenerid = nil, ruleset = nil) ⇒ ModifyL7LocationsRequest

Returns a new instance of ModifyL7LocationsRequest.



3823
3824
3825
3826
3827
# File 'lib/v20180625/models.rb', line 3823

def initialize(loadbalancerid=nil, listenerid=nil, ruleset=nil)
  @LoadBalancerId = loadbalancerid
  @ListenerId = listenerid
  @RuleSet = ruleset
end

Instance Attribute Details

#ListenerIdObject

Parameters:

  • LoadBalancerId:

    负载均衡实例ID,可通过接口DescribeLoadBalancers查询。

  • ListenerId:

    七层监听器实例ID,可通过接口DescribeL7Listeners查询。

  • RuleSet:

    待更新的七层转发规则信息数组。



3821
3822
3823
# File 'lib/v20180625/models.rb', line 3821

def ListenerId
  @ListenerId
end

#LoadBalancerIdObject

Parameters:

  • LoadBalancerId:

    负载均衡实例ID,可通过接口DescribeLoadBalancers查询。

  • ListenerId:

    七层监听器实例ID,可通过接口DescribeL7Listeners查询。

  • RuleSet:

    待更新的七层转发规则信息数组。



3821
3822
3823
# File 'lib/v20180625/models.rb', line 3821

def LoadBalancerId
  @LoadBalancerId
end

#RuleSetObject

Parameters:

  • LoadBalancerId:

    负载均衡实例ID,可通过接口DescribeLoadBalancers查询。

  • ListenerId:

    七层监听器实例ID,可通过接口DescribeL7Listeners查询。

  • RuleSet:

    待更新的七层转发规则信息数组。



3821
3822
3823
# File 'lib/v20180625/models.rb', line 3821

def RuleSet
  @RuleSet
end

Instance Method Details

#deserialize(params) ⇒ Object



3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
# File 'lib/v20180625/models.rb', line 3829

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  @ListenerId = params['ListenerId']
  unless params['RuleSet'].nil?
    @RuleSet = []
    params['RuleSet'].each do |i|
      modifyl7locationrule_tmp = ModifyL7LocationRule.new
      modifyl7locationrule_tmp.deserialize(i)
      @RuleSet << modifyl7locationrule_tmp
    end
  end
end