Google Cloud OsConfig V1 Client - Class Mode (1.0.5)

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

Policy mode

Protobuf type google.cloud.osconfig.v1.OSPolicy.Mode

Methods

name

Parameter
NameDescription
value mixed

value

Parameter
NameDescription
name mixed

Constants

MODE_UNSPECIFIED

Value: 0

Invalid mode

Generated from protobuf enum MODE_UNSPECIFIED = 0;

VALIDATION

Value: 1

This mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.

Generated from protobuf enum VALIDATION = 1;

ENFORCEMENT

Value: 2

This mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.

Generated from protobuf enum ENFORCEMENT = 2;