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.



8579
8580
8581
# File 'lib/google/apis/dlp_v2/classes.rb', line 8579

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)


8572
8573
8574
# File 'lib/google/apis/dlp_v2/classes.rb', line 8572

def password_secret_version_name
  @password_secret_version_name
end

#usernameString

Required. The username. Corresponds to the JSON property username

Returns:

  • (String)


8577
8578
8579
# File 'lib/google/apis/dlp_v2/classes.rb', line 8577

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8584
8585
8586
8587
# File 'lib/google/apis/dlp_v2/classes.rb', line 8584

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