Class: TencentCloud::Cdn::V20180606::PostSize

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

Overview

POST请求上传文件流式传输最大限制

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, maxsize = nil) ⇒ PostSize

Returns a new instance of PostSize.



10738
10739
10740
10741
# File 'lib/v20180606/models.rb', line 10738

def initialize(switch=nil, maxsize=nil)
  @Switch = switch
  @MaxSize = maxsize
end

Instance Attribute Details

#MaxSizeObject

on:开启,平台默认为32MB off:关闭

Parameters:

  • Switch:

    POST请求上传文件流式传输最大限制配置开关,取值有:

  • MaxSize:

    最大限制,取值在1MB和200MB之间。



10736
10737
10738
# File 'lib/v20180606/models.rb', line 10736

def MaxSize
  @MaxSize
end

#SwitchObject

on:开启,平台默认为32MB off:关闭

Parameters:

  • Switch:

    POST请求上传文件流式传输最大限制配置开关,取值有:

  • MaxSize:

    最大限制,取值在1MB和200MB之间。



10736
10737
10738
# File 'lib/v20180606/models.rb', line 10736

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



10743
10744
10745
10746
# File 'lib/v20180606/models.rb', line 10743

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