Class: Google::Apis::OndemandscanningV1::SecretOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1::SecretOccurrence
- 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
-
#kind ⇒ String
Required.
-
#locations ⇒ Array<Google::Apis::OndemandscanningV1::SecretLocation>
Optional.
-
#statuses ⇒ Array<Google::Apis::OndemandscanningV1::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.
3278 3279 3280 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3278 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Required. Type of secret.
Corresponds to the JSON property kind
3266 3267 3268 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3266 def kind @kind end |
#locations ⇒ Array<Google::Apis::OndemandscanningV1::SecretLocation>
Optional. Locations where the secret is detected.
Corresponds to the JSON property locations
3271 3272 3273 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3271 def locations @locations end |
#statuses ⇒ Array<Google::Apis::OndemandscanningV1::SecretStatus>
Optional. Status of the secret.
Corresponds to the JSON property statuses
3276 3277 3278 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3276 def statuses @statuses end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3283 3284 3285 3286 3287 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3283 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 |