Class: Google::Apis::DatastreamV1::SourceConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb

Overview

The configuration of the stream source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceConfig

Returns a new instance of SourceConfig.



2310
2311
2312
# File 'lib/google/apis/datastream_v1/classes.rb', line 2310

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

Instance Attribute Details

#mysql_source_configGoogle::Apis::DatastreamV1::MysqlSourceConfig

MySQL source configuration Corresponds to the JSON property mysqlSourceConfig



2287
2288
2289
# File 'lib/google/apis/datastream_v1/classes.rb', line 2287

def mysql_source_config
  @mysql_source_config
end

#oracle_source_configGoogle::Apis::DatastreamV1::OracleSourceConfig

Oracle data source configuration Corresponds to the JSON property oracleSourceConfig



2292
2293
2294
# File 'lib/google/apis/datastream_v1/classes.rb', line 2292

def oracle_source_config
  @oracle_source_config
end

#postgresql_source_configGoogle::Apis::DatastreamV1::PostgresqlSourceConfig

PostgreSQL data source configuration Corresponds to the JSON property postgresqlSourceConfig



2297
2298
2299
# File 'lib/google/apis/datastream_v1/classes.rb', line 2297

def postgresql_source_config
  @postgresql_source_config
end

#source_connection_profileString

Required. Source connection profile resoource. Format: projects/project/ locations/location/connectionProfiles/name` Corresponds to the JSON propertysourceConnectionProfile`

Returns:

  • (String)


2303
2304
2305
# File 'lib/google/apis/datastream_v1/classes.rb', line 2303

def source_connection_profile
  @source_connection_profile
end

#sql_server_source_configGoogle::Apis::DatastreamV1::SqlServerSourceConfig

SQLServer data source configuration Corresponds to the JSON property sqlServerSourceConfig



2308
2309
2310
# File 'lib/google/apis/datastream_v1/classes.rb', line 2308

def sql_server_source_config
  @sql_server_source_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2315
2316
2317
2318
2319
2320
2321
# File 'lib/google/apis/datastream_v1/classes.rb', line 2315

def update!(**args)
  @mysql_source_config = args[:mysql_source_config] if args.key?(:mysql_source_config)
  @oracle_source_config = args[:oracle_source_config] if args.key?(:oracle_source_config)
  @postgresql_source_config = args[:postgresql_source_config] if args.key?(:postgresql_source_config)
  @source_connection_profile = args[:source_connection_profile] if args.key?(:source_connection_profile)
  @sql_server_source_config = args[:sql_server_source_config] if args.key?(:sql_server_source_config)
end