Class: Google::Apis::BigqueryconnectionV1::Connection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#awsGoogle::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

#azureGoogle::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_resourceGoogle::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_spannerGoogle::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_sqlGoogle::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

#configurationGoogle::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_timeFixnum

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

Returns:

  • (Fixnum)


501
502
503
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 501

def creation_time
  @creation_time
end

#descriptionString

User provided description. Corresponds to the JSON property description

Returns:

  • (String)


506
507
508
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 506

def description
  @description
end

#friendly_nameString

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

Returns:

  • (String)


511
512
513
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 511

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)


516
517
518
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 516

def has_credential
  @has_credential
end

#kms_key_nameString

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

Returns:

  • (String)


524
525
526
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 524

def kms_key_name
  @kms_key_name
end

#last_modified_timeFixnum

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

Returns:

  • (Fixnum)


529
530
531
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 529

def last_modified_time
  @last_modified_time
end

#nameString

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 propertyname`

Returns:

  • (String)


535
536
537
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 535

def name
  @name
end

#salesforce_data_cloudGoogle::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

#sparkGoogle::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