public class Code extends AbstractModel
| Constructor and Description |
|---|
Code() |
Code(Code 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 |
|---|---|
String |
getCosBucketName()
Get Object bucket name (enter the custom part of the bucket name without `-appid`)
|
String |
getCosBucketRegion()
Get COS region.
|
String |
getCosObjectName()
Get COS object path
|
String |
getDemoId()
Get `DemoId` is required if Demo is used for the creation.
|
String |
getGitBranch()
Get Git branch
|
String |
getGitCommitId()
Get Version to be pulled
|
String |
getGitDirectory()
Get Code path in Git repository
|
String |
getGitPassword()
Get Git password
|
String |
getGitPasswordSecret()
Get Git password after encryption.
|
String |
getGitUrl()
Get Git address
|
String |
getGitUserName()
Get Git user name
|
String |
getGitUserNameSecret()
Get Git user name after encryption.
|
String |
getTempCosObjectName()
Get `TempCosObjectName` is required if TempCos is used for the creation.
|
String |
getZipFile()
Get This parameter contains a .zip file (up to 50 MB) of the function code file and its dependencies.
|
void |
setCosBucketName(String CosBucketName)
Set Object bucket name (enter the custom part of the bucket name without `-appid`)
|
void |
setCosBucketRegion(String CosBucketRegion)
Set COS region.
|
void |
setCosObjectName(String CosObjectName)
Set COS object path
|
void |
setDemoId(String DemoId)
Set `DemoId` is required if Demo is used for the creation.
|
void |
setGitBranch(String GitBranch)
Set Git branch
|
void |
setGitCommitId(String GitCommitId)
Set Version to be pulled
|
void |
setGitDirectory(String GitDirectory)
Set Code path in Git repository
|
void |
setGitPassword(String GitPassword)
Set Git password
|
void |
setGitPasswordSecret(String GitPasswordSecret)
Set Git password after encryption.
|
void |
setGitUrl(String GitUrl)
Set Git address
|
void |
setGitUserName(String GitUserName)
Set Git user name
|
void |
setGitUserNameSecret(String GitUserNameSecret)
Set Git user name after encryption.
|
void |
setTempCosObjectName(String TempCosObjectName)
Set `TempCosObjectName` is required if TempCos is used for the creation.
|
void |
setZipFile(String ZipFile)
Set This parameter contains a .zip file (up to 50 MB) of the function code file and its dependencies.
|
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, toJsonStringpublic Code()
public Code(Code source)
public String getCosBucketName()
public void setCosBucketName(String CosBucketName)
CosBucketName - Object bucket name (enter the custom part of the bucket name without `-appid`)public String getCosObjectName()
public void setCosObjectName(String CosObjectName)
CosObjectName - COS object pathpublic String getZipFile()
public void setZipFile(String ZipFile)
ZipFile - This parameter contains a .zip file (up to 50 MB) of the function code file and its dependencies. When this API is used, the content of the .zip file needs to be Base64-encodedpublic String getCosBucketRegion()
public void setCosBucketRegion(String CosBucketRegion)
CosBucketRegion - COS region. For Beijing regions, you need to import `ap-beijing`. For Beijing Region 1, you need to input `ap-beijing-1`. For other regions, no import is required.public String getDemoId()
public void setDemoId(String DemoId)
DemoId - `DemoId` is required if Demo is used for the creation.public String getTempCosObjectName()
public void setTempCosObjectName(String TempCosObjectName)
TempCosObjectName - `TempCosObjectName` is required if TempCos is used for the creation.public String getGitUrl()
public void setGitUrl(String GitUrl)
GitUrl - Git addresspublic String getGitUserName()
public void setGitUserName(String GitUserName)
GitUserName - Git user namepublic String getGitPassword()
public void setGitPassword(String GitPassword)
GitPassword - Git passwordpublic String getGitPasswordSecret()
public void setGitPasswordSecret(String GitPasswordSecret)
GitPasswordSecret - Git password after encryption. In general, this value is not required.public String getGitBranch()
public void setGitBranch(String GitBranch)
GitBranch - Git branchpublic String getGitDirectory()
public void setGitDirectory(String GitDirectory)
GitDirectory - Code path in Git repositorypublic String getGitCommitId()
public void setGitCommitId(String GitCommitId)
GitCommitId - Version to be pulledpublic String getGitUserNameSecret()
public void setGitUserNameSecret(String GitUserNameSecret)
GitUserNameSecret - Git user name after encryption. In general, this value is not required.Copyright © 2021. All rights reserved.