Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1BigQueryConnectionSpec

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1BigQueryConnectionSpec

Returns a new instance of GoogleCloudDatacatalogV1BigQueryConnectionSpec.



264
265
266
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 264

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

Instance Attribute Details

#cloud_sqlGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec

Specification for the BigQuery connection to a Cloud SQL instance. Corresponds to the JSON property cloudSql



250
251
252
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 250

def cloud_sql
  @cloud_sql
end

#connection_typeString

The type of the BigQuery connection. Corresponds to the JSON property connectionType

Returns:

  • (String)


255
256
257
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 255

def connection_type
  @connection_type
end

#has_credentialBoolean Also known as: has_credential?

True if there are credentials attached to the BigQuery connection; false otherwise. Corresponds to the JSON property hasCredential

Returns:

  • (Boolean)


261
262
263
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 261

def has_credential
  @has_credential
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



269
270
271
272
273
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 269

def update!(**args)
  @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql)
  @connection_type = args[:connection_type] if args.key?(:connection_type)
  @has_credential = args[:has_credential] if args.key?(:has_credential)
end