Class PackageResource (1.3.2)

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

A resource that manages a system package. .. attribute:: desired_state

Required. The desired state the agent should maintain for this package.

:type: google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.DesiredState

Attributes

NameDescription
apt google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.APT
A package managed by Apt.
deb google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.Deb
A deb package file.
yum google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.YUM
A package managed by YUM.
zypper google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.Zypper
A package managed by Zypper.
rpm google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.RPM
An rpm package file.
googet google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.GooGet
A package managed by GooGet.
msi google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.PackageResource.MSI
An MSI 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.

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. .. attribute:: source

Required. The MSI package.

:type: google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.File

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