lib/v20180416/models.rb in tencentcloud-sdk-scf-3.0.452 vs lib/v20180416/models.rb in tencentcloud-sdk-scf-3.0.453
- old
+ new
@@ -491,14 +491,16 @@
# @type TraceEnable: String
# @param ProtocolType: HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS
# @type ProtocolType: String
# @param ProtocolParams: HTTP函数配置ProtocolType访问协议,当前协议可配置的参数
# @type ProtocolParams: :class:`Tencentcloud::Scf.v20180416.models.ProtocolParams`
+ # @param InstanceConcurrencyConfig: 单实例多并发配置。只支持Web函数。
+ # @type InstanceConcurrencyConfig: :class:`Tencentcloud::Scf.v20180416.models.InstanceConcurrencyConfig`
- attr_accessor :FunctionName, :Code, :Handler, :Description, :MemorySize, :Timeout, :Environment, :Runtime, :VpcConfig, :Namespace, :Role, :InstallDependency, :ClsLogsetId, :ClsTopicId, :Type, :CodeSource, :Layers, :DeadLetterConfig, :PublicNetConfig, :CfsConfig, :InitTimeout, :Tags, :AsyncRunEnable, :TraceEnable, :ProtocolType, :ProtocolParams
+ attr_accessor :FunctionName, :Code, :Handler, :Description, :MemorySize, :Timeout, :Environment, :Runtime, :VpcConfig, :Namespace, :Role, :InstallDependency, :ClsLogsetId, :ClsTopicId, :Type, :CodeSource, :Layers, :DeadLetterConfig, :PublicNetConfig, :CfsConfig, :InitTimeout, :Tags, :AsyncRunEnable, :TraceEnable, :ProtocolType, :ProtocolParams, :InstanceConcurrencyConfig
- def initialize(functionname=nil, code=nil, handler=nil, description=nil, memorysize=nil, timeout=nil, environment=nil, runtime=nil, vpcconfig=nil, namespace=nil, role=nil, installdependency=nil, clslogsetid=nil, clstopicid=nil, type=nil, codesource=nil, layers=nil, deadletterconfig=nil, publicnetconfig=nil, cfsconfig=nil, inittimeout=nil, tags=nil, asyncrunenable=nil, traceenable=nil, protocoltype=nil, protocolparams=nil)
+ def initialize(functionname=nil, code=nil, handler=nil, description=nil, memorysize=nil, timeout=nil, environment=nil, runtime=nil, vpcconfig=nil, namespace=nil, role=nil, installdependency=nil, clslogsetid=nil, clstopicid=nil, type=nil, codesource=nil, layers=nil, deadletterconfig=nil, publicnetconfig=nil, cfsconfig=nil, inittimeout=nil, tags=nil, asyncrunenable=nil, traceenable=nil, protocoltype=nil, protocolparams=nil, instanceconcurrencyconfig=nil)
@FunctionName = functionname
@Code = code
@Handler = handler
@Description = description
@MemorySize = memorysize
@@ -521,10 +523,11 @@
@Tags = tags
@AsyncRunEnable = asyncrunenable
@TraceEnable = traceenable
@ProtocolType = protocoltype
@ProtocolParams = protocolparams
+ @InstanceConcurrencyConfig = instanceconcurrencyconfig
end
def deserialize(params)
@FunctionName = params['FunctionName']
unless params['Code'].nil?
@@ -585,10 +588,14 @@
@ProtocolType = params['ProtocolType']
unless params['ProtocolParams'].nil?
@ProtocolParams = ProtocolParams.new
@ProtocolParams.deserialize(params['ProtocolParams'])
end
+ unless params['InstanceConcurrencyConfig'].nil?
+ @InstanceConcurrencyConfig = InstanceConcurrencyConfig.new
+ @InstanceConcurrencyConfig.deserialize(params['InstanceConcurrencyConfig'])
+ end
end
end
# CreateFunction返回参数结构体
class CreateFunctionResponse < TencentCloud::Common::AbstractModel
@@ -2192,32 +2199,59 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Command: String
# @param Args: 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Args: String
+ # @param ContainerImageAccelerate: 镜像加速开关,默认False
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ContainerImageAccelerate: Boolean
- attr_accessor :ImageType, :ImageUri, :RegistryId, :EntryPoint, :Command, :Args
+ attr_accessor :ImageType, :ImageUri, :RegistryId, :EntryPoint, :Command, :Args, :ContainerImageAccelerate
- def initialize(imagetype=nil, imageuri=nil, registryid=nil, entrypoint=nil, command=nil, args=nil)
+ def initialize(imagetype=nil, imageuri=nil, registryid=nil, entrypoint=nil, command=nil, args=nil, containerimageaccelerate=nil)
@ImageType = imagetype
@ImageUri = imageuri
@RegistryId = registryid
@EntryPoint = entrypoint
@Command = command
@Args = args
+ @ContainerImageAccelerate = containerimageaccelerate
end
def deserialize(params)
@ImageType = params['ImageType']
@ImageUri = params['ImageUri']
@RegistryId = params['RegistryId']
@EntryPoint = params['EntryPoint']
@Command = params['Command']
@Args = params['Args']
+ @ContainerImageAccelerate = params['ContainerImageAccelerate']
end
end
+ # 多并发执行配置描述
+ class InstanceConcurrencyConfig < TencentCloud::Common::AbstractModel
+ # @param DynamicEnabled: 是否开启智能动态并发。'FALSE'时是静态并发。''时取消多并发配置。
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type DynamicEnabled: String
+ # @param MaxConcurrency: 单实例并发数最大值。取值范围 [1,100]
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type MaxConcurrency: Integer
+
+ attr_accessor :DynamicEnabled, :MaxConcurrency
+
+ def initialize(dynamicenabled=nil, maxconcurrency=nil)
+ @DynamicEnabled = dynamicenabled
+ @MaxConcurrency = maxconcurrency
+ end
+
+ def deserialize(params)
+ @DynamicEnabled = params['DynamicEnabled']
+ @MaxConcurrency = params['MaxConcurrency']
+ end
+ end
+
# InvokeFunction请求参数结构体
class InvokeFunctionRequest < TencentCloud::Common::AbstractModel
# @param FunctionName: 函数名称
# @type FunctionName: String
# @param Qualifier: 触发函数的版本号或别名,默认值为$DEFAULT
@@ -4169,14 +4203,16 @@
# @type CfsConfig: :class:`Tencentcloud::Scf.v20180416.models.CfsConfig`
# @param InitTimeout: 函数初始化执行超时时间
# @type InitTimeout: Integer
# @param ProtocolParams: HTTP函数配置ProtocolType访问协议,当前协议可配置的参数
# @type ProtocolParams: :class:`Tencentcloud::Scf.v20180416.models.ProtocolParams`
+ # @param InstanceConcurrencyConfig: 单实例多并发配置。只支持Web函数。
+ # @type InstanceConcurrencyConfig: :class:`Tencentcloud::Scf.v20180416.models.InstanceConcurrencyConfig`
- attr_accessor :FunctionName, :Description, :MemorySize, :Timeout, :Runtime, :Environment, :Namespace, :VpcConfig, :Role, :InstallDependency, :ClsLogsetId, :ClsTopicId, :Publish, :L5Enable, :Layers, :DeadLetterConfig, :PublicNetConfig, :CfsConfig, :InitTimeout, :ProtocolParams
+ attr_accessor :FunctionName, :Description, :MemorySize, :Timeout, :Runtime, :Environment, :Namespace, :VpcConfig, :Role, :InstallDependency, :ClsLogsetId, :ClsTopicId, :Publish, :L5Enable, :Layers, :DeadLetterConfig, :PublicNetConfig, :CfsConfig, :InitTimeout, :ProtocolParams, :InstanceConcurrencyConfig
- def initialize(functionname=nil, description=nil, memorysize=nil, timeout=nil, runtime=nil, environment=nil, namespace=nil, vpcconfig=nil, role=nil, installdependency=nil, clslogsetid=nil, clstopicid=nil, publish=nil, l5enable=nil, layers=nil, deadletterconfig=nil, publicnetconfig=nil, cfsconfig=nil, inittimeout=nil, protocolparams=nil)
+ def initialize(functionname=nil, description=nil, memorysize=nil, timeout=nil, runtime=nil, environment=nil, namespace=nil, vpcconfig=nil, role=nil, installdependency=nil, clslogsetid=nil, clstopicid=nil, publish=nil, l5enable=nil, layers=nil, deadletterconfig=nil, publicnetconfig=nil, cfsconfig=nil, inittimeout=nil, protocolparams=nil, instanceconcurrencyconfig=nil)
@FunctionName = functionname
@Description = description
@MemorySize = memorysize
@Timeout = timeout
@Runtime = runtime
@@ -4193,10 +4229,11 @@
@DeadLetterConfig = deadletterconfig
@PublicNetConfig = publicnetconfig
@CfsConfig = cfsconfig
@InitTimeout = inittimeout
@ProtocolParams = protocolparams
+ @InstanceConcurrencyConfig = instanceconcurrencyconfig
end
def deserialize(params)
@FunctionName = params['FunctionName']
@Description = params['Description']
@@ -4240,9 +4277,13 @@
end
@InitTimeout = params['InitTimeout']
unless params['ProtocolParams'].nil?
@ProtocolParams = ProtocolParams.new
@ProtocolParams.deserialize(params['ProtocolParams'])
+ end
+ unless params['InstanceConcurrencyConfig'].nil?
+ @InstanceConcurrencyConfig = InstanceConcurrencyConfig.new
+ @InstanceConcurrencyConfig.deserialize(params['InstanceConcurrencyConfig'])
end
end
end
# UpdateFunctionConfiguration返回参数结构体