Class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeState
- 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
GKEUpgradeState is a GKEUpgrade and its state at the scope and fleet level.
Instance Attribute Summary collapse
-
#stats ⇒ Hash<String,Fixnum>
Number of GKE clusters in each status code.
-
#status ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus
UpgradeStatus provides status information for each upgrade.
-
#upgrade ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade
GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterUpgradeGkeUpgradeState
constructor
A new instance of ClusterUpgradeGkeUpgradeState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterUpgradeGkeUpgradeState
Returns a new instance of ClusterUpgradeGkeUpgradeState.
652 653 654 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 652 def initialize(**args) update!(**args) end |
Instance Attribute Details
#stats ⇒ Hash<String,Fixnum>
Number of GKE clusters in each status code.
Corresponds to the JSON property stats
640 641 642 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 640 def stats @stats end |
#status ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus
UpgradeStatus provides status information for each upgrade.
Corresponds to the JSON property status
645 646 647 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 645 def status @status end |
#upgrade ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade
GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
Corresponds to the JSON property upgrade
650 651 652 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 650 def upgrade @upgrade end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
657 658 659 660 661 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 657 def update!(**args) @stats = args[:stats] if args.key?(:stats) @status = args[:status] if args.key?(:status) @upgrade = args[:upgrade] if args.key?(:upgrade) end |