Class: Google::Apis::ContaineranalysisV1::SecretOccurrence

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



6840
6841
6842
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6840

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


6828
6829
6830
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6828

def kind
  @kind
end

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

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



6833
6834
6835
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6833

def locations
  @locations
end

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

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



6838
6839
6840
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6838

def statuses
  @statuses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6845
6846
6847
6848
6849
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6845

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