class Google::Apis::RunV1alpha1::Job
Job
represents the configuration of a single job. A job an immutable resource that references a container image which is run to completion.
Attributes
Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: git.k8s.io/community/ contributors/devel/sig-architecture/api-conventions.md#resources +optional Corresponds to the JSON property `apiVersion` @return [String]
Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: git.k8s.io/ community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + optional Corresponds to the JSON property `kind` @return [String]
k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property `metadata` @return [Google::Apis::RunV1alpha1::ObjectMeta]
JobSpec
describes how the job execution will look like. Corresponds to the JSON property `spec` @return [Google::Apis::RunV1alpha1::JobSpec]
Public Class Methods
# File lib/google/apis/run_v1alpha1/classes.rb, line 732 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/run_v1alpha1/classes.rb, line 737 def update!(**args) @api_version = args[:api_version] if args.key?(:api_version) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) @spec = args[:spec] if args.key?(:spec) @status = args[:status] if args.key?(:status) end