Class: Google::Apis::RunV2::GoogleCloudRunV2Condition

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

Overview

Defines a status condition for a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2Condition

Returns a new instance of GoogleCloudRunV2Condition.



161
162
163
# File 'lib/google/apis/run_v2/classes.rb', line 161

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

Instance Attribute Details

#execution_reasonString

Output only. A reason for the execution condition. Corresponds to the JSON property executionReason

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/run_v2/classes.rb', line 121

def execution_reason
  @execution_reason
end

#last_transition_timeString

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

Returns:

  • (String)


126
127
128
# File 'lib/google/apis/run_v2/classes.rb', line 126

def last_transition_time
  @last_transition_time
end

#messageString

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

Returns:

  • (String)


131
132
133
# File 'lib/google/apis/run_v2/classes.rb', line 131

def message
  @message
end

#reasonString

Output only. A common (service-level) reason for this condition. Corresponds to the JSON property reason

Returns:

  • (String)


136
137
138
# File 'lib/google/apis/run_v2/classes.rb', line 136

def reason
  @reason
end

#revision_reasonString

Output only. A reason for the revision condition. Corresponds to the JSON property revisionReason

Returns:

  • (String)


141
142
143
# File 'lib/google/apis/run_v2/classes.rb', line 141

def revision_reason
  @revision_reason
end

#severityString

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

Returns:

  • (String)


146
147
148
# File 'lib/google/apis/run_v2/classes.rb', line 146

def severity
  @severity
end

#stateString

State of the condition. Corresponds to the JSON property state

Returns:

  • (String)


151
152
153
# File 'lib/google/apis/run_v2/classes.rb', line 151

def state
  @state
end

#typeString

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 common to all resources include: * "Ready": True when the Resource is ready. Corresponds to the JSON property type

Returns:

  • (String)


159
160
161
# File 'lib/google/apis/run_v2/classes.rb', line 159

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



166
167
168
169
170
171
172
173
174
175
# File 'lib/google/apis/run_v2/classes.rb', line 166

def update!(**args)
  @execution_reason = args[:execution_reason] if args.key?(:execution_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