Class: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions
- 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
-
#clean ⇒ Boolean
(also: #clean?)
Optional.
-
#if_exists ⇒ Boolean
(also: #if_exists?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostgresImportOptions
constructor
A new instance of PostgresImportOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#clean ⇒ Boolean 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
2208 2209 2210 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2208 def clean @clean end |
#if_exists ⇒ Boolean 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
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 |