Class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties

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

Overview

Connection properties specific to the Cloud SQL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CloudSqlProperties

Returns a new instance of CloudSqlProperties.



273
274
275
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 273

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

Instance Attribute Details

#credentialGoogle::Apis::BigqueryconnectionV1beta1::CloudSqlCredential

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



256
257
258
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 256

def credential
  @credential
end

#databaseString

Database name. Corresponds to the JSON property database

Returns:

  • (String)


261
262
263
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 261

def database
  @database
end

#instance_idString

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

Returns:

  • (String)


266
267
268
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 266

def instance_id
  @instance_id
end

#typeString

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

Returns:

  • (String)


271
272
273
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 271

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



278
279
280
281
282
283
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 278

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)
  @type = args[:type] if args.key?(:type)
end