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"]],[["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\u003eThe \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e class is part of the Google Cloud Identity and Access Management (IAM) v2 API, serving as the request message for creating policies.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e class requires properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003ePolicy\u003c/code\u003e, and \u003ccode\u003ePolicyId\u003c/code\u003e to specify where to attach the policy, the policy details, and the policy's identifier, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e: one default constructor and another that accepts another \u003ccode\u003eCreatePolicyRequest\u003c/code\u003e object for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 1.3.0, but the provided documentation focuses on version 1.0.0, with previous versions being 1.2.0 and 1.1.0 also listed.\u003c/p\u003e\n"]]],[],null,[]]