Class: Google::Apis::GkehubV2alpha::ClusterUpgradeUpgradeStatus
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2alpha::ClusterUpgradeUpgradeStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2alpha/classes.rb,
lib/google/apis/gkehub_v2alpha/representations.rb,
lib/google/apis/gkehub_v2alpha/representations.rb
Overview
UpgradeStatus provides status information for each upgrade.
Instance Attribute Summary collapse
-
#code ⇒ String
Status code of the upgrade.
-
#reason ⇒ String
Reason for this status.
-
#update_time ⇒ String
Last timestamp the status was updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterUpgradeUpgradeStatus
constructor
A new instance of ClusterUpgradeUpgradeStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterUpgradeUpgradeStatus
Returns a new instance of ClusterUpgradeUpgradeStatus.
230 231 232 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 230 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Status code of the upgrade.
Corresponds to the JSON property code
218 219 220 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 218 def code @code end |
#reason ⇒ String
Reason for this status.
Corresponds to the JSON property reason
223 224 225 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 223 def reason @reason end |
#update_time ⇒ String
Last timestamp the status was updated.
Corresponds to the JSON property updateTime
228 229 230 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 228 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
235 236 237 238 239 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 235 def update!(**args) @code = args[:code] if args.key?(:code) @reason = args[:reason] if args.key?(:reason) @update_time = args[:update_time] if args.key?(:update_time) end |