public sealed class AlternatePolicySpec : IMessage<AlternatePolicySpec>, IEquatable<AlternatePolicySpec>, IDeepCloneable<AlternatePolicySpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class AlternatePolicySpec.
Similar to PolicySpec but with an extra 'launch' field for launch reference.
The PolicySpec here is specific for dry-run.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eAlternatePolicySpec\u003c/code\u003e class is 2.7.0, and the class is part of the Google.Cloud.OrgPolicy.V2 namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAlternatePolicySpec\u003c/code\u003e is similar to \u003ccode\u003ePolicySpec\u003c/code\u003e but includes an extra 'launch' field for launch reference, and is specifically used for dry-run/darklaunch scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAlternatePolicySpec\u003c/code\u003e has two constructors, one default and another that takes an \u003ccode\u003eAlternatePolicySpec\u003c/code\u003e object as a parameter, allowing for cloning of objects.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two properties, \u003ccode\u003eLaunch\u003c/code\u003e which is a string for the launch reference, and \u003ccode\u003eSpec\u003c/code\u003e which is a \u003ccode\u003ePolicySpec\u003c/code\u003e for specifying constraints on Google Cloud resource configurations.\u003c/p\u003e\n"]]],[],null,[]]