Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Mode.
Policy mode
Protobuf type google.cloud.osconfig.v1.OSPolicy.Mode
Namespace
Google \ Cloud \ OsConfig \ V1 \ OSPolicyMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
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;