Class: Google::Apis::BigqueryconnectionV1::CloudSqlProperties

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

Overview

Connection properties specific to the Cloud SQL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlProperties

Returns a new instance of CloudSqlProperties.



449
450
451
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 449

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

Instance Attribute Details

#credentialGoogle::Apis::BigqueryconnectionV1::CloudSqlCredential

Credential info for the Cloud SQL. Corresponds to the JSON property credential



424
425
426
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 424

def credential
  @credential
end

#databaseString

Database name. Corresponds to the JSON property database

Returns:

  • (String)


429
430
431
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 429

def database
  @database
end

#instance_idString

Cloud SQL instance ID in the form project:location:instance. Corresponds to the JSON property instanceId

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 434

def instance_id
  @instance_id
end

#service_account_idString

Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection. Corresponds to the JSON property serviceAccountId

Returns:

  • (String)


442
443
444
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 442

def 
  @service_account_id
end

#typeString

Type of the Cloud SQL database. Corresponds to the JSON property type

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 447

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



454
455
456
457
458
459
460
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 454

def update!(**args)
  @credential = args[:credential] if args.key?(:credential)
  @database = args[:database] if args.key?(:database)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @service_account_id = args[:service_account_id] if args.key?(:service_account_id)
  @type = args[:type] if args.key?(:type)
end