Class UpdateFunctionCodeResponse
- java.lang.Object
-
- com.huaweicloud.sdk.core.SdkResponse
-
- com.huaweicloud.sdk.functiongraph.v2.model.UpdateFunctionCodeResponse
-
public class UpdateFunctionCodeResponse extends com.huaweicloud.sdk.core.SdkResponseResponse Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateFunctionCodeResponse.CodeTypeEnum函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。static classUpdateFunctionCodeResponse.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 UpdateFunctionCodeResponse()
-
Method Summary
-
-
-
Method Detail
-
withFuncUrn
public UpdateFunctionCodeResponse withFuncUrn(String funcUrn)
-
getFuncUrn
public String getFuncUrn()
函数的URN(Uniform Resource Name),唯一标识函数。- Returns:
- funcUrn
-
setFuncUrn
public void setFuncUrn(String funcUrn)
-
withFuncName
public UpdateFunctionCodeResponse withFuncName(String funcName)
-
getFuncName
public String getFuncName()
函数名称。- Returns:
- funcName
-
setFuncName
public void setFuncName(String funcName)
-
withDomainId
public UpdateFunctionCodeResponse withDomainId(String domainId)
-
getDomainId
public String getDomainId()
域名id。- Returns:
- domainId
-
setDomainId
public void setDomainId(String domainId)
-
withRuntime
public UpdateFunctionCodeResponse withRuntime(UpdateFunctionCodeResponse.RuntimeEnum runtime)
-
getRuntime
public UpdateFunctionCodeResponse.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(UpdateFunctionCodeResponse.RuntimeEnum runtime)
-
withCodeType
public UpdateFunctionCodeResponse withCodeType(UpdateFunctionCodeResponse.CodeTypeEnum codeType)
-
getCodeType
public UpdateFunctionCodeResponse.CodeTypeEnum getCodeType()
函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。- Returns:
- codeType
-
setCodeType
public void setCodeType(UpdateFunctionCodeResponse.CodeTypeEnum codeType)
-
withCodeUrl
public UpdateFunctionCodeResponse withCodeUrl(String codeUrl)
-
getCodeUrl
public String getCodeUrl()
当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。- Returns:
- codeUrl
-
setCodeUrl
public void setCodeUrl(String codeUrl)
-
withCodeFilename
public UpdateFunctionCodeResponse withCodeFilename(String codeFilename)
-
getCodeFilename
public String getCodeFilename()
函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。- Returns:
- codeFilename
-
setCodeFilename
public void setCodeFilename(String codeFilename)
-
withCodeSize
public UpdateFunctionCodeResponse withCodeSize(Long codeSize)
-
getCodeSize
public Long getCodeSize()
函数大小,单位:字节。- Returns:
- codeSize
-
setCodeSize
public void setCodeSize(Long codeSize)
-
withDigest
public UpdateFunctionCodeResponse withDigest(String digest)
-
getDigest
public String getDigest()
函数代码SHA512 hash值,用于判断函数是否变化。- Returns:
- digest
-
setDigest
public void setDigest(String digest)
-
withLastModified
public UpdateFunctionCodeResponse withLastModified(java.time.OffsetDateTime lastModified)
-
getLastModified
public java.time.OffsetDateTime getLastModified()
函数最后一次更新时间。- Returns:
- lastModified
-
setLastModified
public void setLastModified(java.time.OffsetDateTime lastModified)
-
withFuncCode
public UpdateFunctionCodeResponse withFuncCode(FuncCode funcCode)
-
withFuncCode
public UpdateFunctionCodeResponse withFuncCode(java.util.function.Consumer<FuncCode> funcCodeSetter)
-
getFuncCode
public FuncCode getFuncCode()
Get funcCode- Returns:
- funcCode
-
setFuncCode
public void setFuncCode(FuncCode funcCode)
-
withDependList
public UpdateFunctionCodeResponse withDependList(List<String> dependList)
-
addDependListItem
public UpdateFunctionCodeResponse addDependListItem(String dependListItem)
-
withDependList
public UpdateFunctionCodeResponse withDependList(java.util.function.Consumer<List<String>> dependListSetter)
-
withDependVersionList
public UpdateFunctionCodeResponse withDependVersionList(List<String> dependVersionList)
-
addDependVersionListItem
public UpdateFunctionCodeResponse addDependVersionListItem(String dependVersionListItem)
-
withDependVersionList
public UpdateFunctionCodeResponse withDependVersionList(java.util.function.Consumer<List<String>> dependVersionListSetter)
-
withStrategyConfig
public UpdateFunctionCodeResponse withStrategyConfig(StrategyConfig strategyConfig)
-
withStrategyConfig
public UpdateFunctionCodeResponse withStrategyConfig(java.util.function.Consumer<StrategyConfig> strategyConfigSetter)
-
getStrategyConfig
public StrategyConfig getStrategyConfig()
Get strategyConfig- Returns:
- strategyConfig
-
setStrategyConfig
public void setStrategyConfig(StrategyConfig strategyConfig)
-
withDependencies
public UpdateFunctionCodeResponse withDependencies(List<Dependency> dependencies)
-
addDependenciesItem
public UpdateFunctionCodeResponse addDependenciesItem(Dependency dependenciesItem)
-
withDependencies
public UpdateFunctionCodeResponse withDependencies(java.util.function.Consumer<List<Dependency>> dependenciesSetter)
-
getDependencies
public List<Dependency> getDependencies()
函数依赖代码包列表。- Returns:
- dependencies
-
setDependencies
public void setDependencies(List<Dependency> dependencies)
-
-