Class: Google::Apis::DeveloperconnectV1::BasicAuthentication

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/developerconnect_v1/classes.rb,
lib/google/apis/developerconnect_v1/representations.rb,
lib/google/apis/developerconnect_v1/representations.rb

Overview

Basic authentication with username and password.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BasicAuthentication

Returns a new instance of BasicAuthentication.



284
285
286
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 284

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

Instance Attribute Details

#password_secret_versionString

The password SecretManager secret version to authenticate as. Corresponds to the JSON property passwordSecretVersion

Returns:

  • (String)


277
278
279
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 277

def password_secret_version
  @password_secret_version
end

#usernameString

Required. The username to authenticate as. Corresponds to the JSON property username

Returns:

  • (String)


282
283
284
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 282

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



289
290
291
292
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 289

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