Class: Google::Apis::BigqueryconnectionV1beta1::Connection

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

Configuration parameters to establish connection with an external data source, except the credential attributes.

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) ⇒ Connection

Returns a new instance of Connection.



328
329
330
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 328

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

Instance Attribute Details

#cloud_sqlGoogle::Apis::BigqueryconnectionV1beta1::CloudSqlProperties

Connection properties specific to the Cloud SQL. Corresponds to the JSON property cloudSql



294
295
296
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 294

def cloud_sql
  @cloud_sql
end

#creation_timeFixnum

Output only. The creation timestamp of the connection. Corresponds to the JSON property creationTime

Returns:

  • (Fixnum)


299
300
301
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 299

def creation_time
  @creation_time
end

#descriptionString

User provided description. Corresponds to the JSON property description

Returns:

  • (String)


304
305
306
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 304

def description
  @description
end

#friendly_nameString

User provided display name for the connection. Corresponds to the JSON property friendlyName

Returns:

  • (String)


309
310
311
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 309

def friendly_name
  @friendly_name
end

#has_credentialBoolean Also known as: has_credential?

Output only. True, if credential is configured for this connection. Corresponds to the JSON property hasCredential

Returns:

  • (Boolean)


314
315
316
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 314

def has_credential
  @has_credential
end

#last_modified_timeFixnum

Output only. The last update timestamp of the connection. Corresponds to the JSON property lastModifiedTime

Returns:

  • (Fixnum)


320
321
322
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 320

def last_modified_time
  @last_modified_time
end

#nameString

The resource name of the connection in the form of: projects/project_id/locations/location_id/connections/connection_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 326

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



333
334
335
336
337
338
339
340
341
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 333

def update!(**args)
  @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @description = args[:description] if args.key?(:description)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
  @has_credential = args[:has_credential] if args.key?(:has_credential)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @name = args[:name] if args.key?(:name)
end