Class: KubeDSL::DSL::Batch::V1::JobSpec
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::Batch::V1::JobSpec
- Defined in:
- lib/kube-dsl/dsl/batch/v1/job_spec.rb
Instance Method Summary collapse
Methods inherited from KubeDSL::DSLObject
Methods included from ValueFields
#array_field, #object_field, #value_field, #value_fields
Constructor Details
This class inherits a constructor from KubeDSL::DSLObject
Instance Method Details
#kind_sym ⇒ Object
20 21 22 |
# File 'lib/kube-dsl/dsl/batch/v1/job_spec.rb', line 20 def kind_sym :job_spec end |
#serialize ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/kube-dsl/dsl/batch/v1/job_spec.rb', line 7 def serialize {}.tap do |result| result[:activeDeadlineSeconds] = active_deadline_seconds result[:backoffLimit] = backoff_limit result[:completions] = completions result[:manualSelector] = manual_selector result[:parallelism] = parallelism result[:ttlSecondsAfterFinished] = ttl_seconds_after_finished result[:selector] = selector.serialize result[:template] = template.serialize end end |