Class: Google::Apis::SqladminV1::PreCheckMajorVersionUpgradeContext

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

Overview

Pre-check major version upgrade context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreCheckMajorVersionUpgradeContext

Returns a new instance of PreCheckMajorVersionUpgradeContext.



4515
4516
4517
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4515

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

Instance Attribute Details

#kindString

Optional. This is always sql#preCheckMajorVersionUpgradeContext. Corresponds to the JSON property kind

Returns:

  • (String)


4503
4504
4505
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4503

def kind
  @kind
end

#pre_check_responseArray<Google::Apis::SqladminV1::PreCheckResponse>

Output only. The responses from the precheck operation. Corresponds to the JSON property preCheckResponse



4508
4509
4510
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4508

def pre_check_response
  @pre_check_response
end

#target_database_versionString

Required. The target database version to upgrade to. Corresponds to the JSON property targetDatabaseVersion

Returns:

  • (String)


4513
4514
4515
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4513

def target_database_version
  @target_database_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4520
4521
4522
4523
4524
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4520

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @pre_check_response = args[:pre_check_response] if args.key?(:pre_check_response)
  @target_database_version = args[:target_database_version] if args.key?(:target_database_version)
end