Class: Google::Apis::SqladminV1::ImportContext::SqlImportOptions::PostgresImportOptions
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::ImportContext::SqlImportOptions::PostgresImportOptions
- 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
-
#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.
2265 2266 2267 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2265 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
2255 2256 2257 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2255 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
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 |