Class: Google::Apis::SqladminV1::ExportContext::SqlExportOptions::PostgresExportOptions

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

Options for exporting from a Cloud SQL for PostgreSQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgresExportOptions

Returns a new instance of PostgresExportOptions.



1744
1745
1746
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1744

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

Instance Attribute Details

#cleanBoolean Also known as: clean?

Optional. Use this option to include DROP SQL statements. These statements are used to delete database objects before running the import operation. Corresponds to the JSON property clean

Returns:

  • (Boolean)


1734
1735
1736
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1734

def clean
  @clean
end

#if_existsBoolean Also known as: if_exists?

Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean. Corresponds to the JSON property ifExists

Returns:

  • (Boolean)


1741
1742
1743
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1741

def if_exists
  @if_exists
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1749
1750
1751
1752
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1749

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