Class PackageResource (1.15.0)

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

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
desired_state google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.DesiredState
Required. The desired state the agent should maintain for this package.
apt google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.APT
A package managed by Apt. This field is a member of oneof_ system_package.
deb google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.Deb
A deb package file. This field is a member of oneof_ system_package.
yum google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.YUM
A package managed by YUM. This field is a member of oneof_ system_package.
zypper google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.Zypper
A package managed by Zypper. This field is a member of oneof_ system_package.
rpm google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.RPM
An rpm package file. This field is a member of oneof_ system_package.
googet google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.GooGet
A package managed by GooGet. This field is a member of oneof_ system_package.
msi google.cloud.osconfig_v1.types.OSPolicy.Resource.PackageResource.MSI
An MSI package. This field is a member of oneof_ system_package.

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.

Values: DESIRED_STATE_UNSPECIFIED (0): Unspecified is invalid. INSTALLED (1): Ensure that the package is installed. REMOVED (2): The agent ensures that the package is not installed and uninstalls it if detected.

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