class Google::Apis::RunV2::GoogleCloudRunV2Condition

Defines a status condition for a resource.

Attributes

domain_mapping_reason[RW]

A reason for the domain mapping condition. Corresponds to the JSON property ‘domainMappingReason` @return [String]

execution_reason[RW]

A reason for the execution condition. Corresponds to the JSON property ‘executionReason` @return [String]

internal_reason[RW]

A reason for the internal condition. Corresponds to the JSON property ‘internalReason` @return [String]

last_transition_time[RW]

Last time the condition transitioned from one status to another. Corresponds to the JSON property ‘lastTransitionTime` @return [String]

message[RW]

Human readable message indicating details about the current status. Corresponds to the JSON property ‘message` @return [String]

reason[RW]

A common (service-level) reason for this condition. Corresponds to the JSON property ‘reason` @return [String]

revision_reason[RW]

A reason for the revision condition. Corresponds to the JSON property ‘revisionReason` @return [String]

severity[RW]

How to interpret failures of this condition, one of Error, Warning, Info Corresponds to the JSON property ‘severity` @return [String]

state[RW]

State of the condition. Corresponds to the JSON property ‘state` @return [String]

type[RW]

type is used to communicate the status of the reconciliation process. See also: github.com/knative/serving/blob/main/docs/spec/errors.md#error- conditions-and-reporting Types common to all resources include: * “Ready”: True when the Resource is ready. Corresponds to the JSON property ‘type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 141
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_v2/classes.rb, line 146
def update!(**args)
  @domain_mapping_reason = args[:domain_mapping_reason] if args.key?(:domain_mapping_reason)
  @execution_reason = args[:execution_reason] if args.key?(:execution_reason)
  @internal_reason = args[:internal_reason] if args.key?(:internal_reason)
  @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)
  @revision_reason = args[:revision_reason] if args.key?(:revision_reason)
  @severity = args[:severity] if args.key?(:severity)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end