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.



7872
7873
7874
# File 'lib/google/apis/dlp_v2/classes.rb', line 7872

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)


7865
7866
7867
# File 'lib/google/apis/dlp_v2/classes.rb', line 7865

def password_secret_version_name
  @password_secret_version_name
end

#usernameString

Required. The username. Corresponds to the JSON property username

Returns:

  • (String)


7870
7871
7872
# File 'lib/google/apis/dlp_v2/classes.rb', line 7870

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7877
7878
7879
7880
# File 'lib/google/apis/dlp_v2/classes.rb', line 7877

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