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.



1459
1460
1461
# File 'lib/google/apis/run_v1/classes.rb', line 1459

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. Based on: https://github.com/kubernetes/api/blob/ e771f807/core/v1/types.go#L3179-L3190 Corresponds to the JSON property template



1457
1458
1459
# File 'lib/google/apis/run_v1/classes.rb', line 1457

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1464
1465
1466
# File 'lib/google/apis/run_v1/classes.rb', line 1464

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