Class: Google::Apis::RunV1::JobSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb

Overview

JobSpec describes how the job will look.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobSpec

Returns a new instance of JobSpec.



1523
1524
1525
# File 'lib/google/apis/run_v1/classes.rb', line 1523

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#templateGoogle::Apis::RunV1::ExecutionTemplateSpec

ExecutionTemplateSpec describes the metadata and spec an Execution should have when created from a job. Corresponds to the JSON property template



1521
1522
1523
# File 'lib/google/apis/run_v1/classes.rb', line 1521

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1528
1529
1530
# File 'lib/google/apis/run_v1/classes.rb', line 1528

def update!(**args)
  @template = args[:template] if args.key?(:template)
end