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
Optional.
-
#message ⇒ String
Optional.
-
#reason ⇒ String
Optional.
-
#severity ⇒ String
Optional.
-
#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.
Constructor Details
#initialize(**args) ⇒ TriggerCondition
Returns a new instance of TriggerCondition.
4616 4617 4618 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4616 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_transition_time ⇒ String
Optional. Last time the condition transitioned from one status to another.
Corresponds to the JSON property lastTransitionTime
4588 4589 4590 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4588 def last_transition_time @last_transition_time end |
#message ⇒ String
Optional. Human readable message indicating details about the current status.
Corresponds to the JSON property message
4593 4594 4595 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4593 def @message end |
#reason ⇒ String
Optional. One-word CamelCase reason for the condition's current status.
Corresponds to the JSON property reason
4598 4599 4600 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4598 def reason @reason end |
#severity ⇒ String
Optional. How to interpret failures of this condition, one of Error, Warning,
Info
Corresponds to the JSON property severity
4604 4605 4606 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4604 def severity @severity end |
#status ⇒ String
Status of the condition, one of True, False, Unknown.
Corresponds to the JSON property status
4609 4610 4611 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4609 def status @status end |
#type ⇒ String
Type of Trigger condition.
Corresponds to the JSON property type
4614 4615 4616 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4614 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4621 4622 4623 4624 4625 4626 4627 4628 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4621 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 |