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.
1444 1445 1446 |
# File 'lib/google/apis/run_v1/classes.rb', line 1444 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. Based on: https://github.com/kubernetes/api/blob/
e771f807/core/v1/types.go#L3179-L3190
Corresponds to the JSON property template
1442 1443 1444 |
# File 'lib/google/apis/run_v1/classes.rb', line 1442 def template @template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1449 1450 1451 |
# File 'lib/google/apis/run_v1/classes.rb', line 1449 def update!(**args) @template = args[:template] if args.key?(:template) end |