public sealed class GetPolicyOptions : IMessage<GetPolicyOptions>, IEquatable<GetPolicyOptions>, IDeepCloneable<GetPolicyOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v1 API class GetPolicyOptions.
Optional. The maximum policy version that will be used to format the
policy.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be
rejected.
Requests for policies with any conditional role bindings must specify
version 3. Policies with no conditional role bindings may specify any valid
value or leave the field unset.
The policy in the response might use the policy version that you specified,
or it might use a lower policy version. For example, if you specify version
3, but the policy has no conditional role bindings, the response uses
version 1.
To learn which resources support conditions in their IAM policies, see the
IAM
documentation.
[[["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 documentation is for the \u003ccode\u003eGetPolicyOptions\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v1 API, specifically for version 3.1.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetPolicyOptions\u003c/code\u003e is used to encapsulate settings provided to the \u003ccode\u003eGetIamPolicy\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces such as \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\u003eRequestedPolicyVersion\u003c/code\u003e property allows setting the maximum policy version to be used, with valid values being 0, 1, or 3.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions available, ranging from 2.2.0 to 3.4.0, and 3.4.0 is the latest version.\u003c/p\u003e\n"]]],[],null,[]]