Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Secret

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) ⇒ GoogleCloudSecuritycenterV2Secret

Returns a new instance of GoogleCloudSecuritycenterV2Secret.



10127
10128
10129
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10127

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

Instance Attribute Details

#environment_variableGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2SecretEnvironmentVariable

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



10110
10111
10112
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10110

def environment_variable
  @environment_variable
end

#file_pathGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2SecretFilePath

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



10115
10116
10117
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10115

def file_path
  @file_path
end

#statusGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2SecretStatus

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



10120
10121
10122
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10120

def status
  @status
end

#typeString

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

Returns:

  • (String)


10125
10126
10127
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10125

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10132
10133
10134
10135
10136
10137
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10132

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