Class: Google::Apis::RunV1alpha1::JobCondition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb

Overview

JobCondition defines a readiness condition for a Revision.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobCondition

Returns a new instance of JobCondition.



897
898
899
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 897

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#last_transition_timeString

Optional. Last time the condition transitioned from one status to another. Corresponds to the JSON property lastTransitionTime

Returns:

  • (String)


864
865
866
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 864

def last_transition_time
  @last_transition_time
end

#messageString

Optional. Human readable message indicating details about the current status. Corresponds to the JSON property message

Returns:

  • (String)


869
870
871
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 869

def message
  @message
end

#reasonString

Optional. One-word CamelCase reason for the condition's last transition. Corresponds to the JSON property reason

Returns:

  • (String)


874
875
876
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 874

def reason
  @reason
end

#severityString

Optional. How to interpret failures of this condition, one of Error, Warning, Info Corresponds to the JSON property severity

Returns:

  • (String)


880
881
882
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 880

def severity
  @severity
end

#statusString

Required. Status of the condition, one of True, False, Unknown. Corresponds to the JSON property status

Returns:

  • (String)


885
886
887
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 885

def status
  @status
end

#typeString

Required. Type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md# error-conditions-and-reporting Types include: * "Completed": True when the Job has successfully completed. * "Started": True when the Job has successfully started running. * "ResourcesAvailable": True when underlying resources have been provisioned. Corresponds to the JSON property type

Returns:

  • (String)


895
896
897
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 895

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



902
903
904
905
906
907
908
909
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 902

def update!(**args)
  @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
  @message = args[:message] if args.key?(:message)
  @reason = args[:reason] if args.key?(:reason)
  @severity = args[:severity] if args.key?(:severity)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end