Class: Google::Apis::ContaineranalysisV1alpha1::SecretOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::SecretOccurrence
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb
Overview
The occurrence provides details of a secret.
Instance Attribute Summary collapse
-
#kind ⇒ String
Required.
-
#locations ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::SecretLocation>
Optional.
-
#statuses ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::SecretStatus>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecretOccurrence
constructor
A new instance of SecretOccurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecretOccurrence
Returns a new instance of SecretOccurrence.
7413 7414 7415 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7413 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Required. Type of secret.
Corresponds to the JSON property kind
7401 7402 7403 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7401 def kind @kind end |
#locations ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::SecretLocation>
Optional. Locations where the secret is detected.
Corresponds to the JSON property locations
7406 7407 7408 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7406 def locations @locations end |
#statuses ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::SecretStatus>
Optional. Status of the secret.
Corresponds to the JSON property statuses
7411 7412 7413 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7411 def statuses @statuses end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7418 7419 7420 7421 7422 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 7418 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 |