Class: Google::Apis::ContainerV1beta1::RollbackSafeUpgradeStatus

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

RollbackSafeUpgradeStatus contains the rollback-safe upgrade status of a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RollbackSafeUpgradeStatus

Returns a new instance of RollbackSafeUpgradeStatus.



8568
8569
8570
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8568

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

Instance Attribute Details

#control_plane_upgrade_rollback_end_timeString

The rollback-safe mode expiration time. Corresponds to the JSON property controlPlaneUpgradeRollbackEndTime

Returns:

  • (String)


8556
8557
8558
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8556

def control_plane_upgrade_rollback_end_time
  @control_plane_upgrade_rollback_end_time
end

#modeString

The mode of the rollback-safe upgrade. Corresponds to the JSON property mode

Returns:

  • (String)


8561
8562
8563
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8561

def mode
  @mode
end

#previous_versionString

The GKE version that the cluster previously used before step-one upgrade. Corresponds to the JSON property previousVersion

Returns:

  • (String)


8566
8567
8568
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8566

def previous_version
  @previous_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8573
8574
8575
8576
8577
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8573

def update!(**args)
  @control_plane_upgrade_rollback_end_time = args[:control_plane_upgrade_rollback_end_time] if args.key?(:control_plane_upgrade_rollback_end_time)
  @mode = args[:mode] if args.key?(:mode)
  @previous_version = args[:previous_version] if args.key?(:previous_version)
end