# Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage (v0.17.0)

0.17.0 (latest) 0.16.1 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage.

Software package information of the operating system.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #apt_package

    def apt_package() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of an APT package. For details about the apt package manager, see https://wiki.debian.org/Apt.


  Note: The following fields are mutually exclusive: `apt_package`, `yum_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #apt_package=

    def apt_package=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of an APT package. For details about the apt package manager, see https://wiki.debian.org/Apt.


  Note: The following fields are mutually exclusive: `apt_package`, `yum_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of an APT package. For details about the apt package manager, see https://wiki.debian.org/Apt.


  Note: The following fields are mutually exclusive: `apt_package`, `yum_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cos_package

    def cos_package() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a COS package.


  Note: The following fields are mutually exclusive: `cos_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cos_package=

    def cos_package=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a COS package.


  Note: The following fields are mutually exclusive: `cos_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a COS package.


  Note: The following fields are mutually exclusive: `cos_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #googet_package

    def googet_package() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a Googet package. For details about the googet package manager, see https://github.com/google/googet.


  Note: The following fields are mutually exclusive: `googet_package`, `yum_package`, `apt_package`, `zypper_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #googet_package=

    def googet_package=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a Googet package. For details about the googet package manager, see https://github.com/google/googet.


  Note: The following fields are mutually exclusive: `googet_package`, `yum_package`, `apt_package`, `zypper_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a Googet package. For details about the googet package manager, see https://github.com/google/googet.


  Note: The following fields are mutually exclusive: `googet_package`, `yum_package`, `apt_package`, `zypper_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #qfe_package

    def qfe_package() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsQuickFixEngineeringPackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsQuickFixEngineeringPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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.


  Note: The following fields are mutually exclusive: `qfe_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #qfe_package=

    def qfe_package=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsQuickFixEngineeringPackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsQuickFixEngineeringPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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.


  Note: The following fields are mutually exclusive: `qfe_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsQuickFixEngineeringPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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.


  Note: The following fields are mutually exclusive: `qfe_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #windows_application

    def windows_application() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsApplication

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsApplication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-WindowsApplication)) --- Details of Windows Application.


  Note: The following fields are mutually exclusive: `windows_application`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #windows_application=

    def windows_application=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsApplication

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsApplication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-WindowsApplication)) --- Details of Windows Application.


  Note: The following fields are mutually exclusive: `windows_application`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsApplication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-WindowsApplication)) --- Details of Windows Application.


  Note: The following fields are mutually exclusive: `windows_application`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #wua_package

    def wua_package() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsUpdatePackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsUpdatePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-WindowsUpdatePackage)) --- Details of a Windows Update package. See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for information about Windows Update.


  Note: The following fields are mutually exclusive: `wua_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #wua_package=

    def wua_package=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsUpdatePackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsUpdatePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-WindowsUpdatePackage)) --- Details of a Windows Update package. See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for information about Windows Update.


  Note: The following fields are mutually exclusive: `wua_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::WindowsUpdatePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-WindowsUpdatePackage)) --- Details of a Windows Update package. See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for information about Windows Update.


  Note: The following fields are mutually exclusive: `wua_package`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #yum_package

    def yum_package() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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.


  Note: The following fields are mutually exclusive: `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #yum_package=

    def yum_package=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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.


  Note: The following fields are mutually exclusive: `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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.


  Note: The following fields are mutually exclusive: `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #zypper_package

    def zypper_package() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a Zypper package. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual.


  Note: The following fields are mutually exclusive: `zypper_package`, `yum_package`, `apt_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #zypper_package=

    def zypper_package=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a Zypper package. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual.


  Note: The following fields are mutually exclusive: `zypper_package`, `yum_package`, `apt_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::VersionedPackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-VersionedPackage)) --- Details of a Zypper package. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual.


  Note: The following fields are mutually exclusive: `zypper_package`, `yum_package`, `apt_package`, `googet_package`, `zypper_patch`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #zypper_patch

    def zypper_patch() -> ::Google::Cloud::OsConfig::V1alpha::Inventory::ZypperPatch

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::ZypperPatch](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-ZypperPatch)) --- Details of a Zypper patch. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual.


  Note: The following fields are mutually exclusive: `zypper_patch`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #zypper_patch=

    def zypper_patch=(value) -> ::Google::Cloud::OsConfig::V1alpha::Inventory::ZypperPatch

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::ZypperPatch](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-ZypperPatch)) --- Details of a Zypper patch. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual.


  Note: The following fields are mutually exclusive: `zypper_patch`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::ZypperPatch](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-ZypperPatch)) --- Details of a Zypper patch. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual.


  Note: The following fields are mutually exclusive: `zypper_patch`, `yum_package`, `apt_package`, `zypper_package`, `googet_package`, `wua_package`, `qfe_package`, `cos_package`, `windows_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.