Class: Google::Apis::SqladminV1::ImportContext::SqlImportOptions
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::ImportContext::SqlImportOptions
- 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 data from SQL statements.
Defined Under Namespace
Classes: PostgresImportOptions
Instance Attribute Summary collapse
-
#parallel ⇒ Boolean
(also: #parallel?)
Optional.
-
#postgres_import_options ⇒ Google::Apis::SqladminV1::ImportContext::SqlImportOptions::PostgresImportOptions
Optional.
-
#threads ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SqlImportOptions
constructor
A new instance of SqlImportOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SqlImportOptions
Returns a new instance of SqlImportOptions.
2837 2838 2839 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2837 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parallel ⇒ Boolean Also known as: parallel?
Optional. Whether or not the import should be parallel.
Corresponds to the JSON property parallel
2824 2825 2826 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2824 def parallel @parallel end |
#postgres_import_options ⇒ Google::Apis::SqladminV1::ImportContext::SqlImportOptions::PostgresImportOptions
Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
Corresponds to the JSON property postgresImportOptions
2830 2831 2832 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2830 def end |
#threads ⇒ Fixnum
Optional. The number of threads to use for parallel import.
Corresponds to the JSON property threads
2835 2836 2837 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2835 def threads @threads end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2842 2843 2844 2845 2846 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2842 def update!(**args) @parallel = args[:parallel] if args.key?(:parallel) = args[:postgres_import_options] if args.key?(:postgres_import_options) @threads = args[:threads] if args.key?(:threads) end |