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.



1449
1450
1451
# File 'lib/google/apis/run_v1/classes.rb', line 1449

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



1447
1448
1449
# File 'lib/google/apis/run_v1/classes.rb', line 1447

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1454
1455
1456
# File 'lib/google/apis/run_v1/classes.rb', line 1454

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