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

api_version[RW]

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]

kind[RW]

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]

metadata[RW]

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]

spec[RW]

JobSpec describes how the job execution will look like. Corresponds to the JSON property `spec` @return [Google::Apis::RunV1alpha1::JobSpec]

status[RW]

JobStatus represents the current state of a Job. Corresponds to the JSON property `status` @return [Google::Apis::RunV1alpha1::JobStatus]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1alpha1/classes.rb, line 732
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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