Class: Google::Apis::BatchV1::AgentTaskSpec
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::AgentTaskSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.
Instance Attribute Summary collapse
-
#environment ⇒ Google::Apis::BatchV1::AgentEnvironment
AgentEnvironment is the Environment representation between Agent and CLH communication.
-
#max_run_duration ⇒ String
Maximum duration the task should run.
-
#runnables ⇒ Array<Google::Apis::BatchV1::AgentTaskRunnable>
AgentTaskRunnable is runanbles that will be executed on the agent.
-
#user_account ⇒ Google::Apis::BatchV1::AgentTaskUserAccount
AgentTaskUserAccount contains the information of a POSIX account on the guest os which is used to execute the runnables.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentTaskSpec
constructor
A new instance of AgentTaskSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentTaskSpec
Returns a new instance of AgentTaskSpec.
530 531 532 |
# File 'lib/google/apis/batch_v1/classes.rb', line 530 def initialize(**args) update!(**args) end |
Instance Attribute Details
#environment ⇒ Google::Apis::BatchV1::AgentEnvironment
AgentEnvironment is the Environment representation between Agent and CLH
communication. The environment is used in both task level and agent level.
Corresponds to the JSON property environment
510 511 512 |
# File 'lib/google/apis/batch_v1/classes.rb', line 510 def environment @environment end |
#max_run_duration ⇒ String
Maximum duration the task should run. The task will be killed and marked as
FAILED if over this limit. The valid value range for max_run_duration in
seconds is [0, 315576000000.999999999],
Corresponds to the JSON property maxRunDuration
517 518 519 |
# File 'lib/google/apis/batch_v1/classes.rb', line 517 def max_run_duration @max_run_duration end |
#runnables ⇒ Array<Google::Apis::BatchV1::AgentTaskRunnable>
AgentTaskRunnable is runanbles that will be executed on the agent.
Corresponds to the JSON property runnables
522 523 524 |
# File 'lib/google/apis/batch_v1/classes.rb', line 522 def runnables @runnables end |
#user_account ⇒ Google::Apis::BatchV1::AgentTaskUserAccount
AgentTaskUserAccount contains the information of a POSIX account on the guest
os which is used to execute the runnables.
Corresponds to the JSON property userAccount
528 529 530 |
# File 'lib/google/apis/batch_v1/classes.rb', line 528 def user_account @user_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
535 536 537 538 539 540 |
# File 'lib/google/apis/batch_v1/classes.rb', line 535 def update!(**args) @environment = args[:environment] if args.key?(:environment) @max_run_duration = args[:max_run_duration] if args.key?(:max_run_duration) @runnables = args[:runnables] if args.key?(:runnables) @user_account = args[:user_account] if args.key?(:user_account) end |