public sealed class CreatePolicyRequest : IMessage<CreatePolicyRequest>, IEquatable<CreatePolicyRequest>, IDeepCloneable<CreatePolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v2 API class CreatePolicyRequest.
Required. The resource that the policy is attached to, along with the kind of policy
to create. Format: policies/{attachment_point}/denypolicies
The attachment point is identified by its URL-encoded full resource name,
which means that the forward-slash character, /, must be written as
%2F. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies.
For organizations and folders, use the numeric ID in the full resource
name. For projects, you can use the alphanumeric or the numeric ID.
The ID to use for this policy, which will become the final component of
the policy's resource name. The ID must contain 3 to 63 characters. It can
contain lowercase letters and numbers, as well as dashes (-) and periods
(.). The first character must be a lowercase letter.
[[["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\u003eCreatePolicyRequest\u003c/code\u003e class is 1.3.0, with previous versions including 1.2.0, 1.1.0, and 1.0.0 available as well.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreatePolicyRequest\u003c/code\u003e is a class in the Google Cloud Identity and Access Management (IAM) v2 API, used as a request message for the \u003ccode\u003eCreatePolicy\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the base object class 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e class contains properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003ePolicy\u003c/code\u003e, and \u003ccode\u003ePolicyId\u003c/code\u003e, used to define where a policy is attached, the policy to be created, and a custom ID, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e class also provides two constructors, one default and another to clone from another \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]