Class: Google::Apis::ConnectorsV1::UserPassword
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::UserPassword
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
Parameters to support Username and Password Authentication.
Instance Attribute Summary collapse
-
#password ⇒ Google::Apis::ConnectorsV1::Secret
Secret provides a reference to entries in Secret Manager.
-
#username ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserPassword
constructor
A new instance of UserPassword.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserPassword
Returns a new instance of UserPassword.
7226 7227 7228 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 7226 def initialize(**args) update!(**args) end |
Instance Attribute Details
#password ⇒ Google::Apis::ConnectorsV1::Secret
Secret provides a reference to entries in Secret Manager.
Corresponds to the JSON property password
7219 7220 7221 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 7219 def password @password end |
#username ⇒ String
Optional. Username.
Corresponds to the JSON property username
7224 7225 7226 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 7224 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7231 7232 7233 7234 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 7231 def update!(**args) @password = args[:password] if args.key?(:password) @username = args[:username] if args.key?(:username) end |