public static final class UpdateJobRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
UpdateJobRequest.Builder |
acrAssumeRoleArn(String acrAssumeRoleArn)
The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to pull images across accounts.
|
UpdateJobRequest.Builder |
acrInstanceId(String acrInstanceId)
The ID of Container Registry Enterprise Edition instance N.
|
UpdateJobRequest.Builder |
appId(String appId)
The ID of the application.
|
UpdateJobRequest.Builder |
backoffLimit(Long backoffLimit)
The number of times the job is retried.
|
UpdateJobRequest |
build() |
UpdateJobRequest.Builder |
command(String command)
The command that is used to start the image.
|
UpdateJobRequest.Builder |
commandArgs(String commandArgs)
The parameters of the image startup command.
|
UpdateJobRequest.Builder |
concurrencyPolicy(String concurrencyPolicy)
The concurrency policy of the job.
|
UpdateJobRequest.Builder |
configMapMountDesc(String configMapMountDesc)
The description of the **ConfigMap** instance mounted to the application.
|
UpdateJobRequest.Builder |
customHostAlias(String customHostAlias)
The custom mappings between hostnames and IP addresses in the container.
|
UpdateJobRequest.Builder |
edasContainerVersion(String edasContainerVersion)
The version of the container, such as Ali-Tomcat, in which an application developed based on High-speed Service Framework (HSF) is deployed.
|
UpdateJobRequest.Builder |
enableImageAccl(Boolean enableImageAccl)
EnableImageAccl.
|
UpdateJobRequest.Builder |
envs(String envs)
The environment variables.
|
UpdateJobRequest.Builder |
imagePullSecrets(String imagePullSecrets)
The ID of the corresponding Secret.
|
UpdateJobRequest.Builder |
imageUrl(String imageUrl)
The URL of the image.
|
UpdateJobRequest.Builder |
jarStartArgs(String jarStartArgs)
The arguments in the JAR package.
|
UpdateJobRequest.Builder |
jarStartOptions(String jarStartOptions)
The option settings in the JAR package.
|
UpdateJobRequest.Builder |
jdk(String jdk)
The version of the Java development kit (JDK) on which the deployment package of the application depends.
|
UpdateJobRequest.Builder |
mountDesc(String mountDesc)
The configurations for mounting the NAS file system.
|
UpdateJobRequest.Builder |
mountHost(String mountHost)
The mount target of the NAS file system in the VPC where the application is deployed.
|
UpdateJobRequest.Builder |
nasId(String nasId)
The ID of the Apsara File Storage NAS file system.
|
UpdateJobRequest.Builder |
ossAkId(String ossAkId)
The AccessKey ID that is used to read data from and write data to OSS.
|
UpdateJobRequest.Builder |
ossAkSecret(String ossAkSecret)
The AccessKey secret that is used to read data from and write data to OSS.
|
UpdateJobRequest.Builder |
ossMountDescs(String ossMountDescs)
The information about the mounted Object Storage Service (OSS) bucket.
|
UpdateJobRequest.Builder |
packageUrl(String packageUrl)
The address of the deployment package.
|
UpdateJobRequest.Builder |
packageVersion(String packageVersion)
The version of the deployment package.
|
UpdateJobRequest.Builder |
php(String php)
The ID of Container Registry Enterprise Edition instance N.
|
UpdateJobRequest.Builder |
phpConfig(String phpConfig)
The details of the PHP configuration file.
|
UpdateJobRequest.Builder |
phpConfigLocation(String phpConfigLocation)
The path on which the PHP configuration file for application startup is mounted.
|
UpdateJobRequest.Builder |
postStart(String postStart)
The script to be run after the container is started.
|
UpdateJobRequest.Builder |
preStop(String preStop)
The script that is run before the container is stopped.
|
UpdateJobRequest.Builder |
programmingLanguage(String programmingLanguage)
The programming language.
|
UpdateJobRequest.Builder |
python(String python)
The Python environment.
|
UpdateJobRequest.Builder |
pythonModules(String pythonModules)
The configurations for installing custom module dependencies.
|
UpdateJobRequest.Builder |
refAppId(String refAppId)
The ID of the job that you reference.
|
UpdateJobRequest.Builder |
replicas(String replicas)
The number of concurrent instances.
|
UpdateJobRequest.Builder |
slice(Boolean slice)
Specifies whether to enable job sharding.
|
UpdateJobRequest.Builder |
sliceEnvs(String sliceEnvs)
The parameters of job sharding.
|
UpdateJobRequest.Builder |
slsConfigs(String slsConfigs)
The configurations of Log Service.
|
UpdateJobRequest.Builder |
terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
The timeout period for a graceful shutdown.
|
UpdateJobRequest.Builder |
timeout(Long timeout)
The timeout period.
|
UpdateJobRequest.Builder |
timezone(String timezone)
The time zone.
|
UpdateJobRequest.Builder |
tomcatConfig(String tomcatConfig)
The Tomcat configuration.
|
UpdateJobRequest.Builder |
triggerConfig(String triggerConfig)
TriggerConfig.
|
UpdateJobRequest.Builder |
warStartOptions(String warStartOptions)
The startup command of the WAR package.
|
UpdateJobRequest.Builder |
webContainer(String webContainer)
The version of the Tomcat container on which the deployment package depends.
|
public UpdateJobRequest.Builder acrAssumeRoleArn(String acrAssumeRoleArn)
public UpdateJobRequest.Builder acrInstanceId(String acrInstanceId)
public UpdateJobRequest.Builder appId(String appId)
public UpdateJobRequest.Builder backoffLimit(Long backoffLimit)
public UpdateJobRequest.Builder command(String command)
command: - echo - abc - > - file0 In this example, the Command parameter is set to `Command="echo", CommandArgs=["abc", ">", "file0"]`.
public UpdateJobRequest.Builder commandArgs(String commandArgs)
`["a","b"]` In the preceding example, the CommandArgs parameter is set to `CommandArgs=["abc", ">", "file0"]`. The data type of `["abc", ">", "file0"]` must be an array of strings in the JSON format. This parameter is optional.
public UpdateJobRequest.Builder concurrencyPolicy(String concurrencyPolicy)
* **Forbid**: Prohibits concurrent running. If the previous job is not completed, no new job is created. * **Allow**: Allows concurrent running. * **Replace**: If the previous job is not completed when the time to create a new job is reached, the new job replaces the previous job.
public UpdateJobRequest.Builder configMapMountDesc(String configMapMountDesc)
* **congfigMapId**: the ID of the ConfigMap instance. You can call the [ListNamespacedConfigMaps](~~176917~~) operation to obtain the ID. * **key**: the key. > You can use the `sae-sys-configmap-all` key to mount all keys. * **mountPath**: the mount path.
public UpdateJobRequest.Builder customHostAlias(String customHostAlias)
* **hostName**: the domain name or hostname. * **ip**: the IP address.
public UpdateJobRequest.Builder edasContainerVersion(String edasContainerVersion)
public UpdateJobRequest.Builder enableImageAccl(Boolean enableImageAccl)
public UpdateJobRequest.Builder envs(String envs)
* Configure custom environment variables
* **name**: the name of the environment variable.
* **value**: the value of the environment variable.
* Reference ConfigMap
* **name**: the name of the environment variable. You can reference one or all keys. If you want to reference all keys, specify `sae-sys-configmap-all-
public UpdateJobRequest.Builder imagePullSecrets(String imagePullSecrets)
public UpdateJobRequest.Builder imageUrl(String imageUrl)
public UpdateJobRequest.Builder jarStartArgs(String jarStartArgs)
public UpdateJobRequest.Builder jarStartOptions(String jarStartOptions)
public UpdateJobRequest.Builder jdk(String jdk)
* **Open JDK 8** * **Open JDK 7** * **Dragonwell 11** * **Dragonwell 8** * **openjdk-8u191-jdk-alpine3.9** * **openjdk-7u201-jdk-alpine3.9** This parameter is not returned if the **PackageType** parameter is set to **Image**.
public UpdateJobRequest.Builder mountDesc(String mountDesc)
public UpdateJobRequest.Builder mountHost(String mountHost)
public UpdateJobRequest.Builder nasId(String nasId)
public UpdateJobRequest.Builder ossAkId(String ossAkId)
public UpdateJobRequest.Builder ossAkSecret(String ossAkSecret)
public UpdateJobRequest.Builder ossMountDescs(String ossMountDescs)
* **bucketName**: the name of the OSS bucket. * **bucketPath**: the directory or object in OSS. If the specified directory or object does not exist, an error is returned. * **mountPath**: the directory of the container in SAE. If the path already exists, the newly specified path overwrites the previous one. If the path does not exist, it is created. * **readOnly**: specifies whether to only allow the container path to read data from the OSS directory. Valid values: * **true**: The container path only has read permission on the OSS directory. * **false**: The application has read and write permissions.
public UpdateJobRequest.Builder packageUrl(String packageUrl)
public UpdateJobRequest.Builder packageVersion(String packageVersion)
public UpdateJobRequest.Builder php(String php)
public UpdateJobRequest.Builder phpConfig(String phpConfig)
public UpdateJobRequest.Builder phpConfigLocation(String phpConfigLocation)
public UpdateJobRequest.Builder postStart(String postStart)
public UpdateJobRequest.Builder preStop(String preStop)
public UpdateJobRequest.Builder programmingLanguage(String programmingLanguage)
public UpdateJobRequest.Builder python(String python)
public UpdateJobRequest.Builder pythonModules(String pythonModules)
public UpdateJobRequest.Builder refAppId(String refAppId)
public UpdateJobRequest.Builder replicas(String replicas)
public UpdateJobRequest.Builder slice(Boolean slice)
public UpdateJobRequest.Builder sliceEnvs(String sliceEnvs)
public UpdateJobRequest.Builder slsConfigs(String slsConfigs)
* To use Log Service resources that are automatically created by SAE, set this parameter to `[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]`. * To use custom Log Service resources, set this parameter to `[{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}]`. The following parameters are involved: * **projectName**: the name of the Log Service project. * **logDir**: the path in which logs are stored. * **logType**: the log type. **stdout**: the standard output log of the container. You can specify only one stdout value for this parameter. If you leave this parameter empty, file logs are collected. * **logstoreName**: the name of the Logstore in Log Service. * **logtailName**: the name of the Logtail configuration in Log Service. If you do not configure this parameter, a new Logtail configuration is created. If you do not need to modify the logging configurations when you deploy the application, configure the **SlsConfigs** parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use Log Service, leave the **SlsConfigs** parameter empty in the request. > A Log Service project that is automatically created by SAE when you create an application is deleted when the application is deleted. Therefore, when you create an application, you cannot select a Log Service project that is automatically created by SAE for log collection.
public UpdateJobRequest.Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
public UpdateJobRequest.Builder timeout(Long timeout)
public UpdateJobRequest.Builder timezone(String timezone)
public UpdateJobRequest.Builder tomcatConfig(String tomcatConfig)
* **port**: the port number. The port number ranges from 1024 to 65535. Though the admin permissions are configured for the container, the root permissions are required to perform operations on ports whose number is smaller than 1024. Enter a value that ranges from 1025 to 65535 because the container has only the admin permissions. If you do not specify this parameter, the default port number 8080 is used. * **contextPath**: the path. Default value: /. This value indicates the root directory. * **maxThreads**: the maximum number of connections in the connection pool. Default value: 400. * **uriEncoding**: the URI encoding scheme in the Tomcat container. Valid values: **UTF-8**, **ISO-8859-1**, **GBK**, and GB2312. If you do not specify this parameter, the default value **ISO-8859-1** is used. * **useBodyEncoding**: specifies whether to use the encoding scheme that is specified by **BodyEncoding for URL**. Default value: **true**.
public UpdateJobRequest.Builder triggerConfig(String triggerConfig)
public UpdateJobRequest.Builder warStartOptions(String warStartOptions)
public UpdateJobRequest.Builder webContainer(String webContainer)
* **apache-tomcat-7.0.91** * **apache-tomcat-8.5.42** This parameter is not returned if the **PackageType** parameter is set to **Image**.
public UpdateJobRequest build()
Copyright © 2024. All rights reserved.