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
4274 4275 4276 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4274 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
4244 4245 4246 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4244 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
4250 4251 4252 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4250 def @message end |
#reason ⇒ String
One-word CamelCase reason for the condition's current status.
+optional
Corresponds to the JSON property reason
4256 4257 4258 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4256 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
4262 4263 4264 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4262 def severity @severity end |
#status ⇒ String
Status of the condition, one of True, False, Unknown.
Corresponds to the JSON property status
4267 4268 4269 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4267 def status @status end |
#type ⇒ String
Type of Trigger condition.
Corresponds to the JSON property type
4272 4273 4274 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4272 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4279 4280 4281 4282 4283 4284 4285 4286 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4279 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 |