Class: TencentCloud::Cdn::V20180606::WebSocket

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

Overview

WebSocket配置WebSocket 为ECDN产品功能,如需使用请通过ECDN域名配置.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, timeout = nil) ⇒ WebSocket

Returns a new instance of WebSocket.



14353
14354
14355
14356
# File 'lib/v20180606/models.rb', line 14353

def initialize(switch=nil, timeout=nil)
  @Switch = switch
  @Timeout = timeout
end

Instance Attribute Details

#SwitchObject

on:开启,可以调整超时时间off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    WebSocket 超时配置开关,取值有:

  • Timeout:

    设置超时时间,单位为秒,最大超时时间300秒。



14351
14352
14353
# File 'lib/v20180606/models.rb', line 14351

def Switch
  @Switch
end

#TimeoutObject

on:开启,可以调整超时时间off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    WebSocket 超时配置开关,取值有:

  • Timeout:

    设置超时时间,单位为秒,最大超时时间300秒。



14351
14352
14353
# File 'lib/v20180606/models.rb', line 14351

def Timeout
  @Timeout
end

Instance Method Details

#deserialize(params) ⇒ Object



14358
14359
14360
14361
# File 'lib/v20180606/models.rb', line 14358

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