JobArgs

data class JobArgs(val allocationPolicy: Output<AllocationPolicyArgs>? = null, val jobId: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val logsPolicy: Output<LogsPolicyArgs>? = null, val notifications: Output<List<JobNotificationArgs>>? = null, val priority: Output<String>? = null, val project: Output<String>? = null, val requestId: Output<String>? = null, val taskGroups: Output<List<TaskGroupArgs>>? = null) : ConvertibleToJava<JobArgs>

Create a Job. Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun JobArgs(allocationPolicy: Output<AllocationPolicyArgs>? = null, jobId: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, logsPolicy: Output<LogsPolicyArgs>? = null, notifications: Output<List<JobNotificationArgs>>? = null, priority: Output<String>? = null, project: Output<String>? = null, requestId: Output<String>? = null, taskGroups: Output<List<TaskGroupArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): JobArgs

Properties

Link copied to clipboard

Compute resource allocation for all TaskGroups in the Job.

Link copied to clipboard
val jobId: Output<String>? = null

ID used to uniquely identify the Job within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set. The job.name field in the request will be ignored and the created resource name of the Job will be "{parent}/jobs/{job_id}".

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

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val logsPolicy: Output<LogsPolicyArgs>? = null

Log preservation policy for the Job.

Link copied to clipboard
val notifications: Output<List<JobNotificationArgs>>? = null

Notification configurations.

Link copied to clipboard
val priority: Output<String>? = null

Priority of the Job. The valid value range is [0, 100). Default value is 0. Higher value indicates higher priority. A job with higher priority value is more likely to run earlier if all other requirements are satisfied.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val requestId: Output<String>? = null

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Link copied to clipboard
val taskGroups: Output<List<TaskGroupArgs>>? = null

TaskGroups in the Job. Only one TaskGroup is supported now.