Google Cloud OsConfig V1 Client - Class DesiredState (1.3.5)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class DesiredState.

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

Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState

Namespace

Google \ Cloud \ OsConfig \ V1 \ OSPolicy \ Resource \ PackageResource

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

DESIRED_STATE_UNSPECIFIED

Value: 0

Unspecified is invalid.

Generated from protobuf enum DESIRED_STATE_UNSPECIFIED = 0;

INSTALLED

Value: 1

Ensure that the package is installed.

Generated from protobuf enum INSTALLED = 1;

REMOVED

Value: 2

The agent ensures that the package is not installed and uninstalls it if detected.

Generated from protobuf enum REMOVED = 2;