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.



9031
9032
9033
# File 'lib/google/apis/dlp_v2/classes.rb', line 9031

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)


9024
9025
9026
# File 'lib/google/apis/dlp_v2/classes.rb', line 9024

def password_secret_version_name
  @password_secret_version_name
end

#usernameString

Required. The username. Corresponds to the JSON property username

Returns:

  • (String)


9029
9030
9031
# File 'lib/google/apis/dlp_v2/classes.rb', line 9029

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9036
9037
9038
9039
# File 'lib/google/apis/dlp_v2/classes.rb', line 9036

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