Reference documentation and code samples for the Grafeas V1 Client class PackageOccurrence.
Details on how a particular software package was installed on a system.
Generated from protobuf message grafeas.v1.PackageOccurrence
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The name of the installed package.
↳ location
array< Grafeas\V1\Location
>
All of the places within the filesystem versions of this package have been found.
↳ package_type
string
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
↳ cpe_uri
string
The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.
↳ architecture
int
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
↳ license
↳ version
getName
The name of the installed package.
string
setName
The name of the installed package.
var
string
$this
getLocation
All of the places within the filesystem versions of this package have been found.
setLocation
All of the places within the filesystem versions of this package have been found.
$this
getPackageType
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string
setPackageType
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
var
string
$this
getCpeUri
The cpe_uri in CPE format denoting the package manager version distributing a package.
The cpe_uri will be blank for language packages.
string
setCpeUri
The cpe_uri in CPE format denoting the package manager version distributing a package.
The cpe_uri will be blank for language packages.
var
string
$this
getArchitecture
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
int
setArchitecture
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
var
int
$this
getLicense
Licenses that have been declared by the authors of the package.
hasLicense
clearLicense
setLicense
Licenses that have been declared by the authors of the package.
$this
getVersion
The version of the package.
hasVersion
clearVersion
setVersion
The version of the package.
$this