Class CreateFunctionRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.scf.v20180416.models.CreateFunctionRequest
-
public class CreateFunctionRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreateFunctionRequest()
CreateFunctionRequest(CreateFunctionRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsyncRunEnable()
Get 是否开启异步属性,TRUE 为开启,FALSE为关闭String
getAutoCreateClsTopic()
Get 是否自动创建cls主题,TRUE 为开启,FALSE为关闭String
getAutoDeployClsTopicIndex()
Get 是否自动创建cls索引,TRUE 为开启,FALSE为关闭CfsConfig
getCfsConfig()
Get 文件系统配置参数,用于云函数挂载文件系统String
getClsLogsetId()
Get 函数日志投递到的CLS LogsetIDString
getClsTopicId()
Get 函数日志投递到的CLS TopicIDCode
getCode()
Get 函数代码.String
getCodeSource()
Get CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一DeadLetterConfig
getDeadLetterConfig()
Get 死信队列参数String
getDescription()
Get 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文Environment
getEnvironment()
Get 函数的环境变量String
getFunctionName()
Get 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60String
getHandler()
Get 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符Long
getInitTimeout()
Get 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。String
getInstallDependency()
Get [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。InstanceConcurrencyConfig
getInstanceConcurrencyConfig()
Get 单实例多并发配置。只支持Web函数。LayerVersionSimple[]
getLayers()
Get 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。Long
getMemorySize()
Get 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯String
getNamespace()
Get 函数所属命名空间ProtocolParams
getProtocolParams()
Get HTTP函数配置ProtocolType访问协议,当前协议可配置的参数String
getProtocolType()
Get HTTP函数支持的访问协议。当前支持WebSockets协议,值为WSPublicNetConfigIn
getPublicNetConfig()
Get 公网访问配置String
getRole()
Get 函数绑定的角色String
getRuntime()
Get 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7Tag[]
getTags()
Get 函数 Tag 参数,以键值对数组形式传入Long
getTimeout()
Get 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒String
getTraceEnable()
Get 是否开启事件追踪,TRUE 为开启,FALSE为关闭String
getType()
Get 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTPVpcConfig
getVpcConfig()
Get 函数的私有网络配置void
setAsyncRunEnable(String AsyncRunEnable)
Set 是否开启异步属性,TRUE 为开启,FALSE为关闭void
setAutoCreateClsTopic(String AutoCreateClsTopic)
Set 是否自动创建cls主题,TRUE 为开启,FALSE为关闭void
setAutoDeployClsTopicIndex(String AutoDeployClsTopicIndex)
Set 是否自动创建cls索引,TRUE 为开启,FALSE为关闭void
setCfsConfig(CfsConfig CfsConfig)
Set 文件系统配置参数,用于云函数挂载文件系统void
setClsLogsetId(String ClsLogsetId)
Set 函数日志投递到的CLS LogsetIDvoid
setClsTopicId(String ClsTopicId)
Set 函数日志投递到的CLS TopicIDvoid
setCode(Code Code)
Set 函数代码.void
setCodeSource(String CodeSource)
Set CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一void
setDeadLetterConfig(DeadLetterConfig DeadLetterConfig)
Set 死信队列参数void
setDescription(String Description)
Set 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文void
setEnvironment(Environment Environment)
Set 函数的环境变量void
setFunctionName(String FunctionName)
Set 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60void
setHandler(String Handler)
Set 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符void
setInitTimeout(Long InitTimeout)
Set 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。void
setInstallDependency(String InstallDependency)
Set [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。void
setInstanceConcurrencyConfig(InstanceConcurrencyConfig InstanceConcurrencyConfig)
Set 单实例多并发配置。只支持Web函数。void
setLayers(LayerVersionSimple[] Layers)
Set 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。void
setMemorySize(Long MemorySize)
Set 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯void
setNamespace(String Namespace)
Set 函数所属命名空间void
setProtocolParams(ProtocolParams ProtocolParams)
Set HTTP函数配置ProtocolType访问协议,当前协议可配置的参数void
setProtocolType(String ProtocolType)
Set HTTP函数支持的访问协议。当前支持WebSockets协议,值为WSvoid
setPublicNetConfig(PublicNetConfigIn PublicNetConfig)
Set 公网访问配置void
setRole(String Role)
Set 函数绑定的角色void
setRuntime(String Runtime)
Set 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7void
setTags(Tag[] Tags)
Set 函数 Tag 参数,以键值对数组形式传入void
setTimeout(Long Timeout)
Set 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒void
setTraceEnable(String TraceEnable)
Set 是否开启事件追踪,TRUE 为开启,FALSE为关闭void
setType(String Type)
Set 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTPvoid
setVpcConfig(VpcConfig VpcConfig)
Set 函数的私有网络配置void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateFunctionRequest
public CreateFunctionRequest()
-
CreateFunctionRequest
public CreateFunctionRequest(CreateFunctionRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getFunctionName
public String getFunctionName()
Get 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60- Returns:
- FunctionName 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60
-
setFunctionName
public void setFunctionName(String FunctionName)
Set 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60- Parameters:
FunctionName
- 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60
-
getCode
public Code getCode()
Get 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。- Returns:
- Code 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。
-
setCode
public void setCode(Code Code)
Set 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。- Parameters:
Code
- 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。
-
getHandler
public String getHandler()
Get 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符- Returns:
- Handler 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符
-
setHandler
public void setHandler(String Handler)
Set 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符- Parameters:
Handler
- 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符
-
getDescription
public String getDescription()
Get 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文- Returns:
- Description 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文
-
setDescription
public void setDescription(String Description)
Set 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文- Parameters:
Description
- 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文
-
getMemorySize
public Long getMemorySize()
Get 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯- Returns:
- MemorySize 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯
-
setMemorySize
public void setMemorySize(Long MemorySize)
Set 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯- Parameters:
MemorySize
- 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯
-
getTimeout
public Long getTimeout()
Get 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒- Returns:
- Timeout 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒
-
setTimeout
public void setTimeout(Long Timeout)
Set 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒- Parameters:
Timeout
- 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒
-
getEnvironment
public Environment getEnvironment()
Get 函数的环境变量- Returns:
- Environment 函数的环境变量
-
setEnvironment
public void setEnvironment(Environment Environment)
Set 函数的环境变量- Parameters:
Environment
- 函数的环境变量
-
getRuntime
public String getRuntime()
Get 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7- Returns:
- Runtime 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7
-
setRuntime
public void setRuntime(String Runtime)
Set 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7- Parameters:
Runtime
- 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7
-
getVpcConfig
public VpcConfig getVpcConfig()
Get 函数的私有网络配置- Returns:
- VpcConfig 函数的私有网络配置
-
setVpcConfig
public void setVpcConfig(VpcConfig VpcConfig)
Set 函数的私有网络配置- Parameters:
VpcConfig
- 函数的私有网络配置
-
getNamespace
public String getNamespace()
Get 函数所属命名空间- Returns:
- Namespace 函数所属命名空间
-
setNamespace
public void setNamespace(String Namespace)
Set 函数所属命名空间- Parameters:
Namespace
- 函数所属命名空间
-
getRole
public String getRole()
Get 函数绑定的角色- Returns:
- Role 函数绑定的角色
-
setRole
public void setRole(String Role)
Set 函数绑定的角色- Parameters:
Role
- 函数绑定的角色
-
getInstallDependency
public String getInstallDependency()
Get [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。- Returns:
- InstallDependency [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。
-
setInstallDependency
public void setInstallDependency(String InstallDependency)
Set [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。- Parameters:
InstallDependency
- [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。
-
getClsLogsetId
public String getClsLogsetId()
Get 函数日志投递到的CLS LogsetID- Returns:
- ClsLogsetId 函数日志投递到的CLS LogsetID
-
setClsLogsetId
public void setClsLogsetId(String ClsLogsetId)
Set 函数日志投递到的CLS LogsetID- Parameters:
ClsLogsetId
- 函数日志投递到的CLS LogsetID
-
getClsTopicId
public String getClsTopicId()
Get 函数日志投递到的CLS TopicID- Returns:
- ClsTopicId 函数日志投递到的CLS TopicID
-
setClsTopicId
public void setClsTopicId(String ClsTopicId)
Set 函数日志投递到的CLS TopicID- Parameters:
ClsTopicId
- 函数日志投递到的CLS TopicID
-
getType
public String getType()
Get 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP- Returns:
- Type 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP
-
setType
public void setType(String Type)
Set 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP- Parameters:
Type
- 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP
-
getCodeSource
public String getCodeSource()
Get CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一- Returns:
- CodeSource CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一
-
setCodeSource
public void setCodeSource(String CodeSource)
Set CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一- Parameters:
CodeSource
- CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一
-
getLayers
public LayerVersionSimple[] getLayers()
Get 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。- Returns:
- Layers 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。
-
setLayers
public void setLayers(LayerVersionSimple[] Layers)
Set 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。- Parameters:
Layers
- 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。
-
getDeadLetterConfig
public DeadLetterConfig getDeadLetterConfig()
Get 死信队列参数- Returns:
- DeadLetterConfig 死信队列参数
-
setDeadLetterConfig
public void setDeadLetterConfig(DeadLetterConfig DeadLetterConfig)
Set 死信队列参数- Parameters:
DeadLetterConfig
- 死信队列参数
-
getPublicNetConfig
public PublicNetConfigIn getPublicNetConfig()
Get 公网访问配置- Returns:
- PublicNetConfig 公网访问配置
-
setPublicNetConfig
public void setPublicNetConfig(PublicNetConfigIn PublicNetConfig)
Set 公网访问配置- Parameters:
PublicNetConfig
- 公网访问配置
-
getCfsConfig
public CfsConfig getCfsConfig()
Get 文件系统配置参数,用于云函数挂载文件系统- Returns:
- CfsConfig 文件系统配置参数,用于云函数挂载文件系统
-
setCfsConfig
public void setCfsConfig(CfsConfig CfsConfig)
Set 文件系统配置参数,用于云函数挂载文件系统- Parameters:
CfsConfig
- 文件系统配置参数,用于云函数挂载文件系统
-
getInitTimeout
public Long getInitTimeout()
Get 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。- Returns:
- InitTimeout 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。
-
setInitTimeout
public void setInitTimeout(Long InitTimeout)
Set 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。- Parameters:
InitTimeout
- 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。
-
getTags
public Tag[] getTags()
Get 函数 Tag 参数,以键值对数组形式传入- Returns:
- Tags 函数 Tag 参数,以键值对数组形式传入
-
setTags
public void setTags(Tag[] Tags)
Set 函数 Tag 参数,以键值对数组形式传入- Parameters:
Tags
- 函数 Tag 参数,以键值对数组形式传入
-
getAsyncRunEnable
public String getAsyncRunEnable()
Get 是否开启异步属性,TRUE 为开启,FALSE为关闭- Returns:
- AsyncRunEnable 是否开启异步属性,TRUE 为开启,FALSE为关闭
-
setAsyncRunEnable
public void setAsyncRunEnable(String AsyncRunEnable)
Set 是否开启异步属性,TRUE 为开启,FALSE为关闭- Parameters:
AsyncRunEnable
- 是否开启异步属性,TRUE 为开启,FALSE为关闭
-
getTraceEnable
public String getTraceEnable()
Get 是否开启事件追踪,TRUE 为开启,FALSE为关闭- Returns:
- TraceEnable 是否开启事件追踪,TRUE 为开启,FALSE为关闭
-
setTraceEnable
public void setTraceEnable(String TraceEnable)
Set 是否开启事件追踪,TRUE 为开启,FALSE为关闭- Parameters:
TraceEnable
- 是否开启事件追踪,TRUE 为开启,FALSE为关闭
-
getAutoDeployClsTopicIndex
public String getAutoDeployClsTopicIndex()
Get 是否自动创建cls索引,TRUE 为开启,FALSE为关闭- Returns:
- AutoDeployClsTopicIndex 是否自动创建cls索引,TRUE 为开启,FALSE为关闭
-
setAutoDeployClsTopicIndex
public void setAutoDeployClsTopicIndex(String AutoDeployClsTopicIndex)
Set 是否自动创建cls索引,TRUE 为开启,FALSE为关闭- Parameters:
AutoDeployClsTopicIndex
- 是否自动创建cls索引,TRUE 为开启,FALSE为关闭
-
getAutoCreateClsTopic
public String getAutoCreateClsTopic()
Get 是否自动创建cls主题,TRUE 为开启,FALSE为关闭- Returns:
- AutoCreateClsTopic 是否自动创建cls主题,TRUE 为开启,FALSE为关闭
-
setAutoCreateClsTopic
public void setAutoCreateClsTopic(String AutoCreateClsTopic)
Set 是否自动创建cls主题,TRUE 为开启,FALSE为关闭- Parameters:
AutoCreateClsTopic
- 是否自动创建cls主题,TRUE 为开启,FALSE为关闭
-
getProtocolType
public String getProtocolType()
Get HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS- Returns:
- ProtocolType HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS
-
setProtocolType
public void setProtocolType(String ProtocolType)
Set HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS- Parameters:
ProtocolType
- HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS
-
getProtocolParams
public ProtocolParams getProtocolParams()
Get HTTP函数配置ProtocolType访问协议,当前协议可配置的参数- Returns:
- ProtocolParams HTTP函数配置ProtocolType访问协议,当前协议可配置的参数
-
setProtocolParams
public void setProtocolParams(ProtocolParams ProtocolParams)
Set HTTP函数配置ProtocolType访问协议,当前协议可配置的参数- Parameters:
ProtocolParams
- HTTP函数配置ProtocolType访问协议,当前协议可配置的参数
-
getInstanceConcurrencyConfig
public InstanceConcurrencyConfig getInstanceConcurrencyConfig()
Get 单实例多并发配置。只支持Web函数。- Returns:
- InstanceConcurrencyConfig 单实例多并发配置。只支持Web函数。
-
setInstanceConcurrencyConfig
public void setInstanceConcurrencyConfig(InstanceConcurrencyConfig InstanceConcurrencyConfig)
Set 单实例多并发配置。只支持Web函数。- Parameters:
InstanceConcurrencyConfig
- 单实例多并发配置。只支持Web函数。
-
-