Class: TencentCloud::Teo::V20220901::ClientIPCountryParameters

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

Overview

回源时携带客户端 IP 所属地域信息,值的格式为 ISO-3166-1 两位字母代码。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, headername = nil) ⇒ ClientIPCountryParameters

Returns a new instance of ClientIPCountryParameters.



3198
3199
3200
3201
# File 'lib/v20220901/models.rb', line 3198

def initialize(switch=nil, headername=nil)
  @Switch = switch
  @HeaderName = headername
end

Instance Attribute Details

#HeaderNameObject

<li>on:开启;</li> <li>off:关闭。</li>

Parameters:

  • Switch:

    配置开关,取值有:

  • HeaderName:

    存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。为空则使用默认值:EO-Client-IPCountry。



3196
3197
3198
# File 'lib/v20220901/models.rb', line 3196

def HeaderName
  @HeaderName
end

#SwitchObject

<li>on:开启;</li> <li>off:关闭。</li>

Parameters:

  • Switch:

    配置开关,取值有:

  • HeaderName:

    存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。为空则使用默认值:EO-Client-IPCountry。



3196
3197
3198
# File 'lib/v20220901/models.rb', line 3196

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



3203
3204
3205
3206
# File 'lib/v20220901/models.rb', line 3203

def deserialize(params)
  @Switch = params['Switch']
  @HeaderName = params['HeaderName']
end