[[["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."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003ePatchConfig\u003c/code\u003e class within the Google Cloud OS Config v1 API, which is used to define patch application specifications for VM instances.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003ePatchConfig\u003c/code\u003e is 2.4.0, and the documentation also includes information for prior versions, starting from version 1.3.0, which are all accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePatchConfig\u003c/code\u003e class offers properties to configure patch settings for various OS package managers, including \u003ccode\u003eApt\u003c/code\u003e, \u003ccode\u003eGoo\u003c/code\u003e, \u003ccode\u003eYum\u003c/code\u003e, and \u003ccode\u003eZypper\u003c/code\u003e, as well as \u003ccode\u003eWindowsUpdate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes settings to define pre- and post-patch execution steps (\u003ccode\u003ePreStep\u003c/code\u003e, \u003ccode\u003ePostStep\u003c/code\u003e) and control the reboot behavior after patching (\u003ccode\u003eRebootConfig\u003c/code\u003e), and allows patches on Managed Instance groups with the \u003ccode\u003eMigInstancesAllowed\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and inherits basic members from the object class.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class PatchConfig (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.PatchConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.PatchConfig) \n\n public sealed class PatchConfig : IMessage\u003cPatchConfig\u003e, IEquatable\u003cPatchConfig\u003e, IDeepCloneable\u003cPatchConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class PatchConfig.\n\nPatch configuration specifications. Contains details on how to apply the\npatch(es) to a VM instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PatchConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PatchConfig](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PatchConfig](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PatchConfig](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsConfig.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### PatchConfig()\n\n public PatchConfig()\n\n### PatchConfig(PatchConfig)\n\n public PatchConfig(PatchConfig other)\n\nProperties\n----------\n\n### Apt\n\n public AptSettings Apt { get; set; }\n\nApt update settings. Use this setting to override the default `apt` patch\nrules.\n\n### Goo\n\n public GooSettings Goo { get; set; }\n\nGoo update settings. Use this setting to override the default `goo` patch\nrules.\n\n### MigInstancesAllowed\n\n public bool MigInstancesAllowed { get; set; }\n\nAllows the patch job to run on Managed instance groups (MIGs).\n\n### PostStep\n\n public ExecStep PostStep { get; set; }\n\nThe `ExecStep` to run after the patch update.\n\n### PreStep\n\n public ExecStep PreStep { get; set; }\n\nThe `ExecStep` to run before the patch update.\n\n### RebootConfig\n\n public PatchConfig.Types.RebootConfig RebootConfig { get; set; }\n\nPost-patch reboot settings.\n\n### WindowsUpdate\n\n public WindowsUpdateSettings WindowsUpdate { get; set; }\n\nWindows update settings. Use this override the default windows patch rules.\n\n### Yum\n\n public YumSettings Yum { get; set; }\n\nYum update settings. Use this setting to override the default `yum` patch\nrules.\n\n### Zypper\n\n public ZypperSettings Zypper { get; set; }\n\nZypper update settings. Use this setting to override the default `zypper`\npatch rules."]]