Class: Google::Apis::SecuritycenterV1beta1::Secret

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/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.



13022
13023
13024
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 13022

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

Instance Attribute Details

#environment_variableGoogle::Apis::SecuritycenterV1beta1::SecretEnvironmentVariable

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



13005
13006
13007
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 13005

def environment_variable
  @environment_variable
end

#file_pathGoogle::Apis::SecuritycenterV1beta1::SecretFilePath

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



13010
13011
13012
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 13010

def file_path
  @file_path
end

#statusGoogle::Apis::SecuritycenterV1beta1::SecretStatus

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



13015
13016
13017
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 13015

def status
  @status
end

#typeString

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

Returns:

  • (String)


13020
13021
13022
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 13020

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13027
13028
13029
13030
13031
13032
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 13027

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