Class: TencentCloud::Clb::V20180317::RuleTargets

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

Overview

HTTP/HTTPS监听器下的转发规则绑定的后端服务信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locationid = nil, domain = nil, url = nil, targets = nil, functiontargets = nil) ⇒ RuleTargets

Returns a new instance of RuleTargets.



7880
7881
7882
7883
7884
7885
7886
# File 'lib/v20180317/models.rb', line 7880

def initialize(locationid=nil, domain=nil, url=nil, targets=nil, functiontargets=nil)
  @LocationId = locationid
  @Domain = domain
  @Url = url
  @Targets = targets
  @FunctionTargets = functiontargets
end

Instance Attribute Details

#DomainObject

Parameters:

  • LocationId:

    转发规则的 ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的路径。

  • Targets:

    后端服务的信息

  • FunctionTargets:

    后端云函数的信息



7878
7879
7880
# File 'lib/v20180317/models.rb', line 7878

def Domain
  @Domain
end

#FunctionTargetsObject

Parameters:

  • LocationId:

    转发规则的 ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的路径。

  • Targets:

    后端服务的信息

  • FunctionTargets:

    后端云函数的信息



7878
7879
7880
# File 'lib/v20180317/models.rb', line 7878

def FunctionTargets
  @FunctionTargets
end

#LocationIdObject

Parameters:

  • LocationId:

    转发规则的 ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的路径。

  • Targets:

    后端服务的信息

  • FunctionTargets:

    后端云函数的信息



7878
7879
7880
# File 'lib/v20180317/models.rb', line 7878

def LocationId
  @LocationId
end

#TargetsObject

Parameters:

  • LocationId:

    转发规则的 ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的路径。

  • Targets:

    后端服务的信息

  • FunctionTargets:

    后端云函数的信息



7878
7879
7880
# File 'lib/v20180317/models.rb', line 7878

def Targets
  @Targets
end

#UrlObject

Parameters:

  • LocationId:

    转发规则的 ID

  • Domain:

    转发规则的域名

  • Url:

    转发规则的路径。

  • Targets:

    后端服务的信息

  • FunctionTargets:

    后端云函数的信息



7878
7879
7880
# File 'lib/v20180317/models.rb', line 7878

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
# File 'lib/v20180317/models.rb', line 7888

def deserialize(params)
  @LocationId = params['LocationId']
  @Domain = params['Domain']
  @Url = params['Url']
  unless params['Targets'].nil?
    @Targets = []
    params['Targets'].each do |i|
      backend_tmp = Backend.new
      backend_tmp.deserialize(i)
      @Targets << backend_tmp
    end
  end
  unless params['FunctionTargets'].nil?
    @FunctionTargets = []
    params['FunctionTargets'].each do |i|
      functiontarget_tmp = FunctionTarget.new
      functiontarget_tmp.deserialize(i)
      @FunctionTargets << functiontarget_tmp
    end
  end
end