Reference documentation and code samples for the Cloud OS Config V1 API module Google::Cloud::OsConfig::V1::OSPolicy::Resource::PackageResource::DesiredState.
The desired state that the OS Config agent maintains on the VM.
Constants
DESIRED_STATE_UNSPECIFIED
value: 0 Unspecified is invalid.
INSTALLED
value: 1 Ensure that the package is installed.
REMOVED
value: 2 The agent ensures that the package is not installed and
uninstalls it if detected.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[],[],null,[]]