Class: Google::Apis::BigqueryconnectionV1::ConnectorConfigurationAuthentication

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

Client authentication.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectorConfigurationAuthentication

Returns a new instance of ConnectorConfigurationAuthentication.



663
664
665
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 663

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

Instance Attribute Details

#service_accountString

Output only. Google-managed service account associated with this connection, e. g., service-project_number@gcp-sa-bigqueryconnection.iam.gserviceaccount. com. BigQuery jobs using this connection will act as service_account identity while connecting to the datasource. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


656
657
658
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 656

def 
  @service_account
end

#username_passwordGoogle::Apis::BigqueryconnectionV1::ConnectorConfigurationUsernamePassword

Username and Password authentication. Corresponds to the JSON property usernamePassword



661
662
663
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 661

def username_password
  @username_password
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



668
669
670
671
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 668

def update!(**args)
  @service_account = args[:service_account] if args.key?(:service_account)
  @username_password = args[:username_password] if args.key?(:username_password)
end