public sealed class InstancePolicyOrTemplate : IMessage<AllocationPolicy.Types.InstancePolicyOrTemplate>, IEquatable<AllocationPolicy.Types.InstancePolicyOrTemplate>, IDeepCloneable<AllocationPolicy.Types.InstancePolicyOrTemplate>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class AllocationPolicy.Types.InstancePolicyOrTemplate.
Set this field true if users want Batch to help fetch drivers from a
third party location and install them for GPUs specified in
policy.accelerators or instance_template on their behalf. Default is
false.
[[["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-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eAllocationPolicy.Types.InstancePolicyOrTemplate\u003c/code\u003e class within the Batch v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstancePolicyOrTemplate\u003c/code\u003e class allows for either specifying an \u003ccode\u003eInstancePolicy\u003c/code\u003e or using an instance template to configure virtual machines.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 2.13.0, while also including information for older versions dating back to version 1.0.0, all of which can be viewed through the provided links.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eInstallGpuDrivers\u003c/code\u003e, \u003ccode\u003eInstanceTemplate\u003c/code\u003e, \u003ccode\u003ePolicy\u003c/code\u003e, and \u003ccode\u003ePolicyTemplateCase\u003c/code\u003e, which control GPU driver installation, the instance template used, instance policies, and whether to use a template or policy, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eObject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities for message handling and cloning.\u003c/p\u003e\n"]]],[],null,[]]