Google Cloud OsConfig V1 Client - Class VersionedPackage (1.2.2)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class VersionedPackage.

Information related to the a standard versioned package. This includes package info for APT, Yum, Zypper, and Googet package managers.

Generated from protobuf message google.cloud.osconfig.v1.Inventory.VersionedPackage

Namespace

Google \ Cloud \ OsConfig \ V1 \ Inventory

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ package_name string

The name of the package.

↳ architecture string

The system architecture this package is intended for.

↳ version string

The version of the package.

getPackageName

The name of the package.

Returns
TypeDescription
string

setPackageName

The name of the package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArchitecture

The system architecture this package is intended for.

Returns
TypeDescription
string

setArchitecture

The system architecture this package is intended for.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

The version of the package.

Returns
TypeDescription
string

setVersion

The version of the package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this