Class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureCondition

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

GKEUpgradeFeatureCondition describes the condition of the feature for GKE clusters at a certain point of time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeGkeUpgradeFeatureCondition

Returns a new instance of ClusterUpgradeGkeUpgradeFeatureCondition.



565
566
567
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 565

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

Instance Attribute Details

#reasonString

Reason why the feature is in this status. Corresponds to the JSON property reason

Returns:

  • (String)


548
549
550
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 548

def reason
  @reason
end

#statusString

Status of the condition, one of True, False, Unknown. Corresponds to the JSON property status

Returns:

  • (String)


553
554
555
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 553

def status
  @status
end

#typeString

Type of the condition, for example, "ready". Corresponds to the JSON property type

Returns:

  • (String)


558
559
560
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 558

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


563
564
565
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 563

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



570
571
572
573
574
575
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 570

def update!(**args)
  @reason = args[:reason] if args.key?(:reason)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end