Class: TencentCloud::Teo::V20220901::ClientIpCountry
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::ClientIpCountry
- Defined in:
- lib/v20220901/models.rb
Overview
回源时携带客户端IP所属地域信息,值的格式为ISO-3166-1两位字母代码。
Instance Attribute Summary collapse
-
#HeaderName ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> 为空则使用默认值:EO-Client-IPCountry。.
-
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> 为空则使用默认值:EO-Client-IPCountry。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, headername = nil) ⇒ ClientIpCountry
constructor
A new instance of ClientIpCountry.
Constructor Details
#initialize(switch = nil, headername = nil) ⇒ ClientIpCountry
Returns a new instance of ClientIpCountry.
3243 3244 3245 3246 |
# File 'lib/v20220901/models.rb', line 3243 def initialize(switch=nil, headername=nil) @Switch = switch @HeaderName = headername end |
Instance Attribute Details
#HeaderName ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> 为空则使用默认值:EO-Client-IPCountry。
3241 3242 3243 |
# File 'lib/v20220901/models.rb', line 3241 def HeaderName @HeaderName end |
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> 为空则使用默认值:EO-Client-IPCountry。
3241 3242 3243 |
# File 'lib/v20220901/models.rb', line 3241 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
3248 3249 3250 3251 |
# File 'lib/v20220901/models.rb', line 3248 def deserialize(params) @Switch = params['Switch'] @HeaderName = params['HeaderName'] end |