Class: Google::Apis::AlloydbV1::StageInfo

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

Stage information for different stages in the upgrade process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StageInfo

Returns a new instance of StageInfo.



2406
2407
2408
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2406

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

Instance Attribute Details

#logs_urlString

logs_url is the URL for the logs associated with a stage if that stage has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK, PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE. Corresponds to the JSON property logsUrl

Returns:

  • (String)


2394
2395
2396
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2394

def logs_url
  @logs_url
end

#stageString

The stage. Corresponds to the JSON property stage

Returns:

  • (String)


2399
2400
2401
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2399

def stage
  @stage
end

#statusString

Status of the stage. Corresponds to the JSON property status

Returns:

  • (String)


2404
2405
2406
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2404

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2411
2412
2413
2414
2415
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2411

def update!(**args)
  @logs_url = args[:logs_url] if args.key?(:logs_url)
  @stage = args[:stage] if args.key?(:stage)
  @status = args[:status] if args.key?(:status)
end