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