Class CreateFunctionVersionResponse
- java.lang.Object
-
- com.huaweicloud.sdk.core.SdkResponse
-
- com.huaweicloud.sdk.functiongraph.v2.model.CreateFunctionVersionResponse
-
public class CreateFunctionVersionResponse extends com.huaweicloud.sdk.core.SdkResponseResponse Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateFunctionVersionResponse.CodeTypeEnum函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。static classCreateFunctionVersionResponse.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函数。static classCreateFunctionVersionResponse.TypeEnumv2表示为公测版本,v1为原来版本。
-
Constructor Summary
Constructors Constructor Description CreateFunctionVersionResponse()
-
Method Summary
-
-
-
Method Detail
-
withFuncUrn
public CreateFunctionVersionResponse withFuncUrn(String funcUrn)
-
getFuncUrn
public String getFuncUrn()
函数的URN(Uniform Resource Name),唯一标识函数。- Returns:
- funcUrn
-
setFuncUrn
public void setFuncUrn(String funcUrn)
-
withFuncName
public CreateFunctionVersionResponse withFuncName(String funcName)
-
getFuncName
public String getFuncName()
函数名称。- Returns:
- funcName
-
setFuncName
public void setFuncName(String funcName)
-
withDomainId
public CreateFunctionVersionResponse withDomainId(String domainId)
-
getDomainId
public String getDomainId()
域名id。- Returns:
- domainId
-
setDomainId
public void setDomainId(String domainId)
-
withNamespace
public CreateFunctionVersionResponse withNamespace(String namespace)
-
getNamespace
public String getNamespace()
租户的project id。- Returns:
- namespace
-
setNamespace
public void setNamespace(String namespace)
-
withProjectName
public CreateFunctionVersionResponse withProjectName(String projectName)
-
getProjectName
public String getProjectName()
租户的project name。- Returns:
- projectName
-
setProjectName
public void setProjectName(String projectName)
-
withPackage
public CreateFunctionVersionResponse withPackage(String _package)
-
getPackage
public String getPackage()
函数所属的分组Package,用于用户针对函数的自定义分组。- Returns:
- _package
-
setPackage
public void setPackage(String _package)
-
withRuntime
public CreateFunctionVersionResponse withRuntime(CreateFunctionVersionResponse.RuntimeEnum runtime)
-
getRuntime
public CreateFunctionVersionResponse.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(CreateFunctionVersionResponse.RuntimeEnum runtime)
-
withTimeout
public CreateFunctionVersionResponse withTimeout(Integer timeout)
-
getTimeout
public Integer getTimeout()
函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置- Returns:
- timeout
-
setTimeout
public void setTimeout(Integer timeout)
-
withHandler
public CreateFunctionVersionResponse 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 CreateFunctionVersionResponse 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)
-
withCpu
public CreateFunctionVersionResponse withCpu(Integer cpu)
-
getCpu
public Integer getCpu()
函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。- Returns:
- cpu
-
setCpu
public void setCpu(Integer cpu)
-
withCodeType
public CreateFunctionVersionResponse withCodeType(CreateFunctionVersionResponse.CodeTypeEnum codeType)
-
getCodeType
public CreateFunctionVersionResponse.CodeTypeEnum getCodeType()
函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。- Returns:
- codeType
-
setCodeType
public void setCodeType(CreateFunctionVersionResponse.CodeTypeEnum codeType)
-
withCodeUrl
public CreateFunctionVersionResponse withCodeUrl(String codeUrl)
-
getCodeUrl
public String getCodeUrl()
当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。- Returns:
- codeUrl
-
setCodeUrl
public void setCodeUrl(String codeUrl)
-
withCodeFilename
public CreateFunctionVersionResponse withCodeFilename(String codeFilename)
-
getCodeFilename
public String getCodeFilename()
函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。- Returns:
- codeFilename
-
setCodeFilename
public void setCodeFilename(String codeFilename)
-
withCodeSize
public CreateFunctionVersionResponse withCodeSize(Long codeSize)
-
getCodeSize
public Long getCodeSize()
函数大小,单位:字节。- Returns:
- codeSize
-
setCodeSize
public void setCodeSize(Long codeSize)
-
withUserData
public CreateFunctionVersionResponse withUserData(String userData)
-
getUserData
public String getUserData()
用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。- Returns:
- userData
-
setUserData
public void setUserData(String userData)
-
withEncryptedUserData
public CreateFunctionVersionResponse withEncryptedUserData(String encryptedUserData)
-
getEncryptedUserData
public String getEncryptedUserData()
用户自定义的name/value信息,用于需要加密的配置。- Returns:
- encryptedUserData
-
setEncryptedUserData
public void setEncryptedUserData(String encryptedUserData)
-
withDigest
public CreateFunctionVersionResponse withDigest(String digest)
-
getDigest
public String getDigest()
函数代码SHA512 hash值,用于判断函数是否变化。- Returns:
- digest
-
setDigest
public void setDigest(String digest)
-
withVersion
public CreateFunctionVersionResponse withVersion(String version)
-
getVersion
public String getVersion()
函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。- Returns:
- version
-
setVersion
public void setVersion(String version)
-
withImageName
public CreateFunctionVersionResponse withImageName(String imageName)
-
getImageName
public String getImageName()
函数版本的内部标识。- Returns:
- imageName
-
setImageName
public void setImageName(String imageName)
-
withXrole
public CreateFunctionVersionResponse withXrole(String xrole)
-
getXrole
public String getXrole()
函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。- Returns:
- xrole
-
setXrole
public void setXrole(String xrole)
-
withAppXrole
public CreateFunctionVersionResponse withAppXrole(String appXrole)
-
getAppXrole
public String getAppXrole()
函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。- Returns:
- appXrole
-
setAppXrole
public void setAppXrole(String appXrole)
-
withDescription
public CreateFunctionVersionResponse withDescription(String description)
-
getDescription
public String getDescription()
函数描述。- Returns:
- description
-
setDescription
public void setDescription(String description)
-
withVersionDescription
public CreateFunctionVersionResponse withVersionDescription(String versionDescription)
-
getVersionDescription
public String getVersionDescription()
函数版本描述。- Returns:
- versionDescription
-
setVersionDescription
public void setVersionDescription(String versionDescription)
-
withLastModified
public CreateFunctionVersionResponse withLastModified(java.time.OffsetDateTime lastModified)
-
getLastModified
public java.time.OffsetDateTime getLastModified()
函数最后一次更新时间。- Returns:
- lastModified
-
setLastModified
public void setLastModified(java.time.OffsetDateTime lastModified)
-
withFuncVpc
public CreateFunctionVersionResponse withFuncVpc(FuncVpc funcVpc)
-
withFuncVpc
public CreateFunctionVersionResponse withFuncVpc(java.util.function.Consumer<FuncVpc> funcVpcSetter)
-
getFuncVpc
public FuncVpc getFuncVpc()
Get funcVpc- Returns:
- funcVpc
-
setFuncVpc
public void setFuncVpc(FuncVpc funcVpc)
-
withMountConfig
public CreateFunctionVersionResponse withMountConfig(MountConfig mountConfig)
-
withMountConfig
public CreateFunctionVersionResponse withMountConfig(java.util.function.Consumer<MountConfig> mountConfigSetter)
-
getMountConfig
public MountConfig getMountConfig()
Get mountConfig- Returns:
- mountConfig
-
setMountConfig
public void setMountConfig(MountConfig mountConfig)
-
withStrategyConfig
public CreateFunctionVersionResponse withStrategyConfig(StrategyConfig strategyConfig)
-
withStrategyConfig
public CreateFunctionVersionResponse withStrategyConfig(java.util.function.Consumer<StrategyConfig> strategyConfigSetter)
-
getStrategyConfig
public StrategyConfig getStrategyConfig()
Get strategyConfig- Returns:
- strategyConfig
-
setStrategyConfig
public void setStrategyConfig(StrategyConfig strategyConfig)
-
withDependencies
public CreateFunctionVersionResponse withDependencies(List<Dependency> dependencies)
-
addDependenciesItem
public CreateFunctionVersionResponse addDependenciesItem(Dependency dependenciesItem)
-
withDependencies
public CreateFunctionVersionResponse withDependencies(java.util.function.Consumer<List<Dependency>> dependenciesSetter)
-
getDependencies
public List<Dependency> getDependencies()
函数依赖代码包列表。- Returns:
- dependencies
-
setDependencies
public void setDependencies(List<Dependency> dependencies)
-
withInitializerHandler
public CreateFunctionVersionResponse 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 CreateFunctionVersionResponse withInitializerTimeout(Integer initializerTimeout)
-
getInitializerTimeout
public Integer getInitializerTimeout()
初始化超时时间,超时函数将被强行停止,范围1~300秒。- Returns:
- initializerTimeout
-
setInitializerTimeout
public void setInitializerTimeout(Integer initializerTimeout)
-
withEnterpriseProjectId
public CreateFunctionVersionResponse withEnterpriseProjectId(String enterpriseProjectId)
-
getEnterpriseProjectId
public String getEnterpriseProjectId()
企业项目ID,在企业用户创建函数时必填。- Returns:
- enterpriseProjectId
-
setEnterpriseProjectId
public void setEnterpriseProjectId(String enterpriseProjectId)
-
withLongTime
public CreateFunctionVersionResponse withLongTime(Boolean longTime)
-
getLongTime
public Boolean getLongTime()
是否允许进行长时间超时设置。- Returns:
- longTime
-
setLongTime
public void setLongTime(Boolean longTime)
-
withLogGroupId
public CreateFunctionVersionResponse withLogGroupId(String logGroupId)
-
getLogGroupId
public String getLogGroupId()
自定义日志查询组id- Returns:
- logGroupId
-
setLogGroupId
public void setLogGroupId(String logGroupId)
-
withLogStreamId
public CreateFunctionVersionResponse withLogStreamId(String logStreamId)
-
getLogStreamId
public String getLogStreamId()
自定义日志查询流id- Returns:
- logStreamId
-
setLogStreamId
public void setLogStreamId(String logStreamId)
-
withType
public CreateFunctionVersionResponse withType(CreateFunctionVersionResponse.TypeEnum type)
-
getType
public CreateFunctionVersionResponse.TypeEnum getType()
v2表示为公测版本,v1为原来版本。- Returns:
- type
-
setType
public void setType(CreateFunctionVersionResponse.TypeEnum type)
-
withEnableDynamicMemory
public CreateFunctionVersionResponse withEnableDynamicMemory(Boolean enableDynamicMemory)
-
getEnableDynamicMemory
public Boolean getEnableDynamicMemory()
是否允许动态内存配置- Returns:
- enableDynamicMemory
-
setEnableDynamicMemory
public void setEnableDynamicMemory(Boolean enableDynamicMemory)
-
withFunctionAsyncConfig
public CreateFunctionVersionResponse withFunctionAsyncConfig(FunctionAsyncConfig functionAsyncConfig)
-
withFunctionAsyncConfig
public CreateFunctionVersionResponse withFunctionAsyncConfig(java.util.function.Consumer<FunctionAsyncConfig> functionAsyncConfigSetter)
-
getFunctionAsyncConfig
public FunctionAsyncConfig getFunctionAsyncConfig()
Get functionAsyncConfig- Returns:
- functionAsyncConfig
-
setFunctionAsyncConfig
public void setFunctionAsyncConfig(FunctionAsyncConfig functionAsyncConfig)
-
-