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 enumVALIDATION = 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class Mode (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.OSPolicy.Mode)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.OSPolicy.Mode)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.OSPolicy.Mode)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.OSPolicy.Mode)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.OSPolicy.Mode)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.OSPolicy.Mode) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class Mode.\n\nPolicy mode\n\nProtobuf type `google.cloud.osconfig.v1.OSPolicy.Mode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1 \\\\ OSPolicy\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### MODE_UNSPECIFIED\n\n Value: 0\n\nInvalid mode\n\nGenerated from protobuf enum `MODE_UNSPECIFIED = 0;`\n\n### VALIDATION\n\n Value: 1\n\nThis mode checks if the configuration resources in the policy are in\ntheir desired state. No actions are performed if they are not in the\ndesired state. This mode is used for reporting purposes.\n\nGenerated from protobuf enum `VALIDATION = 1;`\n\n### ENFORCEMENT\n\n Value: 2\n\nThis mode checks if the configuration resources in the policy are in\ntheir desired state, and if not, enforces the desired state.\n\nGenerated from protobuf enum `ENFORCEMENT = 2;`"]]