Class: Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipState

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

Per-membership state for this feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeMembershipState

Returns a new instance of ClusterUpgradeMembershipState.



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

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

Instance Attribute Details

#fleetString

Project number or id of the fleet. It is set only for Memberships that are part of fleet-based Rollout Sequencing. Corresponds to the JSON property fleet

Returns:

  • (String)


673
674
675
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 673

def fleet
  @fleet
end

#ignoredGoogle::Apis::GkehubV1alpha::ClusterUpgradeIgnoredMembership

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. Corresponds to the JSON property ignored



680
681
682
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 680

def ignored
  @ignored
end

#scopesArray<String>

Fully qualified scope names that this clusters is bound to which also have rollout sequencing enabled. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


686
687
688
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 686

def scopes
  @scopes
end

#upgradesArray<Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipGkeUpgradeState>

Actual upgrade state against desired. Corresponds to the JSON property upgrades



691
692
693
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 691

def upgrades
  @upgrades
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



698
699
700
701
702
703
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 698

def update!(**args)
  @fleet = args[:fleet] if args.key?(:fleet)
  @ignored = args[:ignored] if args.key?(:ignored)
  @scopes = args[:scopes] if args.key?(:scopes)
  @upgrades = args[:upgrades] if args.key?(:upgrades)
end