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.
13129 13130 13131 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13129 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
13112 13113 13114 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13112 def environment_variable @environment_variable end |
#file_path ⇒ Google::Apis::SecuritycenterV1::SecretFilePath
File path containing the secret.
Corresponds to the JSON property filePath
13117 13118 13119 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13117 def file_path @file_path end |
#status ⇒ Google::Apis::SecuritycenterV1::SecretStatus
The status of the secret.
Corresponds to the JSON property status
13122 13123 13124 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13122 def status @status end |
#type ⇒ String
The type of secret, for example, GCP_API_KEY.
Corresponds to the JSON property type
13127 13128 13129 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13127 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13134 13135 13136 13137 13138 13139 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13134 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 |