Class: TencentCloud::Clb::V20180317::RewriteTarget

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

Overview

重定向目标的信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(targetlistenerid = nil, targetlocationid = nil, rewritecode = nil, takeurl = nil, rewritetype = nil) ⇒ RewriteTarget

Returns a new instance of RewriteTarget.



7697
7698
7699
7700
7701
7702
7703
# File 'lib/v20180317/models.rb', line 7697

def initialize(targetlistenerid=nil, targetlocationid=nil, rewritecode=nil, takeurl=nil, rewritetype=nil)
  @TargetListenerId = targetlistenerid
  @TargetLocationId = targetlocationid
  @RewriteCode = rewritecode
  @TakeUrl = takeurl
  @RewriteType = rewritetype
end

Instance Attribute Details

#RewriteCodeObject

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

Parameters:

  • TargetListenerId:

    重定向目标的监听器ID,该字段仅配置了重定向时有效。

  • TargetLocationId:

    重定向目标的转发规则ID,该字段仅配置了重定向时有效。

  • RewriteCode:

    重定向状态码

  • TakeUrl:

    重定向是否携带匹配的url

  • RewriteType:

    重定向类型,Manual: 手动重定向,Auto: 自动重定向



7695
7696
7697
# File 'lib/v20180317/models.rb', line 7695

def RewriteCode
  @RewriteCode
end

#RewriteTypeObject

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

Parameters:

  • TargetListenerId:

    重定向目标的监听器ID,该字段仅配置了重定向时有效。

  • TargetLocationId:

    重定向目标的转发规则ID,该字段仅配置了重定向时有效。

  • RewriteCode:

    重定向状态码

  • TakeUrl:

    重定向是否携带匹配的url

  • RewriteType:

    重定向类型,Manual: 手动重定向,Auto: 自动重定向



7695
7696
7697
# File 'lib/v20180317/models.rb', line 7695

def RewriteType
  @RewriteType
end

#TakeUrlObject

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

Parameters:

  • TargetListenerId:

    重定向目标的监听器ID,该字段仅配置了重定向时有效。

  • TargetLocationId:

    重定向目标的转发规则ID,该字段仅配置了重定向时有效。

  • RewriteCode:

    重定向状态码

  • TakeUrl:

    重定向是否携带匹配的url

  • RewriteType:

    重定向类型,Manual: 手动重定向,Auto: 自动重定向



7695
7696
7697
# File 'lib/v20180317/models.rb', line 7695

def TakeUrl
  @TakeUrl
end

#TargetListenerIdObject

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

Parameters:

  • TargetListenerId:

    重定向目标的监听器ID,该字段仅配置了重定向时有效。

  • TargetLocationId:

    重定向目标的转发规则ID,该字段仅配置了重定向时有效。

  • RewriteCode:

    重定向状态码

  • TakeUrl:

    重定向是否携带匹配的url

  • RewriteType:

    重定向类型,Manual: 手动重定向,Auto: 自动重定向



7695
7696
7697
# File 'lib/v20180317/models.rb', line 7695

def TargetListenerId
  @TargetListenerId
end

#TargetLocationIdObject

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

Parameters:

  • TargetListenerId:

    重定向目标的监听器ID,该字段仅配置了重定向时有效。

  • TargetLocationId:

    重定向目标的转发规则ID,该字段仅配置了重定向时有效。

  • RewriteCode:

    重定向状态码

  • TakeUrl:

    重定向是否携带匹配的url

  • RewriteType:

    重定向类型,Manual: 手动重定向,Auto: 自动重定向



7695
7696
7697
# File 'lib/v20180317/models.rb', line 7695

def TargetLocationId
  @TargetLocationId
end

Instance Method Details

#deserialize(params) ⇒ Object



7705
7706
7707
7708
7709
7710
7711
# File 'lib/v20180317/models.rb', line 7705

def deserialize(params)
  @TargetListenerId = params['TargetListenerId']
  @TargetLocationId = params['TargetLocationId']
  @RewriteCode = params['RewriteCode']
  @TakeUrl = params['TakeUrl']
  @RewriteType = params['RewriteType']
end