# Grafeas V1 API - Class Grafeas::V1::PackageOccurrence (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.1 1.0.0 0.16.1 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::PackageOccurrence.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #architecture

    def architecture() -> ::Grafeas::V1::Architecture

**Returns**

- ([::Grafeas::V1::Architecture](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Architecture)) --- The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

### #cpe_uri

    def cpe_uri() -> ::String

**Returns**

- (::String) --- The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

### #license

    def license() -> ::Grafeas::V1::License

**Returns**

- ([::Grafeas::V1::License](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-License)) --- Licenses that have been declared by the authors of the package.

### #license=

    def license=(value) -> ::Grafeas::V1::License

**Parameter**

- **value** ([::Grafeas::V1::License](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-License)) --- Licenses that have been declared by the authors of the package.
**Returns**

- ([::Grafeas::V1::License](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-License)) --- Licenses that have been declared by the authors of the package.

### #location

    def location() -> ::Array<::Grafeas::V1::Location>

**Returns**

- (::Array\<[::Grafeas::V1::Location](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Location)\>) --- All of the places within the filesystem versions of this package have been found.

### #location=

    def location=(value) -> ::Array<::Grafeas::V1::Location>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::Location](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Location)\>) --- All of the places within the filesystem versions of this package have been found.
**Returns**

- (::Array\<[::Grafeas::V1::Location](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Location)\>) --- All of the places within the filesystem versions of this package have been found.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The name of the installed package.

### #package_type

    def package_type() -> ::String

**Returns**

- (::String) --- The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

### #version

    def version() -> ::Grafeas::V1::Version

**Returns**

- ([::Grafeas::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Version)) --- The version of the package.