Class: Google::Apis::ConnectorsV1::UserPassword

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserPassword

Returns a new instance of UserPassword.



7819
7820
7821
# File 'lib/google/apis/connectors_v1/classes.rb', line 7819

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

Instance Attribute Details

#passwordGoogle::Apis::ConnectorsV1::Secret

Secret provides a reference to entries in Secret Manager. Corresponds to the JSON property password



7812
7813
7814
# File 'lib/google/apis/connectors_v1/classes.rb', line 7812

def password
  @password
end

#usernameString

Optional. Username. Corresponds to the JSON property username

Returns:

  • (String)


7817
7818
7819
# File 'lib/google/apis/connectors_v1/classes.rb', line 7817

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7824
7825
7826
7827
# File 'lib/google/apis/connectors_v1/classes.rb', line 7824

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