Class: TencentCloud::Cdn::V20180606::OriginPullTimeout

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

Overview

回源超时配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connecttimeout = nil, receivetimeout = nil) ⇒ OriginPullTimeout

Returns a new instance of OriginPullTimeout.



10224
10225
10226
10227
# File 'lib/v20180606/models.rb', line 10224

def initialize(connecttimeout=nil, receivetimeout=nil)
  @ConnectTimeout = connecttimeout
  @ReceiveTimeout = receivetimeout
end

Instance Attribute Details

#ConnectTimeoutObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ConnectTimeout:

    回源建连超时时间,单位为秒,要求5~60之间

  • ReceiveTimeout:

    回源接收超时时间,单位为秒,要求10 ~ 300之间



10222
10223
10224
# File 'lib/v20180606/models.rb', line 10222

def ConnectTimeout
  @ConnectTimeout
end

#ReceiveTimeoutObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ConnectTimeout:

    回源建连超时时间,单位为秒,要求5~60之间

  • ReceiveTimeout:

    回源接收超时时间,单位为秒,要求10 ~ 300之间



10222
10223
10224
# File 'lib/v20180606/models.rb', line 10222

def ReceiveTimeout
  @ReceiveTimeout
end

Instance Method Details

#deserialize(params) ⇒ Object



10229
10230
10231
10232
# File 'lib/v20180606/models.rb', line 10229

def deserialize(params)
  @ConnectTimeout = params['ConnectTimeout']
  @ReceiveTimeout = params['ReceiveTimeout']
end