[[["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 PatchConfig (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.PatchConfig)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.PatchConfig)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.PatchConfig)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.PatchConfig)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.PatchConfig)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.PatchConfig) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class PatchConfig.\n\nPatch configuration specifications. Contains details on how to apply the\npatch(es) to a VM instance.\n\nGenerated from protobuf message `google.cloud.osconfig.v1.PatchConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRebootConfig\n\nPost-patch reboot settings.\n\n### setRebootConfig\n\nPost-patch reboot settings.\n\n### getApt\n\nApt update settings. Use this setting to override the default `apt` patch\nrules.\n\n### hasApt\n\n### clearApt\n\n### setApt\n\nApt update settings. Use this setting to override the default `apt` patch\nrules.\n\n### getYum\n\nYum update settings. Use this setting to override the default `yum` patch\nrules.\n\n### hasYum\n\n### clearYum\n\n### setYum\n\nYum update settings. Use this setting to override the default `yum` patch\nrules.\n\n### getGoo\n\nGoo update settings. Use this setting to override the default `goo` patch\nrules.\n\n### hasGoo\n\n### clearGoo\n\n### setGoo\n\nGoo update settings. Use this setting to override the default `goo` patch\nrules.\n\n### getZypper\n\nZypper update settings. Use this setting to override the default `zypper`\npatch rules.\n\n### hasZypper\n\n### clearZypper\n\n### setZypper\n\nZypper update settings. Use this setting to override the default `zypper`\npatch rules.\n\n### getWindowsUpdate\n\nWindows update settings. Use this override the default windows patch rules.\n\n### hasWindowsUpdate\n\n### clearWindowsUpdate\n\n### setWindowsUpdate\n\nWindows update settings. Use this override the default windows patch rules.\n\n### getPreStep\n\nThe `ExecStep` to run before the patch update.\n\n### hasPreStep\n\n### clearPreStep\n\n### setPreStep\n\nThe `ExecStep` to run before the patch update.\n\n### getPostStep\n\nThe `ExecStep` to run after the patch update.\n\n### hasPostStep\n\n### clearPostStep\n\n### setPostStep\n\nThe `ExecStep` to run after the patch update.\n\n### getMigInstancesAllowed\n\nAllows the patch job to run on Managed instance groups (MIGs).\n\n### setMigInstancesAllowed\n\nAllows the patch job to run on Managed instance groups (MIGs)."]]