Class: TencentCloud::Cdn::V20180606::WebpAdapter

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

Overview

图片优化-WebpAdapter配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil) ⇒ WebpAdapter

Returns a new instance of WebpAdapter.



14393
14394
14395
# File 'lib/v20180606/models.rb', line 14393

def initialize(switch=nil)
  @Switch = switch
end

Instance Attribute Details

#SwitchObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    图片优化-WebpAdapter配置开关,取值有:



14391
14392
14393
# File 'lib/v20180606/models.rb', line 14391

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



14397
14398
14399
# File 'lib/v20180606/models.rb', line 14397

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