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

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 data from SQL statements.

Defined Under Namespace

Classes: PostgresImportOptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlImportOptions

Returns a new instance of SqlImportOptions.



2189
2190
2191
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2189

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

Instance Attribute Details

#parallelBoolean Also known as: parallel?

Optional. Whether or not the import should be parallel. Corresponds to the JSON property parallel

Returns:

  • (Boolean)


2176
2177
2178
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2176

def parallel
  @parallel
end

#postgres_import_optionsGoogle::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions

Optional. Options for importing from a Cloud SQL for PostgreSQL instance. Corresponds to the JSON property postgresImportOptions



2182
2183
2184
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2182

def postgres_import_options
  @postgres_import_options
end

#threadsFixnum

Optional. The number of threads to use for parallel import. Corresponds to the JSON property threads

Returns:

  • (Fixnum)


2187
2188
2189
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2187

def threads
  @threads
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2194
2195
2196
2197
2198
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 2194

def update!(**args)
  @parallel = args[:parallel] if args.key?(:parallel)
  @postgres_import_options = args[:postgres_import_options] if args.key?(:postgres_import_options)
  @threads = args[:threads] if args.key?(:threads)
end