Class: Google::Apis::SecuritycenterV1::Secret
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::Secret
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Overview
Details about a secret or credential associated with the finding.
Instance Attribute Summary collapse
-
#environment_variable ⇒ Google::Apis::SecuritycenterV1::SecretEnvironmentVariable
Environment variable containing the secret.
-
#file_path ⇒ Google::Apis::SecuritycenterV1::SecretFilePath
File path containing the secret.
-
#status ⇒ Google::Apis::SecuritycenterV1::SecretStatus
The status of the secret.
-
#type ⇒ String
The type of secret, for example, GCP_API_KEY.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Secret
constructor
A new instance of Secret.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Secret
Returns a new instance of Secret.
13931 13932 13933 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13931 def initialize(**args) update!(**args) end |
Instance Attribute Details
#environment_variable ⇒ Google::Apis::SecuritycenterV1::SecretEnvironmentVariable
Environment variable containing the secret.
Corresponds to the JSON property environmentVariable
13914 13915 13916 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13914 def environment_variable @environment_variable end |
#file_path ⇒ Google::Apis::SecuritycenterV1::SecretFilePath
File path containing the secret.
Corresponds to the JSON property filePath
13919 13920 13921 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13919 def file_path @file_path end |
#status ⇒ Google::Apis::SecuritycenterV1::SecretStatus
The status of the secret.
Corresponds to the JSON property status
13924 13925 13926 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13924 def status @status end |
#type ⇒ String
The type of secret, for example, GCP_API_KEY.
Corresponds to the JSON property type
13929 13930 13931 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13929 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13936 13937 13938 13939 13940 13941 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13936 def update!(**args) @environment_variable = args[:environment_variable] if args.key?(:environment_variable) @file_path = args[:file_path] if args.key?(:file_path) @status = args[:status] if args.key?(:status) @type = args[:type] if args.key?(:type) end |