Class: Google::Apis::OndemandscanningV1::SecretOccurrence

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



3404
3405
3406
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3404

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


3392
3393
3394
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3392

def kind
  @kind
end

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

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



3397
3398
3399
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3397

def locations
  @locations
end

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

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



3402
3403
3404
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3402

def statuses
  @statuses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3409
3410
3411
3412
3413
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3409

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