Class: Google::Apis::ContaineranalysisV1::PackageOccurrence

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

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.



5250
5251
5252
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5250

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

Instance Attribute Details

#architectureString

Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. Corresponds to the JSON property architecture

Returns:

  • (String)


5214
5215
5216
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5214

def architecture
  @architecture
end

#cpe_uriString

Output only. The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. Corresponds to the JSON property cpeUri

Returns:

  • (String)


5221
5222
5223
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5221

def cpe_uri
  @cpe_uri
end

#licenseGoogle::Apis::ContaineranalysisV1::License

License information. Corresponds to the JSON property license



5226
5227
5228
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5226

def license
  @license
end

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

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



5232
5233
5234
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5232

def location
  @location
end

#nameString

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

Returns:

  • (String)


5237
5238
5239
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5237

def name
  @name
end

#package_typeString

Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). Corresponds to the JSON property packageType

Returns:

  • (String)


5243
5244
5245
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5243

def package_type
  @package_type
end

#versionGoogle::Apis::ContaineranalysisV1::Version

Version contains structured information about the version of a package. Corresponds to the JSON property version



5248
5249
5250
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5248

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5255
5256
5257
5258
5259
5260
5261
5262
5263
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5255

def update!(**args)
  @architecture = args[:architecture] if args.key?(:architecture)
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
  @license = args[:license] if args.key?(:license)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @package_type = args[:package_type] if args.key?(:package_type)
  @version = args[:version] if args.key?(:version)
end