Batch v1alpha API - Class Job (1.0.0-alpha21)

public sealed class Job : IMessage<Job>, IEquatable<Job>, IDeepCloneable<Job>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1alpha API class Job.

The Cloud Batch Job description.

Inheritance

object > Job

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

Job()

public Job()

Job(Job)

public Job(Job other)
Parameter
NameDescription
otherJob

Properties

AllocationPolicy

public AllocationPolicy AllocationPolicy { get; set; }

Compute resource allocation for all TaskGroups in the Job.

Property Value
TypeDescription
AllocationPolicy

CreateTime

public Timestamp CreateTime { get; set; }

Output only. When the Job was created.

Property Value
TypeDescription
Timestamp

Dependencies

public RepeatedField<JobDependency> Dependencies { get; }

At least one of the dependencies must be satisfied before the Job is scheduled to run. Only one JobDependency is supported now. Not yet implemented.

Property Value
TypeDescription
RepeatedFieldJobDependency

JobName

public JobName JobName { get; set; }

JobName-typed view over the Name resource name property.

Property Value
TypeDescription
JobName

Labels

public MapField<string, string> Labels { get; }

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.

Property Value
TypeDescription
MapFieldstringstring

LogsPolicy

public LogsPolicy LogsPolicy { get; set; }

Log preservation policy for the Job.

Property Value
TypeDescription
LogsPolicy

Name

public string Name { get; set; }

Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".

Property Value
TypeDescription
string

Notification

[Obsolete]
public JobNotification Notification { get; set; }

Deprecated: please use notifications instead.

Property Value
TypeDescription
JobNotification

Notifications

public RepeatedField<JobNotification> Notifications { get; }

Notification configurations.

Property Value
TypeDescription
RepeatedFieldJobNotification

Priority

public long Priority { get; set; }

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.

Property Value
TypeDescription
long

SchedulingPolicy

public Job.Types.SchedulingPolicy SchedulingPolicy { get; set; }

Scheduling policy for TaskGroups in the job.

Property Value
TypeDescription
JobTypesSchedulingPolicy

Status

public JobStatus Status { get; set; }

Output only. Job status. It is read only for users.

Property Value
TypeDescription
JobStatus

TaskGroups

public RepeatedField<TaskGroup> TaskGroups { get; }

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

Property Value
TypeDescription
RepeatedFieldTaskGroup

Uid

public string Uid { get; set; }

Output only. A system generated unique ID (in UUID4 format) for the Job.

Property Value
TypeDescription
string

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The last time the Job was updated.

Property Value
TypeDescription
Timestamp