Google Cloud OsConfig V1 Client - Class DesiredState (2.0.2)

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

Desired state of the file.

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

Namespace

Google \ Cloud \ OsConfig \ V1 \ OSPolicy \ Resource \ FileResource

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;

PRESENT

Value: 1

Ensure file at path is present.

Generated from protobuf enum PRESENT = 1;

ABSENT

Value: 2

Ensure file at path is absent.

Generated from protobuf enum ABSENT = 2;

CONTENTS_MATCH

Value: 3

Ensure the contents of the file at path matches. If the file does not exist it will be created.

Generated from protobuf enum CONTENTS_MATCH = 3;