Class: Google::Apis::RunV1::JobSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::JobSpec
- 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
-
#template ⇒ Google::Apis::RunV1::ExecutionTemplateSpec
ExecutionTemplateSpec describes the metadata and spec an Execution should have when created from a job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobSpec
constructor
A new instance of JobSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobSpec
Returns a new instance of JobSpec.
1706 1707 1708 |
# File 'lib/google/apis/run_v1/classes.rb', line 1706 def initialize(**args) update!(**args) end |
Instance Attribute Details
#template ⇒ Google::Apis::RunV1::ExecutionTemplateSpec
ExecutionTemplateSpec describes the metadata and spec an Execution should have
when created from a job.
Corresponds to the JSON property template
1704 1705 1706 |
# File 'lib/google/apis/run_v1/classes.rb', line 1704 def template @template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1711 1712 1713 |
# File 'lib/google/apis/run_v1/classes.rb', line 1711 def update!(**args) @template = args[:template] if args.key?(:template) end |