public sealed class SetIamPolicyRequest : IMessage<SetIamPolicyRequest>, IEquatable<SetIamPolicyRequest>, IDeepCloneable<SetIamPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v1 API class SetIamPolicyRequest.
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.
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
the fields in the mask will be modified. If no mask is provided, the
following default mask is used:
[[["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 reference documentation for the \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v1 API, specifically for version 3.3.0 and other versions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eSetIamPolicy\u003c/code\u003e method, facilitating the application of a policy to a specified resource.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e 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 the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e class include \u003ccode\u003ePolicy\u003c/code\u003e, \u003ccode\u003eResource\u003c/code\u003e, \u003ccode\u003eResourceAsResourceName\u003c/code\u003e, and \u003ccode\u003eUpdateMask\u003c/code\u003e, each serving specific roles in defining the policy and resource being targeted.\u003c/p\u003e\n"],["\u003cp\u003eThe document also lists previous versions of the \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e which users can visit to see previous version documentation.\u003c/p\u003e\n"]]],[],null,[]]