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 File path of code package stored in COS, which should start with “/”
|
String |
getDemoId()
Get `DemoId` is required if Demo is used for the creation.
|
String |
getGitBranch()
Get (Disused) Git branch
|
String |
getGitCommitId()
Get (Disused)
|
String |
getGitDirectory()
Get (Disused) Directory to the codes in the Git repository.
|
String |
getGitPassword()
Get (Disused) Git password
|
String |
getGitPasswordSecret()
Get (Disused) Git password after encryption.
|
String |
getGitUrl()
Get (Disused) Git address
|
String |
getGitUserName()
Get (Disused) Git username
|
String |
getGitUserNameSecret()
Get (Disused) Git username after encryption.
|
ImageConfig |
getImageConfig()
Get TCR image configurations
|
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 File path of code package stored in COS, which should start with “/”
|
void |
setDemoId(String DemoId)
Set `DemoId` is required if Demo is used for the creation.
|
void |
setGitBranch(String GitBranch)
Set (Disused) Git branch
|
void |
setGitCommitId(String GitCommitId)
Set (Disused)
|
void |
setGitDirectory(String GitDirectory)
Set (Disused) Directory to the codes in the Git repository.
|
void |
setGitPassword(String GitPassword)
Set (Disused) Git password
|
void |
setGitPasswordSecret(String GitPasswordSecret)
Set (Disused) Git password after encryption.
|
void |
setGitUrl(String GitUrl)
Set (Disused) Git address
|
void |
setGitUserName(String GitUserName)
Set (Disused) Git username
|
void |
setGitUserNameSecret(String GitUserNameSecret)
Set (Disused) Git username after encryption.
|
void |
setImageConfig(ImageConfig ImageConfig)
Set TCR image configurations
|
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, toJsonString
public 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
- File path of code package stored in COS, which should start with “/”public 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
- (Disused) Git addresspublic String getGitUserName()
public void setGitUserName(String GitUserName)
GitUserName
- (Disused) Git usernamepublic String getGitPassword()
public void setGitPassword(String GitPassword)
GitPassword
- (Disused) Git passwordpublic String getGitPasswordSecret()
public void setGitPasswordSecret(String GitPasswordSecret)
GitPasswordSecret
- (Disused) Git password after encryption. It’s usually not required.public String getGitBranch()
public void setGitBranch(String GitBranch)
GitBranch
- (Disused) Git branchpublic String getGitDirectory()
public void setGitDirectory(String GitDirectory)
GitDirectory
- (Disused) Directory to the codes in the Git repository.public String getGitCommitId()
public void setGitCommitId(String GitCommitId)
GitCommitId
- (Disused)public String getGitUserNameSecret()
public void setGitUserNameSecret(String GitUserNameSecret)
GitUserNameSecret
- (Disused) Git username after encryption. It’s usually not required.public ImageConfig getImageConfig()
public void setImageConfig(ImageConfig ImageConfig)
ImageConfig
- TCR image configurationsCopyright © 2023. All rights reserved.