Class: Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/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.



865
866
867
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 865

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


853
854
855
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 853

def code
  @code
end

#reasonString

Reason for this status. Corresponds to the JSON property reason

Returns:

  • (String)


858
859
860
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 858

def reason
  @reason
end

#update_timeString

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

Returns:

  • (String)


863
864
865
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 863

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



870
871
872
873
874
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 870

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