# Google Cloud OsConfig V1 Client - Class SoftwarePackage (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class SoftwarePackage.

Software package information of the operating system.

Generated from protobuf message `google.cloud.osconfig.v1.Inventory.SoftwarePackage`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1 \\ Inventory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ yum_package` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` Yum package info. For details about the yum package manager, see <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum>. |
| `↳ apt_package` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` Details of an APT package. For details about the apt package manager, see <https://wiki.debian.org/Apt>. |
| `↳ zypper_package` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` Details of a Zypper package. For details about the Zypper package manager, see <https://en.opensuse.org/SDB:Zypper_manual>. |
| `↳ googet_package` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` Details of a Googet package. For details about the googet package manager, see <https://github.com/google/googet>. |
| `↳ zypper_patch` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.ZypperPatch` Details of a Zypper patch. For details about the Zypper package manager, see <https://en.opensuse.org/SDB:Zypper_manual>. |
| `↳ wua_package` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsUpdatePackage` Details of a Windows Update package. See <https://docs.microsoft.com/en-us/windows/win32/api/_wua/> for information about Windows Update. |
| `↳ qfe_package` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsQuickFixEngineeringPackage` Details of a Windows Quick Fix engineering package. See <https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering> for info in Windows Quick Fix Engineering. |
| `↳ cos_package` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` Details of a COS package. |
| `↳ windows_application` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsApplication` Details of Windows Application. |

### getYumPackage

Yum package info.

For details about the yum package manager, see
<https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage|null` |   |

### hasYumPackage

### setYumPackage

Yum package info.

For details about the yum package manager, see
<https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAptPackage

Details of an APT package.

For details about the apt package manager, see
<https://wiki.debian.org/Apt>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage|null` |   |

### hasAptPackage

### setAptPackage

Details of an APT package.

For details about the apt package manager, see
<https://wiki.debian.org/Apt>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getZypperPackage

Details of a Zypper package.

For details about the Zypper package manager, see
<https://en.opensuse.org/SDB:Zypper_manual>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage|null` |   |

### hasZypperPackage

### setZypperPackage

Details of a Zypper package.

For details about the Zypper package manager, see
<https://en.opensuse.org/SDB:Zypper_manual>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGoogetPackage

Details of a Googet package.

For details about the googet package manager, see
<https://github.com/google/googet>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage|null` |   |

### hasGoogetPackage

### setGoogetPackage

Details of a Googet package.

For details about the googet package manager, see
<https://github.com/google/googet>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getZypperPatch

Details of a Zypper patch.

For details about the Zypper package manager, see
<https://en.opensuse.org/SDB:Zypper_manual>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.ZypperPatch|null` |   |

### hasZypperPatch

### setZypperPatch

Details of a Zypper patch.

For details about the Zypper package manager, see
<https://en.opensuse.org/SDB:Zypper_manual>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.ZypperPatch` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getWuaPackage

Details of a Windows Update package.

See <https://docs.microsoft.com/en-us/windows/win32/api/_wua/> for
information about Windows Update.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsUpdatePackage|null` |   |

### hasWuaPackage

### setWuaPackage

Details of a Windows Update package.

See <https://docs.microsoft.com/en-us/windows/win32/api/_wua/> for
information about Windows Update.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsUpdatePackage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getQfePackage

Details of a Windows Quick Fix engineering package.

See
<https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering>
for info in Windows Quick Fix Engineering.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsQuickFixEngineeringPackage|null` |   |

### hasQfePackage

### setQfePackage

Details of a Windows Quick Fix engineering package.

See
<https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering>
for info in Windows Quick Fix Engineering.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsQuickFixEngineeringPackage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCosPackage

Details of a COS package.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage|null` |   |

### hasCosPackage

### setCosPackage

Details of a COS package.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.VersionedPackage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getWindowsApplication

Details of Windows Application.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsApplication|null` |   |

### hasWindowsApplication

### setWindowsApplication

Details of Windows Application.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsApplication` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDetails

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |