Class: Google::Apis::GkehubV1::ClusterUpgradeUpgradeStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb

Overview

UpgradeStatus provides status information for each upgrade.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeUpgradeStatus

Returns a new instance of ClusterUpgradeUpgradeStatus.



695
696
697
# File 'lib/google/apis/gkehub_v1/classes.rb', line 695

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

Status code of the upgrade. Corresponds to the JSON property code

Returns:

  • (String)


683
684
685
# File 'lib/google/apis/gkehub_v1/classes.rb', line 683

def code
  @code
end

#reasonString

Reason for this status. Corresponds to the JSON property reason

Returns:

  • (String)


688
689
690
# File 'lib/google/apis/gkehub_v1/classes.rb', line 688

def reason
  @reason
end

#update_timeString

Last timestamp the status was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


693
694
695
# File 'lib/google/apis/gkehub_v1/classes.rb', line 693

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



700
701
702
703
704
# File 'lib/google/apis/gkehub_v1/classes.rb', line 700

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