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.



389
390
391
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 389

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

Instance Attribute Details

#databaseString

Database name. Corresponds to the JSON property database

Returns:

  • (String)


377
378
379
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 377

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)


382
383
384
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 382

def instance_id
  @instance_id
end

#typeString

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

Returns:

  • (String)


387
388
389
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 387

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
397
398
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 394

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