Class: Google::Apis::DlpV2::GooglePrivacyDlpV2SecretManagerCredential

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

Overview

A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager charges apply.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2SecretManagerCredential

Returns a new instance of GooglePrivacyDlpV2SecretManagerCredential.



8552
8553
8554
# File 'lib/google/apis/dlp_v2/classes.rb', line 8552

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

Instance Attribute Details

#password_secret_version_nameString

Required. The name of the Secret Manager resource that stores the password, in the form projects/project-id/secrets/secret-name/versions/version. Corresponds to the JSON property passwordSecretVersionName

Returns:

  • (String)


8545
8546
8547
# File 'lib/google/apis/dlp_v2/classes.rb', line 8545

def password_secret_version_name
  @password_secret_version_name
end

#usernameString

Required. The username. Corresponds to the JSON property username

Returns:

  • (String)


8550
8551
8552
# File 'lib/google/apis/dlp_v2/classes.rb', line 8550

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8557
8558
8559
8560
# File 'lib/google/apis/dlp_v2/classes.rb', line 8557

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