Class AgentTaskSpec
AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.
Implements
Inherited Members
Namespace: Google.Apis.Batch.v1.Data
Assembly: Google.Apis.Batch.v1.dll
Syntax
public class AgentTaskSpec : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Environment
Environment variables to set before running the Task.
Declaration
[JsonProperty("environment")]
public virtual AgentEnvironment Environment { get; set; }
Property Value
Type | Description |
---|---|
AgentEnvironment |
LoggingOption
Logging option for the task.
Declaration
[JsonProperty("loggingOption")]
public virtual AgentTaskLoggingOption LoggingOption { get; set; }
Property Value
Type | Description |
---|---|
AgentTaskLoggingOption |
MaxRunDuration
Maximum duration the task should run before being automatically retried (if enabled) or automatically
failed. Format the value of this field as a time limit in seconds followed by s
—for example, 3600s
for 1
hour. The field accepts any value between 0 and the maximum listed for the Duration
field type at
https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for
a job will be limited to the maximum run time for a job listed at
https://cloud.google.com/batch/quotas#max-job-duration.
Declaration
[JsonProperty("maxRunDuration")]
public virtual object MaxRunDuration { get; set; }
Property Value
Type | Description |
---|---|
object |
Runnables
AgentTaskRunnable is runanbles that will be executed on the agent.
Declaration
[JsonProperty("runnables")]
public virtual IList<AgentTaskRunnable> Runnables { get; set; }
Property Value
Type | Description |
---|---|
IList<AgentTaskRunnable> |
UserAccount
User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user.
Declaration
[JsonProperty("userAccount")]
public virtual AgentTaskUserAccount UserAccount { get; set; }
Property Value
Type | Description |
---|---|
AgentTaskUserAccount |