Class: Google::Apis::DeveloperconnectV1::BasicAuthentication
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::BasicAuthentication
- 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
-
#password_secret_version ⇒ String
The password SecretManager secret version to authenticate as.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicAuthentication
constructor
A new instance of BasicAuthentication.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_version ⇒ String
The password SecretManager secret version to authenticate as.
Corresponds to the JSON property passwordSecretVersion
277 278 279 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 277 def password_secret_version @password_secret_version end |
#username ⇒ String
Required. The username to authenticate as.
Corresponds to the JSON property username
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 |