Class: Google::Apis::RunV1alpha1::TriggerCondition
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::TriggerCondition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
TriggerCondition contains state information for an Trigger.
Instance Attribute Summary collapse
-
#last_transition_time ⇒ String
Last time the condition transitioned from one status to another.
-
#message ⇒ String
Human readable message indicating details about the current status.
-
#reason ⇒ String
One-word CamelCase reason for the condition's current status.
-
#severity ⇒ String
How to interpret failures of this condition, one of Error, Warning, Info +optional Corresponds to the JSON property
severity
. -
#status ⇒ String
Status of the condition, one of True, False, Unknown.
-
#type ⇒ String
Type of Trigger condition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerCondition
constructor
A new instance of TriggerCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TriggerCondition
Returns a new instance of TriggerCondition
4305 4306 4307 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4305 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_transition_time ⇒ String
Last time the condition transitioned from one status to another.
+optional
Corresponds to the JSON property lastTransitionTime
4275 4276 4277 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4275 def last_transition_time @last_transition_time end |
#message ⇒ String
Human readable message indicating details about the current status.
+optional
Corresponds to the JSON property message
4281 4282 4283 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4281 def @message end |
#reason ⇒ String
One-word CamelCase reason for the condition's current status.
+optional
Corresponds to the JSON property reason
4287 4288 4289 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4287 def reason @reason end |
#severity ⇒ String
How to interpret failures of this condition, one of Error, Warning, Info
+optional
Corresponds to the JSON property severity
4293 4294 4295 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4293 def severity @severity end |
#status ⇒ String
Status of the condition, one of True, False, Unknown.
Corresponds to the JSON property status
4298 4299 4300 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4298 def status @status end |
#type ⇒ String
Type of Trigger condition.
Corresponds to the JSON property type
4303 4304 4305 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4303 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4310 4311 4312 4313 4314 4315 4316 4317 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4310 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 |