Class: Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2Condition
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2Condition
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
Conditions defines a readiness condition for a Knative resource.
Instance Attribute Summary collapse
-
#last_transition_time ⇒ String
LastTransitionTime is the last time the condition transitioned from one status to another.
-
#message ⇒ String
A human readable message indicating details about the transition.
-
#reason ⇒ String
The reason for the condition's last transition.
-
#severity ⇒ String
Severity with which to treat failures of this type of condition.
-
#status ⇒ String
Status of the condition.
-
#type ⇒ String
Type of condition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV2Condition
constructor
A new instance of GoogleDevtoolsCloudbuildV2Condition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV2Condition
Returns a new instance of GoogleDevtoolsCloudbuildV2Condition.
707 708 709 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 707 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_transition_time ⇒ String
LastTransitionTime is the last time the condition transitioned from one status
to another.
Corresponds to the JSON property lastTransitionTime
680 681 682 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 680 def last_transition_time @last_transition_time end |
#message ⇒ String
A human readable message indicating details about the transition.
Corresponds to the JSON property message
685 686 687 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 685 def @message end |
#reason ⇒ String
The reason for the condition's last transition.
Corresponds to the JSON property reason
690 691 692 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 690 def reason @reason end |
#severity ⇒ String
Severity with which to treat failures of this type of condition.
Corresponds to the JSON property severity
695 696 697 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 695 def severity @severity end |
#status ⇒ String
Status of the condition.
Corresponds to the JSON property status
700 701 702 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 700 def status @status end |
#type ⇒ String
Type of condition.
Corresponds to the JSON property type
705 706 707 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 705 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
712 713 714 715 716 717 718 719 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 712 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 |