Class: Google::Apis::SaasservicemgmtV1beta1::UnitCondition
- Inherits:
-
Object
- Object
- Google::Apis::SaasservicemgmtV1beta1::UnitCondition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/saasservicemgmt_v1beta1/classes.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb
Overview
UnitCondition describes the status of an Unit. UnitCondition is individual components that contribute to an overall state.
Instance Attribute Summary collapse
-
#last_transition_time ⇒ String
Required.
-
#message ⇒ String
Required.
-
#reason ⇒ String
Required.
-
#status ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UnitCondition
constructor
A new instance of UnitCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UnitCondition
Returns a new instance of UnitCondition.
1754 1755 1756 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 1754 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_transition_time ⇒ String
Required. Last time the condition transited from one status to another.
Corresponds to the JSON property lastTransitionTime
1732 1733 1734 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 1732 def last_transition_time @last_transition_time end |
#message ⇒ String
Required. Human readable message indicating details about the last transition.
Corresponds to the JSON property message
1737 1738 1739 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 1737 def @message end |
#reason ⇒ String
Required. Brief reason for the condition's last transition.
Corresponds to the JSON property reason
1742 1743 1744 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 1742 def reason @reason end |
#status ⇒ String
Required. Status of the condition.
Corresponds to the JSON property status
1747 1748 1749 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 1747 def status @status end |
#type ⇒ String
Required. Type of the condition.
Corresponds to the JSON property type
1752 1753 1754 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 1752 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1759 1760 1761 1762 1763 1764 1765 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 1759 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) @status = args[:status] if args.key?(:status) @type = args[:type] if args.key?(:type) end |