Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec

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

Overview

Specification for the BigQuery connection to a Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec

Returns a new instance of GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec.



492
493
494
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 492

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

Instance Attribute Details

#databaseString

Database name. Corresponds to the JSON property database

Returns:

  • (String)


480
481
482
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 480

def database
  @database
end

#instance_idString

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

Returns:

  • (String)


485
486
487
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 485

def instance_id
  @instance_id
end

#typeString

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

Returns:

  • (String)


490
491
492
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 490

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



497
498
499
500
501
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 497

def update!(**args)
  @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