Class PackageResource

A resource that manages a system package.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.DesiredStatedesired_state
Required. The desired state the agent should maintain for this package.
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.APTapt
A package managed by Apt. This field is a member of `oneof`_ ``system_package``.
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.Debdeb
A deb package file. This field is a member of `oneof`_ ``system_package``.
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.YUMyum
A package managed by YUM. This field is a member of `oneof`_ ``system_package``.
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.Zypperzypper
A package managed by Zypper. This field is a member of `oneof`_ ``system_package``.
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.RPMrpm
An rpm package file. This field is a member of `oneof`_ ``system_package``.
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.GooGetgooget
A package managed by GooGet. This field is a member of `oneof`_ ``system_package``.
google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.MSImsi
An MSI package. This field is a member of `oneof`_ ``system_package``.

Inheritance

builtins.object > proto.message.Message > PackageResource

Classes

APT

APT(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A package managed by APT.

  • install: apt-get update && apt-get -y install [name]
  • remove: apt-get -y remove [name]

Deb

Deb(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A deb package file. dpkg packages only support INSTALLED state.

DesiredState

DesiredState(value)

The desired state that the OS Config agent maintains on the VM.

GooGet

GooGet(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A package managed by GooGet.

  • install: googet -noconfirm install package
  • remove: googet -noconfirm remove package

MSI

MSI(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An MSI package. MSI packages only support INSTALLED state.

RPM

RPM(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An RPM package file. RPM packages only support INSTALLED state.

YUM

YUM(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A package managed by YUM.

  • install: yum -y install package
  • remove: yum -y remove package

Zypper

Zypper(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A package managed by Zypper.

  • install: zypper -y install package
  • remove: zypper -y rm package