Class: Google::Apis::BigqueryconnectionV1::ConnectorConfigurationUsernamePassword

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

Username and Password authentication.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectorConfigurationUsernamePassword

Returns a new instance of ConnectorConfigurationUsernamePassword.



773
774
775
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 773

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

Instance Attribute Details

#passwordGoogle::Apis::BigqueryconnectionV1::ConnectorConfigurationSecret

Secret value parameter. Corresponds to the JSON property password



766
767
768
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 766

def password
  @password
end

#usernameString

Required. Username. Corresponds to the JSON property username

Returns:

  • (String)


771
772
773
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 771

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



778
779
780
781
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 778

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