Class: Google::Apis::BigqueryconnectionV1::Connection
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryconnectionV1::Connection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigqueryconnection_v1/classes.rb,
lib/google/apis/bigqueryconnection_v1/representations.rb,
lib/google/apis/bigqueryconnection_v1/representations.rb
Overview
Configuration parameters to establish connection with an external data source, except the credential attributes.
Instance Attribute Summary collapse
-
#aws ⇒ Google::Apis::BigqueryconnectionV1::AwsProperties
Connection properties specific to Amazon Web Services (AWS).
-
#azure ⇒ Google::Apis::BigqueryconnectionV1::AzureProperties
Container for connection properties specific to Azure.
-
#cloud_resource ⇒ Google::Apis::BigqueryconnectionV1::CloudResourceProperties
Container for connection properties for delegation of access to GCP resources.
-
#cloud_spanner ⇒ Google::Apis::BigqueryconnectionV1::CloudSpannerProperties
Connection properties specific to Cloud Spanner.
-
#cloud_sql ⇒ Google::Apis::BigqueryconnectionV1::CloudSqlProperties
Connection properties specific to the Cloud SQL.
-
#configuration ⇒ Google::Apis::BigqueryconnectionV1::ConnectorConfiguration
Represents concrete parameter values for Connector Configuration.
-
#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.
-
#kms_key_name ⇒ String
Optional.
-
#last_modified_time ⇒ Fixnum
Output only.
-
#name ⇒ String
Output only.
-
#salesforce_data_cloud ⇒ Google::Apis::BigqueryconnectionV1::SalesforceDataCloudProperties
Connection properties specific to Salesforce DataCloud.
-
#spark ⇒ Google::Apis::BigqueryconnectionV1::SparkProperties
Container for connection properties to execute stored procedures for Apache Spark.
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.
549 550 551 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aws ⇒ Google::Apis::BigqueryconnectionV1::AwsProperties
Connection properties specific to Amazon Web Services (AWS).
Corresponds to the JSON property aws
471 472 473 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 471 def aws @aws end |
#azure ⇒ Google::Apis::BigqueryconnectionV1::AzureProperties
Container for connection properties specific to Azure.
Corresponds to the JSON property azure
476 477 478 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 476 def azure @azure end |
#cloud_resource ⇒ Google::Apis::BigqueryconnectionV1::CloudResourceProperties
Container for connection properties for delegation of access to GCP resources.
Corresponds to the JSON property cloudResource
481 482 483 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 481 def cloud_resource @cloud_resource end |
#cloud_spanner ⇒ Google::Apis::BigqueryconnectionV1::CloudSpannerProperties
Connection properties specific to Cloud Spanner.
Corresponds to the JSON property cloudSpanner
486 487 488 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 486 def cloud_spanner @cloud_spanner end |
#cloud_sql ⇒ Google::Apis::BigqueryconnectionV1::CloudSqlProperties
Connection properties specific to the Cloud SQL.
Corresponds to the JSON property cloudSql
491 492 493 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 491 def cloud_sql @cloud_sql end |
#configuration ⇒ Google::Apis::BigqueryconnectionV1::ConnectorConfiguration
Represents concrete parameter values for Connector Configuration.
Corresponds to the JSON property configuration
496 497 498 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 496 def configuration @configuration end |
#creation_time ⇒ Fixnum
Output only. The creation timestamp of the connection.
Corresponds to the JSON property creationTime
501 502 503 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 501 def creation_time @creation_time end |
#description ⇒ String
User provided description.
Corresponds to the JSON property description
506 507 508 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 506 def description @description end |
#friendly_name ⇒ String
User provided display name for the connection.
Corresponds to the JSON property friendlyName
511 512 513 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 511 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
516 517 518 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 516 def has_credential @has_credential end |
#kms_key_name ⇒ String
Optional. The Cloud KMS key that is used for credentials encryption. If
omitted, internal Google owned encryption keys are used. Example: projects/[
kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
Corresponds to the JSON property kmsKeyName
524 525 526 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 524 def kms_key_name @kms_key_name end |
#last_modified_time ⇒ Fixnum
Output only. The last update timestamp of the connection.
Corresponds to the JSON property lastModifiedTime
529 530 531 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 529 def last_modified_time @last_modified_time end |
#name ⇒ String
Output only. 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`
535 536 537 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 535 def name @name end |
#salesforce_data_cloud ⇒ Google::Apis::BigqueryconnectionV1::SalesforceDataCloudProperties
Connection properties specific to Salesforce DataCloud. This is intended for
use only by Salesforce partner projects.
Corresponds to the JSON property salesforceDataCloud
541 542 543 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 541 def salesforce_data_cloud @salesforce_data_cloud end |
#spark ⇒ Google::Apis::BigqueryconnectionV1::SparkProperties
Container for connection properties to execute stored procedures for Apache
Spark.
Corresponds to the JSON property spark
547 548 549 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 547 def spark @spark end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 554 def update!(**args) @aws = args[:aws] if args.key?(:aws) @azure = args[:azure] if args.key?(:azure) @cloud_resource = args[:cloud_resource] if args.key?(:cloud_resource) @cloud_spanner = args[:cloud_spanner] if args.key?(:cloud_spanner) @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql) @configuration = args[:configuration] if args.key?(:configuration) @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) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) @name = args[:name] if args.key?(:name) @salesforce_data_cloud = args[:salesforce_data_cloud] if args.key?(:salesforce_data_cloud) @spark = args[:spark] if args.key?(:spark) end |