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
4021 4022 4023 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4021 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
3991 3992 3993 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3991 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
3997 3998 3999 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3997 def @message end |
#reason ⇒ String
One-word CamelCase reason for the condition's current status.
+optional
Corresponds to the JSON property reason
4003 4004 4005 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4003 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
4009 4010 4011 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4009 def severity @severity end |
#status ⇒ String
Status of the condition, one of True, False, Unknown.
Corresponds to the JSON property status
4014 4015 4016 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4014 def status @status end |
#type ⇒ String
Type of Trigger condition.
Corresponds to the JSON property type
4019 4020 4021 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4019 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4026 4027 4028 4029 4030 4031 4032 4033 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4026 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 |