public sealed class SetIamPolicyRequest : IMessage<SetIamPolicyRequest>, IEquatable<SetIamPolicyRequest>, IDeepCloneable<SetIamPolicyRequest>, IBufferMessage, IMessage
REQUIRED: The complete policy to be applied to the resource. The size of
the policy is limited to a few 10s of KB. An empty policy is a
valid policy but certain Cloud Platform services (such as Projects)
might reject them.
[[["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\u003eSetIamPolicyRequest\u003c/code\u003e class is a request message for the \u003ccode\u003eSetIamPolicy\u003c/code\u003e method, serving as the primary means to set policies.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eObject\u003c/code\u003e and 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e class has two constructors: a default one and another that takes a \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e object as a parameter for initialization.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003ePolicy\u003c/code\u003e (the policy to be applied), \u003ccode\u003eResource\u003c/code\u003e (the target resource), and \u003ccode\u003eResourceAsResourceName\u003c/code\u003e (an \u003ccode\u003eIResourceName\u003c/code\u003e-typed view of the resource).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicy\u003c/code\u003e property must contain a complete policy, that is limited in size, for the \u003ccode\u003eresource\u003c/code\u003e to be applied.\u003c/p\u003e\n"]]],[],null,[]]