TaskExecutionSpec

data class TaskExecutionSpec(val args: Map<String, String>? = null, val kmsKey: String? = null, val maxJobExecutionLifetime: String? = null, val project: String? = null, val serviceAccount: String)

Constructors

Link copied to clipboard
constructor(args: Map<String, String>? = null, kmsKey: String? = null, maxJobExecutionLifetime: String? = null, project: String? = null, serviceAccount: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val args: Map<String, String>? = null

The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${taskId} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument. An object containing a list of 'key': value pairs. Example: { 'name': 'wrench', 'mass': '1.3kg', 'count': '3' }.

Link copied to clipboard
val kmsKey: String? = null

The Cloud KMS key to use for encryption, of the form: projects/{project_number}/locations/{locationId}/keyRings/{key-ring-name}/cryptoKeys/{key-name}.

Link copied to clipboard

The maximum duration after which the job execution is expired. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '3.5s'.

Link copied to clipboard
val project: String? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard

Service account to use to execute a task. If not provided, the default Compute service account for the project is used.