Class: TencentCloud::Teo::V20220901::HostHeaderParameters

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

Overview

Host Header 重写配置参数。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action = nil, servername = nil) ⇒ HostHeaderParameters

Returns a new instance of HostHeaderParameters.



13678
13679
13680
13681
# File 'lib/v20220901/models.rb', line 13678

def initialize(action=nil, servername=nil)
  @Action = action
  @ServerName = servername
end

Instance Attribute Details

#ActionObject

<li>followOrigin:跟随源站域名;</li> <li>custom:自定义。</li>

Parameters:

  • Action:

    执行动作,取值有:

  • ServerName:

    Host Header 重写,需要填写完整域名。
    注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。



13676
13677
13678
# File 'lib/v20220901/models.rb', line 13676

def Action
  @Action
end

#ServerNameObject

<li>followOrigin:跟随源站域名;</li> <li>custom:自定义。</li>

Parameters:

  • Action:

    执行动作,取值有:

  • ServerName:

    Host Header 重写,需要填写完整域名。
    注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。



13676
13677
13678
# File 'lib/v20220901/models.rb', line 13676

def ServerName
  @ServerName
end

Instance Method Details

#deserialize(params) ⇒ Object



13683
13684
13685
13686
# File 'lib/v20220901/models.rb', line 13683

def deserialize(params)
  @Action = params['Action']
  @ServerName = params['ServerName']
end