Class: Google::Apis::GkehubV1beta::ClusterUpgradeIgnoredMembership

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

IgnoredMembership represents a membership ignored by the feature. A membership can be ignored because it was manually upgraded to a newer version than RC default.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeIgnoredMembership

Returns a new instance of ClusterUpgradeIgnoredMembership.



632
633
634
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 632

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

Instance Attribute Details

#ignored_timeString

Time when the membership was first set to ignored. Corresponds to the JSON property ignoredTime

Returns:

  • (String)


625
626
627
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 625

def ignored_time
  @ignored_time
end

#reasonString

Reason why the membership is ignored. Corresponds to the JSON property reason

Returns:

  • (String)


630
631
632
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 630

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



637
638
639
640
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 637

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