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 details for the \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v1 API for .NET, with version 3.2.0 being the current version detailed, while 3.4.0 is the latest available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e class, which is used as a request message for the \u003ccode\u003eSetIamPolicy\u003c/code\u003e method, inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \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\u003eKey properties of \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e include \u003ccode\u003ePolicy\u003c/code\u003e, which represents the policy to be applied to a resource, \u003ccode\u003eResource\u003c/code\u003e, which is the identifier for the target resource, and \u003ccode\u003eUpdateMask\u003c/code\u003e, which allows for selective modification of the policy fields.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default one for creating an empty instance, and another for creating an instance from another \u003ccode\u003eSetIamPolicyRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe document shows multiple versions of the API, ranging from 2.2.0 to the latest 3.4.0, each with its own set of documentation located in the provided links.\u003c/p\u003e\n"]]],[],null,[]]