Class: Google::Apis::AlloydbV1alpha::InstanceUpgradeDetails

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

Overview

Details regarding the upgrade of instances associated with a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceUpgradeDetails

Returns a new instance of InstanceUpgradeDetails.



2340
2341
2342
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2340

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

Instance Attribute Details

#instance_typeString

Instance type. Corresponds to the JSON property instanceType

Returns:

  • (String)


2328
2329
2330
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2328

def instance_type
  @instance_type
end

#nameString

Normalized name of the instance. Corresponds to the JSON property name

Returns:

  • (String)


2333
2334
2335
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2333

def name
  @name
end

#upgrade_statusString

Upgrade status of the instance. Corresponds to the JSON property upgradeStatus

Returns:

  • (String)


2338
2339
2340
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2338

def upgrade_status
  @upgrade_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2345
2346
2347
2348
2349
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2345

def update!(**args)
  @instance_type = args[:instance_type] if args.key?(:instance_type)
  @name = args[:name] if args.key?(:name)
  @upgrade_status = args[:upgrade_status] if args.key?(:upgrade_status)
end