Class: Google::Apis::DlpV2::GooglePrivacyDlpV2SecretManagerCredential
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2SecretManagerCredential
- 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
-
#password_secret_version_name ⇒ String
Required.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2SecretManagerCredential
constructor
A new instance of GooglePrivacyDlpV2SecretManagerCredential.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
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
9024 9025 9026 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 9024 def password_secret_version_name @password_secret_version_name end |
#username ⇒ String
Required. The username.
Corresponds to the JSON property username
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 |