Class: Google::Apis::BigqueryconnectionV1beta1::Connection
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryconnectionV1beta1::Connection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigqueryconnection_v1beta1/classes.rb,
lib/google/apis/bigqueryconnection_v1beta1/representations.rb,
lib/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
-
#cloud_sql ⇒ Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties
Connection properties specific to the Cloud SQL.
-
#creation_time ⇒ Fixnum
Output only.
-
#description ⇒ String
User provided description.
-
#friendly_name ⇒ String
User provided display name for the connection.
-
#has_credential ⇒ Boolean
(also: #has_credential?)
Output only.
-
#last_modified_time ⇒ Fixnum
Output only.
-
#name ⇒ String
The resource name of the connection in the form of:
projects/
project_id/ locations/
location_id/connections/
connection_id`Corresponds to the JSON property
name`.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Connection
constructor
A new instance of Connection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Connection
Returns a new instance of Connection.
310 311 312 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 310 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_sql ⇒ Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties
Connection properties specific to the Cloud SQL.
Corresponds to the JSON property cloudSql
276 277 278 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 276 def cloud_sql @cloud_sql end |
#creation_time ⇒ Fixnum
Output only. The creation timestamp of the connection.
Corresponds to the JSON property creationTime
281 282 283 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 281 def creation_time @creation_time end |
#description ⇒ String
User provided description.
Corresponds to the JSON property description
286 287 288 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 286 def description @description end |
#friendly_name ⇒ String
User provided display name for the connection.
Corresponds to the JSON property friendlyName
291 292 293 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 291 def friendly_name @friendly_name end |
#has_credential ⇒ Boolean Also known as: has_credential?
Output only. True, if credential is configured for this connection.
Corresponds to the JSON property hasCredential
296 297 298 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 296 def has_credential @has_credential end |
#last_modified_time ⇒ Fixnum
Output only. The last update timestamp of the connection.
Corresponds to the JSON property lastModifiedTime
302 303 304 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 302 def last_modified_time @last_modified_time end |
#name ⇒ String
The resource name of the connection in the form of: projects/
project_id/
locations/
location_id/connections/
connection_id`
Corresponds to the JSON property
name`
308 309 310 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 308 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
315 316 317 318 319 320 321 322 323 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 315 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 |