public sealed class CreatePolicyRequest : IMessage<CreatePolicyRequest>, IEquatable<CreatePolicyRequest>, IDeepCloneable<CreatePolicyRequest>, IBufferMessage, IMessage
The request sent to the [CreatePolicyRequest]
[google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method.
[[["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 information on the \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e class, which is used to send requests to the \u003ccode\u003eCreatePolicy\u003c/code\u003e method in Google Cloud's Organization Policy API (version 2).\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 2.7.0, with historical versions listed down to 1.0.0 for reference, all of which relate to the \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e class allows for setting the \u003ccode\u003eParent\u003c/code\u003e property, which determines where the new policy will be applied, such as projects, folders, or organizations, and the \u003ccode\u003ePolicy\u003c/code\u003e property, which defines the actual policy to be created.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e class can implement multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and it inherits from \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating a new \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e instance, either with default values or by copying from an existing \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]