Class UpdateFunctionConfigRequestBody
- java.lang.Object
-
- com.huaweicloud.sdk.functiongraph.v2.model.UpdateFunctionConfigRequestBody
-
public class UpdateFunctionConfigRequestBody extends Object
UpdateFunctionConfigRequestBody
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateFunctionConfigRequestBody.RuntimeEnumFunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
-
Constructor Summary
Constructors Constructor Description UpdateFunctionConfigRequestBody()
-
Method Summary
-
-
-
Method Detail
-
withFuncName
public UpdateFunctionConfigRequestBody withFuncName(String funcName)
-
getFuncName
public String getFuncName()
函数名称。- Returns:
- funcName
-
setFuncName
public void setFuncName(String funcName)
-
withRuntime
public UpdateFunctionConfigRequestBody withRuntime(UpdateFunctionConfigRequestBody.RuntimeEnum runtime)
-
getRuntime
public UpdateFunctionConfigRequestBody.RuntimeEnum getRuntime()
FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。- Returns:
- runtime
-
setRuntime
public void setRuntime(UpdateFunctionConfigRequestBody.RuntimeEnum runtime)
-
withTimeout
public UpdateFunctionConfigRequestBody withTimeout(Integer timeout)
-
getTimeout
public Integer getTimeout()
函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置- Returns:
- timeout
-
setTimeout
public void setTimeout(Integer timeout)
-
withHandler
public UpdateFunctionConfigRequestBody withHandler(String handler)
-
getHandler
public String getHandler()
函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。- Returns:
- handler
-
setHandler
public void setHandler(String handler)
-
withMemorySize
public UpdateFunctionConfigRequestBody withMemorySize(Integer memorySize)
-
getMemorySize
public Integer getMemorySize()
函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。- Returns:
- memorySize
-
setMemorySize
public void setMemorySize(Integer memorySize)
-
withUserData
public UpdateFunctionConfigRequestBody withUserData(String userData)
-
getUserData
public String getUserData()
用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。- Returns:
- userData
-
setUserData
public void setUserData(String userData)
-
withEncryptedUserData
public UpdateFunctionConfigRequestBody withEncryptedUserData(String encryptedUserData)
-
getEncryptedUserData
public String getEncryptedUserData()
用户自定义的name/value信息,用于需要加密的配置。- Returns:
- encryptedUserData
-
setEncryptedUserData
public void setEncryptedUserData(String encryptedUserData)
-
withXrole
public UpdateFunctionConfigRequestBody withXrole(String xrole)
-
getXrole
public String getXrole()
函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。- Returns:
- xrole
-
setXrole
public void setXrole(String xrole)
-
withAppXrole
public UpdateFunctionConfigRequestBody withAppXrole(String appXrole)
-
getAppXrole
public String getAppXrole()
函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。- Returns:
- appXrole
-
setAppXrole
public void setAppXrole(String appXrole)
-
withDescription
public UpdateFunctionConfigRequestBody withDescription(String description)
-
getDescription
public String getDescription()
函数描述。- Returns:
- description
-
setDescription
public void setDescription(String description)
-
withFuncVpc
public UpdateFunctionConfigRequestBody withFuncVpc(FuncVpc funcVpc)
-
withFuncVpc
public UpdateFunctionConfigRequestBody withFuncVpc(java.util.function.Consumer<FuncVpc> funcVpcSetter)
-
getFuncVpc
public FuncVpc getFuncVpc()
Get funcVpc- Returns:
- funcVpc
-
setFuncVpc
public void setFuncVpc(FuncVpc funcVpc)
-
withMountConfig
public UpdateFunctionConfigRequestBody withMountConfig(MountConfig mountConfig)
-
withMountConfig
public UpdateFunctionConfigRequestBody withMountConfig(java.util.function.Consumer<MountConfig> mountConfigSetter)
-
getMountConfig
public MountConfig getMountConfig()
Get mountConfig- Returns:
- mountConfig
-
setMountConfig
public void setMountConfig(MountConfig mountConfig)
-
withStrategyConfig
public UpdateFunctionConfigRequestBody withStrategyConfig(StrategyConfig strategyConfig)
-
withStrategyConfig
public UpdateFunctionConfigRequestBody withStrategyConfig(java.util.function.Consumer<StrategyConfig> strategyConfigSetter)
-
getStrategyConfig
public StrategyConfig getStrategyConfig()
Get strategyConfig- Returns:
- strategyConfig
-
setStrategyConfig
public void setStrategyConfig(StrategyConfig strategyConfig)
-
withCustomImage
public UpdateFunctionConfigRequestBody withCustomImage(CustomImage customImage)
-
withCustomImage
public UpdateFunctionConfigRequestBody withCustomImage(java.util.function.Consumer<CustomImage> customImageSetter)
-
getCustomImage
public CustomImage getCustomImage()
Get customImage- Returns:
- customImage
-
setCustomImage
public void setCustomImage(CustomImage customImage)
-
withExtendConfig
public UpdateFunctionConfigRequestBody withExtendConfig(String extendConfig)
-
getExtendConfig
public String getExtendConfig()
函数扩展配置。- Returns:
- extendConfig
-
setExtendConfig
public void setExtendConfig(String extendConfig)
-
withInitializerHandler
public UpdateFunctionConfigRequestBody withInitializerHandler(String initializerHandler)
-
getInitializerHandler
public String getInitializerHandler()
函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。- Returns:
- initializerHandler
-
setInitializerHandler
public void setInitializerHandler(String initializerHandler)
-
withInitializerTimeout
public UpdateFunctionConfigRequestBody withInitializerTimeout(Integer initializerTimeout)
-
getInitializerTimeout
public Integer getInitializerTimeout()
初始化超时时间,超时函数将被强行停止,范围1~300秒。- Returns:
- initializerTimeout
-
setInitializerTimeout
public void setInitializerTimeout(Integer initializerTimeout)
-
withEnterpriseProjectId
public UpdateFunctionConfigRequestBody withEnterpriseProjectId(String enterpriseProjectId)
-
getEnterpriseProjectId
public String getEnterpriseProjectId()
企业项目ID,在企业用户创建函数时必填。- Returns:
- enterpriseProjectId
-
setEnterpriseProjectId
public void setEnterpriseProjectId(String enterpriseProjectId)
-
withIsStatefulFunction
public UpdateFunctionConfigRequestBody withIsStatefulFunction(Boolean isStatefulFunction)
-
getIsStatefulFunction
public Boolean getIsStatefulFunction()
是否支持有状态,如果需要支持,需要固定传参为true,v2版本支持- Returns:
- isStatefulFunction
-
setIsStatefulFunction
public void setIsStatefulFunction(Boolean isStatefulFunction)
-
withEnableDynamicMemory
public UpdateFunctionConfigRequestBody withEnableDynamicMemory(Boolean enableDynamicMemory)
-
getEnableDynamicMemory
public Boolean getEnableDynamicMemory()
是否启动动态内存配置- Returns:
- enableDynamicMemory
-
setEnableDynamicMemory
public void setEnableDynamicMemory(Boolean enableDynamicMemory)
-
withEnableAuthInHeader
public UpdateFunctionConfigRequestBody withEnableAuthInHeader(Boolean enableAuthInHeader)
-
getEnableAuthInHeader
public Boolean getEnableAuthInHeader()
是否允许在请求头中添加鉴权信息- Returns:
- enableAuthInHeader
-
setEnableAuthInHeader
public void setEnableAuthInHeader(Boolean enableAuthInHeader)
-
withDomainNames
public UpdateFunctionConfigRequestBody withDomainNames(String domainNames)
-
getDomainNames
public String getDomainNames()
内网域名配置。- Returns:
- domainNames
-
setDomainNames
public void setDomainNames(String domainNames)
-
-