Class: Google::Apis::AlloydbV1::UpgradeClusterStatus

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

Overview

Message for current status of the Major Version Upgrade operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeClusterStatus

Returns a new instance of UpgradeClusterStatus.



5347
5348
5349
# File 'lib/google/apis/alloydb_v1/classes.rb', line 5347

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

Instance Attribute Details

#cancellableBoolean Also known as: cancellable?

Whether the operation is cancellable. Corresponds to the JSON property cancellable

Returns:

  • (Boolean)


5324
5325
5326
# File 'lib/google/apis/alloydb_v1/classes.rb', line 5324

def cancellable
  @cancellable
end

#source_versionString

Source database major version. Corresponds to the JSON property sourceVersion

Returns:

  • (String)


5330
5331
5332
# File 'lib/google/apis/alloydb_v1/classes.rb', line 5330

def source_version
  @source_version
end

#stagesArray<Google::Apis::AlloydbV1::StageStatus>

Status of all upgrade stages. Corresponds to the JSON property stages



5335
5336
5337
# File 'lib/google/apis/alloydb_v1/classes.rb', line 5335

def stages
  @stages
end

#stateString

Cluster Major Version Upgrade state. Corresponds to the JSON property state

Returns:

  • (String)


5340
5341
5342
# File 'lib/google/apis/alloydb_v1/classes.rb', line 5340

def state
  @state
end

#target_versionString

Target database major version. Corresponds to the JSON property targetVersion

Returns:

  • (String)


5345
5346
5347
# File 'lib/google/apis/alloydb_v1/classes.rb', line 5345

def target_version
  @target_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5352
5353
5354
5355
5356
5357
5358
# File 'lib/google/apis/alloydb_v1/classes.rb', line 5352

def update!(**args)
  @cancellable = args[:cancellable] if args.key?(:cancellable)
  @source_version = args[:source_version] if args.key?(:source_version)
  @stages = args[:stages] if args.key?(:stages)
  @state = args[:state] if args.key?(:state)
  @target_version = args[:target_version] if args.key?(:target_version)
end