Class: Google::Apis::SqladminV1::ImportContext::SqlImportOptions::PostgresImportOptions

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

Optional. Options for importing from a Cloud SQL for PostgreSQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgresImportOptions

Returns a new instance of PostgresImportOptions.



2265
2266
2267
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2265

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

Instance Attribute Details

#cleanBoolean Also known as: clean?

Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel. Corresponds to the JSON property clean

Returns:

  • (Boolean)


2255
2256
2257
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2255

def clean
  @clean
end

#if_existsBoolean Also known as: if_exists?

Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel. Corresponds to the JSON property ifExists

Returns:

  • (Boolean)


2262
2263
2264
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2262

def if_exists
  @if_exists
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2270
2271
2272
2273
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2270

def update!(**args)
  @clean = args[:clean] if args.key?(:clean)
  @if_exists = args[:if_exists] if args.key?(:if_exists)
end