Class: Google::Apis::OndemandscanningV1beta1::PackageOccurrence

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

Overview

Details on how a particular software package was installed on a system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PackageOccurrence

Returns a new instance of PackageOccurrence.



1334
1335
1336
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1334

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

Instance Attribute Details

#locationArray<Google::Apis::OndemandscanningV1beta1::Location>

Required. All of the places within the filesystem versions of this package have been found. Corresponds to the JSON property location



1327
1328
1329
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1327

def location
  @location
end

#nameString

Output only. The name of the installed package. Corresponds to the JSON property name

Returns:

  • (String)


1332
1333
1334
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1332

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1339
1340
1341
1342
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1339

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
end