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"]],[["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-04-09 UTC."],[[["The `SetIamPolicyRequest` class is a request message used for the `SetIamPolicy` method within the Google Cloud IAM V1 API, designed for setting the IAM policy for a specified resource."],["This class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionalities for message handling, equality checks, deep cloning, and buffer message handling."],["The `SetIamPolicyRequest` class includes two constructors: a default constructor and a constructor that takes another `SetIamPolicyRequest` object, it also has three properties to configure the request that are `Policy`, `Resource`, and `ResourceAsResourceName`."],["The `Policy` property, of type `Policy`, is a required field representing the complete policy that will be applied to a resource, while the `Resource` property, a string, is the resource identifier, and `ResourceAsResourceName`, which of type IResourceName, is a typed representation of the resource identifier."],["Version 2.3.0 of the `SetIamPolicyRequest` class documentation is provided, with links to other versions up to 3.4.0 (latest)."]]],[]]