View Source GoogleApi.Batch.V1.Model.AgentTaskSpec (google_api_batch v0.2.0)

AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.

Attributes

  • environment (type: GoogleApi.Batch.V1.Model.AgentEnvironment.t, default: nil) - Environment variables to set before running the Task.
  • maxRunDuration (type: String.t, default: nil) - Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
  • runnables (type: list(GoogleApi.Batch.V1.Model.AgentTaskRunnable.t), default: nil) - AgentTaskRunnable is runanbles that will be executed on the agent.
  • userAccount (type: GoogleApi.Batch.V1.Model.AgentTaskUserAccount.t, default: nil) - User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Batch.V1.Model.AgentTaskSpec{
  environment: GoogleApi.Batch.V1.Model.AgentEnvironment.t() | nil,
  maxRunDuration: String.t() | nil,
  runnables: [GoogleApi.Batch.V1.Model.AgentTaskRunnable.t()] | nil,
  userAccount: GoogleApi.Batch.V1.Model.AgentTaskUserAccount.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.