public sealed class ExecutePatchJobRequest : IMessage<ExecutePatchJobRequest>, IEquatable<ExecutePatchJobRequest>, IDeepCloneable<ExecutePatchJobRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class ExecutePatchJobRequest.
A request message to initiate patching across Compute Engine
instances.
[[["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\u003eThe latest version of the \u003ccode\u003eExecutePatchJobRequest\u003c/code\u003e class is 2.4.0, part of the Google Cloud OS Config v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to initiate patching across Compute Engine instances within a specified project.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExecutePatchJobRequest\u003c/code\u003e class allows for configuration of patch jobs with properties like \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eDisplayName\u003c/code\u003e, \u003ccode\u003eDryRun\u003c/code\u003e, \u003ccode\u003eDuration\u003c/code\u003e, \u003ccode\u003eInstanceFilter\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003ePatchConfig\u003c/code\u003e, and \u003ccode\u003eRollout\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can run a dry-run of a patch, so the instances are contacted, but no changes are made to them.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple prior versions of the class available, with the earliest being version 1.3.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class ExecutePatchJobRequest (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.ExecutePatchJobRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest) \n\n public sealed class ExecutePatchJobRequest : IMessage\u003cExecutePatchJobRequest\u003e, IEquatable\u003cExecutePatchJobRequest\u003e, IDeepCloneable\u003cExecutePatchJobRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class ExecutePatchJobRequest.\n\nA request message to initiate patching across Compute Engine\ninstances. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ExecutePatchJobRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExecutePatchJobRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExecutePatchJobRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExecutePatchJobRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest), [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### ExecutePatchJobRequest()\n\n public ExecutePatchJobRequest()\n\n### ExecutePatchJobRequest(ExecutePatchJobRequest)\n\n public ExecutePatchJobRequest(ExecutePatchJobRequest other)\n\nProperties\n----------\n\n### Description\n\n public string Description { get; set; }\n\nDescription of the patch job. Length of the description is limited\nto 1024 characters.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nDisplay name for this patch job. This does not have to be unique.\n\n### DryRun\n\n public bool DryRun { get; set; }\n\nIf this patch is a dry-run only, instances are contacted but\nwill do nothing.\n\n### Duration\n\n public Duration Duration { get; set; }\n\nDuration of the patch job. After the duration ends, the patch job\ntimes out.\n\n### InstanceFilter\n\n public PatchInstanceFilter InstanceFilter { get; set; }\n\nRequired. Instances to patch, either explicitly or filtered by some\ncriteria such as zone or labels.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project in which to run this patch in the form `projects/*`\n\n### ParentAsProjectName\n\n public ProjectName ParentAsProjectName { get; set; }\n\n[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecutePatchJobRequest#Google_Cloud_OsConfig_V1_ExecutePatchJobRequest_Parent) resource name property.\n\n### PatchConfig\n\n public PatchConfig PatchConfig { get; set; }\n\nPatch configuration being applied. If omitted, instances are\npatched using the default configurations.\n\n### Rollout\n\n public PatchRollout Rollout { get; set; }\n\nRollout strategy of the patch job."]]