public class UpdateFunctionCodeRequest extends AbstractModel
Constructor and Description |
---|
UpdateFunctionCodeRequest() |
Modifier and Type | Method and Description |
---|---|
Code |
getCode()
Get Function code
|
String |
getCodeSource()
Get Source mode of code.
|
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 |
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 Source mode of code.
|
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 |
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 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 getFunctionName()
public void setFunctionName(String FunctionName)
FunctionName
- Name of the function to be modifiedpublic 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 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
- Source mode of code. Valid values: `ZipFile`, `Cos`, `Inline`, `TempCos` and `Git`. This field must be specified if the source is GitCopyright © 2020. All rights reserved.