Class: Google::Apis::SecuritycenterV1beta2::Secret

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Details about a secret or credential associated with the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Secret

Returns a new instance of Secret.



12138
12139
12140
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12138

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#environment_variableGoogle::Apis::SecuritycenterV1beta2::SecretEnvironmentVariable

Environment variable containing the secret. Corresponds to the JSON property environmentVariable



12121
12122
12123
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12121

def environment_variable
  @environment_variable
end

#file_pathGoogle::Apis::SecuritycenterV1beta2::SecretFilePath

File path containing the secret. Corresponds to the JSON property filePath



12126
12127
12128
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12126

def file_path
  @file_path
end

#statusGoogle::Apis::SecuritycenterV1beta2::SecretStatus

The status of the secret. Corresponds to the JSON property status



12131
12132
12133
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12131

def status
  @status
end

#typeString

The type of secret, for example, GCP_API_KEY. Corresponds to the JSON property type

Returns:

  • (String)


12136
12137
12138
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12136

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12143
12144
12145
12146
12147
12148
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12143

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