Class: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/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.



2218
2219
2220
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2218

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)


2208
2209
2210
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2208

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)


2215
2216
2217
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2215

def if_exists
  @if_exists
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2223
2224
2225
2226
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2223

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