Class: Google::Apis::GkehubV1::ClusterUpgradeGkeUpgradeState

Inherits:
Object
  • Object
show all
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

GKEUpgradeState is a GKEUpgrade and its state at the scope and fleet level.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeGkeUpgradeState

Returns a new instance of ClusterUpgradeGkeUpgradeState.



564
565
566
# File 'lib/google/apis/gkehub_v1/classes.rb', line 564

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

Instance Attribute Details

#statsHash<String,Fixnum>

Number of GKE clusters in each status code. Corresponds to the JSON property stats

Returns:

  • (Hash<String,Fixnum>)


552
553
554
# File 'lib/google/apis/gkehub_v1/classes.rb', line 552

def stats
  @stats
end

#statusGoogle::Apis::GkehubV1::ClusterUpgradeUpgradeStatus

UpgradeStatus provides status information for each upgrade. Corresponds to the JSON property status



557
558
559
# File 'lib/google/apis/gkehub_v1/classes.rb', line 557

def status
  @status
end

#upgradeGoogle::Apis::GkehubV1::ClusterUpgradeGkeUpgrade

GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade. Corresponds to the JSON property upgrade



562
563
564
# File 'lib/google/apis/gkehub_v1/classes.rb', line 562

def upgrade
  @upgrade
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



569
570
571
572
573
# File 'lib/google/apis/gkehub_v1/classes.rb', line 569

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