Class: Google::Apis::ContaineranalysisV1beta1::SecretOccurrence

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

Overview

The occurrence provides details of a secret.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretOccurrence

Returns a new instance of SecretOccurrence.



7052
7053
7054
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 7052

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

Instance Attribute Details

#kindString

Required. Type of secret. Corresponds to the JSON property kind

Returns:

  • (String)


7040
7041
7042
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 7040

def kind
  @kind
end

#locationsArray<Google::Apis::ContaineranalysisV1beta1::SecretLocation>

Optional. Locations where the secret is detected. Corresponds to the JSON property locations



7045
7046
7047
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 7045

def locations
  @locations
end

#statusesArray<Google::Apis::ContaineranalysisV1beta1::SecretStatus>

Optional. Status of the secret. Corresponds to the JSON property statuses



7050
7051
7052
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 7050

def statuses
  @statuses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7057
7058
7059
7060
7061
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 7057

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @locations = args[:locations] if args.key?(:locations)
  @statuses = args[:statuses] if args.key?(:statuses)
end