public class UpdateFunctionCodeRequest extends AbstractModel
Constructor and Description |
---|
UpdateFunctionCodeRequest() |
UpdateFunctionCodeRequest(UpdateFunctionCodeRequest 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.
|
Modifier and Type | Method and Description |
---|---|
Code |
getCode()
Get Function code
|
String |
getCodeSource()
Get Code source.
|
String |
getCosBucketName()
Get COS bucket name
|
String |
getCosBucketRegion()
Get COS region.
|
String |
getCosObjectName()
Get COS object path
|
String |
getEnvId()
Get Function environment
|
String |
getFunctionName()
Get Name of the function to be modified
|
String |
getHandler()
Get Function handler name, which is in the `file name.function name` form.
|
String |
getInstallDependency()
Get Whether to install dependencies automatically
|
String |
getNamespace()
Get Function namespace
|
String |
getPublish()
Get It specifies whether to synchronously release a new version during the update.
|
String |
getZipFile()
Get It contains a function code file and its dependencies in the ZIP format.
|
void |
setCode(Code Code)
Set Function code
|
void |
setCodeSource(String CodeSource)
Set Code source.
|
void |
setCosBucketName(String CosBucketName)
Set COS bucket name
|
void |
setCosBucketRegion(String CosBucketRegion)
Set COS region.
|
void |
setCosObjectName(String CosObjectName)
Set COS object path
|
void |
setEnvId(String EnvId)
Set Function environment
|
void |
setFunctionName(String FunctionName)
Set Name of the function to be modified
|
void |
setHandler(String Handler)
Set Function handler name, which is in the `file name.function name` form.
|
void |
setInstallDependency(String InstallDependency)
Set Whether to install dependencies automatically
|
void |
setNamespace(String Namespace)
Set Function namespace
|
void |
setPublish(String Publish)
Set It specifies whether to synchronously release a new version during the update.
|
void |
setZipFile(String ZipFile)
Set It contains a function code file and its dependencies in the ZIP format.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public UpdateFunctionCodeRequest()
public UpdateFunctionCodeRequest(UpdateFunctionCodeRequest source)
public String getFunctionName()
public void setFunctionName(String FunctionName)
FunctionName
- Name of the function to be modifiedpublic String getHandler()
public void setHandler(String Handler)
Handler
- Function handler name, which is in the `file name.function name` form. Use a period (.) to separate a file name and function name. The file name and function name must start and end with letters and contain 2-60 characters, including letters, digits, underscores (_), and hyphens (-).public String getCosBucketName()
public void setCosBucketName(String CosBucketName)
CosBucketName
- COS bucket namepublic String getCosObjectName()
public void setCosObjectName(String CosObjectName)
CosObjectName
- COS object pathpublic String getZipFile()
public void setZipFile(String ZipFile)
ZipFile
- It contains a function code file and its dependencies in the ZIP format. When you use this API, the ZIP file needs to be encoded with Base64. Up to 20 MB is supported.public String getNamespace()
public void setNamespace(String Namespace)
Namespace
- Function namespacepublic String getCosBucketRegion()
public void setCosBucketRegion(String CosBucketRegion)
CosBucketRegion
- COS region. Note: Beijing includes ap-beijing and ap-beijing-1.public String getInstallDependency()
public void setInstallDependency(String InstallDependency)
InstallDependency
- Whether to install dependencies automaticallypublic String getEnvId()
public void setEnvId(String EnvId)
EnvId
- Function environmentpublic String getPublish()
public void setPublish(String Publish)
Publish
- It specifies whether to synchronously release a new version during the update. The default value is `FALSE`, indicating not to release a new version.public Code getCode()
public void setCode(Code Code)
Code
- Function codepublic String getCodeSource()
public void setCodeSource(String CodeSource)
CodeSource
- Code source. Valid values: ZipFile, Cos, InlineCopyright © 2023. All rights reserved.