Class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential

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

Overview

Credential info for the Cloud SQL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlCredential

Returns a new instance of CloudSqlCredential.

[View source]

208
209
210
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 208

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

Instance Attribute Details

#passwordString

The password for the credential. Corresponds to the JSON property password

Returns:

  • (String)

201
202
203
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 201

def password
  @password
end

#usernameString

The username for the credential. Corresponds to the JSON property username

Returns:

  • (String)

206
207
208
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 206

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

213
214
215
216
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 213

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