Class: Google::Apis::GkehubV1beta::ClusterUpgradeGkeUpgradeFeatureCondition

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



517
518
519
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 517

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)


500
501
502
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 500

def reason
  @reason
end

#statusString

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

Returns:

  • (String)


505
506
507
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 505

def status
  @status
end

#typeString

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

Returns:

  • (String)


510
511
512
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 510

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


515
516
517
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 515

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



522
523
524
525
526
527
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 522

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