Class: TencentCloud::Teo::V20220901::ResponseSpeedLimitParameters

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

Overview

单连接下载限速配置参数。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode = nil, maxspeed = nil, startat = nil) ⇒ ResponseSpeedLimitParameters

Returns a new instance of ResponseSpeedLimitParameters.



20193
20194
20195
20196
20197
# File 'lib/v20220901/models.rb', line 20193

def initialize(mode=nil, maxspeed=nil, startat=nil)
  @Mode = mode
  @MaxSpeed = maxspeed
  @StartAt = startat
end

Instance Attribute Details

#MaxSpeedObject

  • 当Mode 取值为 LimitAfterSpecificSecondsDownloaded 时,单位取值有: s。



20191
20192
20193
# File 'lib/v20220901/models.rb', line 20191

def MaxSpeed
  @MaxSpeed
end

#ModeObject

  • 当Mode 取值为 LimitAfterSpecificSecondsDownloaded 时,单位取值有: s。



20191
20192
20193
# File 'lib/v20220901/models.rb', line 20191

def Mode
  @Mode
end

#StartAtObject

  • 当Mode 取值为 LimitAfterSpecificSecondsDownloaded 时,单位取值有: s。



20191
20192
20193
# File 'lib/v20220901/models.rb', line 20191

def StartAt
  @StartAt
end

Instance Method Details

#deserialize(params) ⇒ Object



20199
20200
20201
20202
20203
# File 'lib/v20220901/models.rb', line 20199

def deserialize(params)
  @Mode = params['Mode']
  @MaxSpeed = params['MaxSpeed']
  @StartAt = params['StartAt']
end