Class: Google::Apis::GkehubV1::ClusterUpgradeFleetState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::ClusterUpgradeFleetState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb
Overview
ClusterUpgrade: The state for the fleet-level ClusterUpgrade feature.
Instance Attribute Summary collapse
-
#downstream_fleets ⇒ Array<String>
This fleets whose upstream_fleets contain the current fleet.
-
#gke_state ⇒ Google::Apis::GkehubV1::ClusterUpgradeGkeUpgradeFeatureState
GKEUpgradeFeatureState contains feature states for GKE clusters in the scope.
-
#ignored ⇒ Hash<String,Google::Apis::GkehubV1::ClusterUpgradeIgnoredMembership>
A list of memberships ignored by the feature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterUpgradeFleetState
constructor
A new instance of ClusterUpgradeFleetState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterUpgradeFleetState
Returns a new instance of ClusterUpgradeFleetState.
416 417 418 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#downstream_fleets ⇒ Array<String>
This fleets whose upstream_fleets contain the current fleet. The fleet name
should be either fleet project number or id.
Corresponds to the JSON property downstreamFleets
401 402 403 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 401 def downstream_fleets @downstream_fleets end |
#gke_state ⇒ Google::Apis::GkehubV1::ClusterUpgradeGkeUpgradeFeatureState
GKEUpgradeFeatureState contains feature states for GKE clusters in the scope.
Corresponds to the JSON property gkeState
406 407 408 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 406 def gke_state @gke_state end |
#ignored ⇒ Hash<String,Google::Apis::GkehubV1::ClusterUpgradeIgnoredMembership>
A list of memberships ignored by the feature. For example, manually upgraded
clusters can be ignored if they are newer than the default versions of its
release channel. The membership resource is in the format: projects/p/
locations/l/membership/m`.
Corresponds to the JSON propertyignored`
414 415 416 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 414 def ignored @ignored end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
421 422 423 424 425 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 421 def update!(**args) @downstream_fleets = args[:downstream_fleets] if args.key?(:downstream_fleets) @gke_state = args[:gke_state] if args.key?(:gke_state) @ignored = args[:ignored] if args.key?(:ignored) end |